‎2005 Nov 16 11:55 PM
Hi,
In the prg. SAPMF02K I am writing my code inside user exit EXIT_SAPMF02K_001 under Include ZXF05U01...
My requirement is that I have to change the name1 feild for an existing vendor. So my user exit code should trigger only when XK02 tcode is used and only for existing vendors... How do I capture the Tcode which is given on the command line?? and how do I check if the vendor is existing or not??
Please help.
Thank You,
-SB.
‎2005 Nov 16 11:56 PM
‎2005 Nov 16 11:56 PM
‎2005 Nov 16 11:56 PM
‎2005 Nov 17 12:00 AM
‎2005 Nov 17 1:06 AM
Pl try this...
IF SY-TCODE = 'XK02'.
select single * from lfa1 where lifnr = i_lfa1-lifnr.
if sy-subrc eq 0.
i_lfa1-name1 = new_name.
endif.
ENDIF.
Good Luck,
Suresh Datti