Application Development 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: 

delivery creation

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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