cancel
Showing results for 
Search instead for 
Did you mean: 

userexit_move_field_to_vbap.

Former Member
0 Kudos

i have added a new column in the screen 4900 of sales order which corresponds to the field zzitbsez in vbap table . i have added this field in vbap . I wrote code in userexit_move_field_to_vbap to move values

MOVE xVBAP-ZZITBSEQ TO VBAP-ZZITBSEQ. in mv45afzz

But the problem comes when i enter some value in this column in VA01 transaction, the debugger does not even goto this code part.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Since you want to update vbap at item level with the new field you have inserted, write your logic in

FORM USEREXIT_SAVE_DOCUMENT_PREPARE and loop table XVBAP with the number of line items and update table VBAP finally with commit.

This should work with FORM USEREXIT_MOVE_FIELD_TO_VBAP , try checking VBAP after the sales order is saved if there is any entry in your new field. Try inserting just a breakpoint and comment your logic and see if it stops there at the time of order processing.

Regards,

Amit