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: 

Adding SP (Forwarding Agent) to delivery Header while creating it in VL01N

Former Member
0 Kudos

Hi all,

We have a requirement in our project wherein, if the Forwarding Agent is not maintained in SO, forwarding agent should be added to Delivery Header  (partner Function under partner tab) as soon as you click on Deliver Option(under Sales Document menu in VA02/VA03) i.e. Before it is saved.

I have implemented a logic inside USEREXIT_SAVE_DOCUMENT_PREPARE, but it gets triggered after clicking on Save Button. But according to user, the SP partner function should be added to Delivery header as soon as he clicks on Deliver Option(under Sales Document menu in VA02/VA03).

Please suggest if there is any BADi ot user-exit where i can put my logic.

2 REPLIES 2

former_member16553
Active Participant
0 Kudos

Hi

     Check badi  LE_SHP_TAB_CUST_HEAD .

0 Kudos

Hi,

but in this BADI, there is a method TRANSFER_DATA_TO_SUBSCREEN which has internal table IT_XVBPA of Type 'Importing', So i can not change it.