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: 
Read only

BAPI_OUTB_DELIVERY_CHANGE

Former Member
0 Likes
1,035

Hi,

I have added a new tab to transaction VL0*N (outbound delivery), we're going to use our new "Zzedy" country of origin field (a Zzedy field added to LIKP/LIPS) instead of the SAPi one. Now, I added the new tab at the Header level and also at the items level, as per requirement. When I update my new Header country of origin, all the items have to reflect that, overtly. My question regards how am I supposed to do that.

To create the new tab I used BADI LE_SHP_TAB_CUST, implemented 2 instances of the interface, 1 for the header tab, and one for the items tab. My problem is that the methods from this BADI - specifically TRANSFER_TO_SUSBSCREEN, which is the one I suppose I rely on to reflect the change on the Header level in the item's screen - doesn't offer me the possibility to change LIPS-ZZ_my_field, it doesn't give me access at all to any changeable structure/parameter at the item level.

Then I was oriented to use BAPI_OUTB_DELIVERY_CHANGE to accomplish that. But I have being trying, to no avail, to make it work - I'm having problems with the extension, I guess.

First of all, how and where will the BAPI know/understand that it needs to update LIPS-ZZ_my_field , for the given item ?

Thank you in advance,

Avraham

3 REPLIES 3
Read only

Former Member
0 Likes
767

You can use MV50AFZ1 user exit FORM userexit_move_field_to_lips to set values to

LIPS-ZZ_my_field.

Note:- Check OSS Notes 415716 - User exits in delivery processing before effecting this change.

XLIPS and YLIPS internal tables should be filled consistently.

Read only

0 Likes
767

This user exit is called when the item is created, not when it is edited, which is my case.

Read only

Former Member
0 Likes
767

In that case the same program has 2 other exits which will serve your purpose.

FORM userexit_save_document_prepare.

FORM userexit_save_document.