co01/co02/co03 增强 EXIT_SAPLCOSD_001

 co01/co02/co03 增强 EXIT_SAPLCOSD_001
 https://blog.csdn.net/champaignwolf/article/details/53008128

This customer exit can be used to change the fields LGORT (storage location) and RGEKZ (backflushing indicator) in the reservation.

Input for the customer exit are the complete reservation structure (RESV_I), the storage location that was taken from the BOM item (STRLCBOM_I) or the material master (STRLC_I) as well as the table entry for the supply area (SUPAR_I).

Output for customer exits are the storage location and the indicator for backflushing.

This function exit is only accessed on a BOM explosion (that is, when an order is created using CO01 or when reading master data) or when components are copied to the production order on planned order conversion.

1. Determining the backflushing indicator

In the structure RESV_I two fields, among others, are copied 
that are defined as follows:

RESV_I-RGEKZ contains either

a. the definition from the material master 
0 - indicator not set 
1 - indicator always set 
2 - the work center decides

or b. the definition from the component allocation 
' ' / 'X'

The value was calculated before the user exit was called up

RESV_I-RGEKZSAV contains the definition of the indicator 
changed from the material master 
(0 / 1 / 2 see also)

With the material number RESVI-MATNR the material data can also be 
read to determine the backflushing indicator using their 
own algorithms.

2. Determining the storage location

The field STRLC_I contains the storage location from the material

master 
The field STRLCBOM_I contains the storage location from the BOM 
The field SUPAR_I-LGORT contains the storage location from the 
supply area.

The field STRLCBOM_I is only filled if the order is created 
directly (e.g. CO01), not however, if the order was for example 
converted from a planned order. In this case the parameter 
STRLC_I contains the storage location from the planned order.

In parameters BCKFL_E and STRLC_E the backflushing indicator determined 
as well as the storage location determined are copied to the calling 
program.

posted @ 2018-03-24 12:37  以成Ronny  阅读(693)  评论(0)    收藏  举报