05-22-2014 10:09 AM
Hi all,
Reqirement: To display STCEG(vat reg num) on VA01, 02 and 03 transactions.
I have added field zz_stceg to VBAP table. Then in "userexit_move_field_to_vbap", i have coded to move stceg from TKOMK to VBAP as follows.
VBAP-zz_stceg = TKOMK-STCEG. (because i need to take STCEG value from KOMK structure.)
after that, i have added zz_stceg field to screen.
But in transactions VA01, 02 and 03 it is showing empty field.
Please suggest me how to proceed.
Thnaks & regards,
NarsiReddy.
05-22-2014 10:37 AM
Hi Narsireddy,
whether the code is triggering or not just check.
Put a break point and check and have to check while saving the order the same structure is triggering or not(VBAP).
Regards,
Krishna
05-22-2014 10:46 AM
05-23-2014 4:55 AM
Hi Narsi,
Please note that KOMK is a structure, hence it wont be having any values. There should be another table which will hold the value for STCEG. Please find that table from your functional people. After that find the relationship of that table with VBAP. then write your code to fill the data in the VBAP table.
Foe filling the data in VBAP table it is not necessary that you should code in the user exit. you can even do it in a normal Z report program. Once you find entries in VBAP table for the field ZZSTCEG, then drag it to the screen.
Hope you understand. Please try this from your end.
Thanks and regards,
Satish