Skip to Content
author's profile photo Former Member
Former Member

Problem in update VBAP table using exit user_save_document

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 03, 2012 at 10: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.