05-03-2012 10:23 AM
Dear Friends,
i am doing some user exit for va41 and va42.
I have to update VBAP-FAKSP by chekcing reason for rejection at each item level before saving.
I have developed some code snippet... all are working fine the field is not getting updated.
Please find below code..
IF VBAK-VBTYP EQ 'G' AND VBAK-AUART EQ 'ZMGB'.
IF T180-TRTYP EQ 'H' OR T180-TRTYP EQ 'V'.
LOOP AT XVBAP.
IF XVBAP-ABGRU NE SPACE.
*Updating VBAP-FAKSP with value 'Z1'
XVBAP-FAKSP = 'J1'.
MODIFY XVBAP.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
can anyone plz help me.
05-03-2012 11:15 AM
It seems to be ok. Did you debugged and check. is XVBAP getting modified properly.
is the xvbap-updkz set properly with U or I ? if not set it and it should work.
05-03-2012 11:15 AM
It seems to be ok. Did you debugged and check. is XVBAP getting modified properly.
is the xvbap-updkz set properly with U or I ? if not set it and it should work.
05-03-2012 1:41 PM
HI kumar,
my problem has resolved just by puttting the same code snippet in the exit
USEREXIT_SAVE_DOCUMENT_PREPARE.