Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in update VBAP table using exit user_save_document

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Private_Member_49934
Contributor
0 Kudos

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.

2 REPLIES 2

Private_Member_49934
Contributor
0 Kudos

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.

0 Kudos

HI kumar,

my problem has resolved just by puttting the same code snippet in the exit

USEREXIT_SAVE_DOCUMENT_PREPARE.