Skip to Content
0
Former Member
May 03, 2012 at 09:23 AM

Problem in update VBAP table using exit user_save_document

87 Views

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.