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

EXTENSION2 in BAPI

former_member599326
Participant
0 Likes
1,887

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,

2 REPLIES 2
Read only

Former Member
0 Likes
1,114

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,114

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