‎2008 Nov 20 4:28 PM
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
‎2008 Nov 20 9:09 PM
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.
‎2008 Nov 23 7:21 AM
This user exit is called when the item is created, not when it is edited, which is my case.
‎2008 Nov 24 1:30 PM
In that case the same program has 2 other exits which will serve your purpose.
FORM userexit_save_document_prepare.
FORM userexit_save_document.