SAP enhanced delivery field

Business Background

Delivery (inbound and outbound) due to actual business needs append one or more additional fields when using BAPI maintenance delivery, additional fields need to be modified. Less standard parameter field, change can not meet the demand, the need to achieve by other means

Realization of ideas

When using a modified delivery BAPI (BAPI _ * _ DELIVERY_CHANGE), we found that comes Extension parameters, but I do not know the specific usage. After checking the official SAP community posts and found two enhanced position, BADI-> SMOD_V50B0001, the extension can be read into a global variable standard program; in BADI-> in LE_SHP_DELIVERY_UPDATE, updated standard structure CS_LIKP, CS_LIPS by global variables;

The following brief description (within the delivery header and line item, for example, outgoing similar) on the specific implementation.

Specific steps

Append field to the standard structure

Rise structure: VBKOK

Line Item Structure

 

 

 

 

 

 

2, filling parameter BAPI

            Referring next to FIG no specific rule, filling parameter based on actual demand, such as by Project regional branches to ROW

 

 

 

 

Update standard fields

Copy the extension field to a global variable

Achieve BADI-> SMOD_V50B0001, exit_saplv50i_009 in method (inbound delivery changes exports) in:

CS_VBKOK to rise

CT_VBPOK for the line item

Get updates from the global variable parameters

Achieve BADI-> LE_SHP_DELIVERY_UPDATE, carried in the corresponding field update process

to sum up

1, pay attention to things restrictions under the code, prevent the effects of standard procedures

2, the standard line item CT_VBPOK, the new line item will appear in the first few lines, the need to pay attention when handling

Guess you like

Origin blog.csdn.net/u012232542/article/details/93621943