Application Development and Automation 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: 

Move_field_to_vbap not triggering for all line items

Former Member
0 Kudos
1,302

Hello experts,

I have one issue, I am populating one custom field added in additional tab B at line item level  in VBAP at Exit,  move_field_to_vbap in include MV45AFZZ.
the code is triggering for line item 10 and setting the VBAP custom field value, but when I am entering the value in line item 20 and pressing enter, the code is not getting triggered.
Any suggestions, what would be my proper exit where I can place this code and expectations would be, if user enters all the line items together or one by one, the custom field filled in the screen will be updated for all line items.

Regards,

Salil B

4 REPLIES 4

Former Member
0 Kudos
686

in Addition to above post, the transaction used will be VA01 to create sales order or VA02 to change.

0 Kudos
686

Hi Salil,

Did you tried with FORM userexit_save_document_prepare in MV45AFZZ.

Check this .

Regards,

Praphul

0 Kudos
686

Hi Salil,

How is the code organized in the user-exit form 'MOVE_FIELD_TO_VBAP'?  Are you sure it doesn't even hit the FORM at all or is it possible that a CHECK statement for instance causes it to exit out completely before your new code is executed?

Regards,

Ryan Crosby

0 Kudos
686

hey Try FORM USEREXIT_CHECK_VBAP USING US_DIALOG. Include   MV45AFZB

it will work, it will trigger each line item.

Sinagam.