10-13-2008 7:30 AM
Hi All,
I want to add a new field 'Batch number' in item table to standard BAPI ''BAPI_OUTB_DELIVERY_CREATE_SLS''.
In this standard bapi BADI_DLV_CREATE_SLS_EXTIN is used .
can u please tell me how to add new field to this bapi .can i use the badi for the modification.
10-14-2008 8:09 AM
Hi,
try exit MV45AFZB
FORM USEREXIT_MOVE_FIELD_TO_KOMKH
You can use this user exit to include new fields for batch determination (document header).
FORM USEREXIT_MOVE_FIELD_TO_KOMPH
You can use this user exit to include new fields for batch determination (document item).
Regards,
Amit
10-14-2008 10:55 AM
Hi
For populating the new custom field,
You have to use the parameter EXTENSION_IN in BAPI , to transfer additional data (Eg: Batch number).
(but you will not add new field to this bapi )
DATA: ls_ext type bapiparex,
lt_extin type table of bapiparex.
ExtensionIn
ls_ext = batch number value.
append ls_ext to lt_extin.
Synchronous RFC
call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
importing
delivery = lf_vbeln
num_deliveries = lf_num
tables
sales_order_items = lt_order
extension_in = lt_extin
deliveries = lt_deli
created_items = lt_itm
extension_out = lt_extout
return = lt_return
.
This additional data can be processed by implementing the following BAdI:
Enhancement spot: ES_SAPVL50I_BADI
BADI definition: BADI_DLV_CREATE_SLS_EXTIN
Method: ADDITIONAL_INPUT
Regards,
Dwarakanath.S