Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Problems with UserExit_move_fields_to_vbap.

$
0
0

Hi all,

 

Requirement: Displaying tax code, vat registration number on Additional tab of VA01, VA02 and VA03.

 

step1: I have added zz_mwsk1 on VBAP and zz_stceg, zz_mwsk1 on VBAK.

 

Step2: I have coded as

 

 

FORM USEREXIT_MOVE_FIELD_TO_VBAK.

vbak-zz_stceg = tkomk-stceg.

vbak-zz_mwsk1 = xkomv-mwsk1.

ENDFORM.

 

FORM USEREXIT_MOVE_FIELD_TO_VBAP.

vbap-zz_mwsk1 = xkomv-mwsk1.

ENDFORM.

 

Now VBAK fields are working fine, MWSK1 of VBAP is not working for first item in va01 transaction(see in figure: Picture). But MWSK1 of VBAK is working.

 

When i tried debugging i found that XKMOV-MWSK1 is not assigning to VBAP-zz_MWSK1(Userexit_move_fields_to_vbap) is not called for first item. But it is working for second item.

 

Please suggest me what is the problem.

 

Thanks in advance,

 

Thanks & Regards,

NarsiReddy.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>