2015 Feb 27 9:27 AM
Hi,
I want to update field LIPS-FAKSP through BAPI "BAPI_OUTB_DELIVERY_CHANGE".. I want to use structure EXTENSION2 as below :-
DATA EXTENSION2 LIKE BAPIEXT OCCURS 2 WITH HEADER LINE.
EXTENSION2-PARAM = 'LIPS'.
EXTENSION2-ROW = '1'.
EXTENSION2-FIELD = 'FAKSP'.
EXTENSION2-VALUE = '02' .
APPEND extension2.
I found one enhancement "V50B0001" in that "EXIT_SAPLV50I_010".
In that there is a structure "CT_VBPOK"..
But my field FAKSP is not there in "CT_VBPOK"...
So my question is .. do I need to append structure "CT_VBPOK" and add my field FAKSP..?
And if appended where to put additional logic to update LIPS-FAKSP ?
Regards,
2015 Feb 27 10:44 AM
Hi Santosh
You should not append .Instead check for another exit where the structure fields are importing parameters or check for badi using cl_exithandler,check for the structure and implement the badi.(im implementation you can pass value to FAKSP by importing and exporting of memory variable)
Thanks
Vamsi
2015 Feb 27 11:19 AM
NB: Both extension parameters (structured and not structured) must be managed in BAdI SMOD_V50B0001 (formerly known as SMOD V50B0001 before Release 600) so now EXIT_SAPLV50I_010 is no longer a true exit function.
Changing the structure could mess data, how many move-corresponding are executed later (e.g. structures as LESHP_DELIVERY_S) or may not solve your request if field is lost during mapping.
Nevertheless, as Mohan wrote, you could consider « store » those data in the converted exit (some export to memory) and use it later, you could look at FORM vbpok_obdlv_fill_up and following code.
Regards,
Raymond