15.12.10

SAP Note 13558 - Maintain purchasing data for phantom assembly

Symptom:

For phantom assemblies, you by mistake have to maintain purchasing
data.

Cause and prerequisites

Phantom assemblies are marked as directly procured.
This leads to the purchasing data being validated.

Solution
Cancel the direct procurement characteristic for phantom
assemblies according to correction P21K002487 in LCOSDFB1
FORM routine BOM_POSITION_TRANSFER:
RESBB-ZUMS2
RESBB-ZUMS3
RESBB-ZUMEI
RESBB-ZUDIV.
* When passing on the backflush indicator, only those should be
* considered that are relevant for the inventory management.
IF NOT RESBB-RGEKZ IS INITIAL AND
T418-KZBSF IS INITIAL.
RESBB-RGEKZ = SPACE.
ENDIF.
* Never use backflush for non-stock (even if relevant for stock)
IF NOT RESBB-RGEKZ IS INITIAL.
CALL FUNCTION 'CO_ZF_CHECK_DBSKZ'
EXPORTING
POSTYP = RESBB-POSTP
IMPORTING
DBSKZ = DBSKZ.
IF NOT DBSKZ IS INITIAL.
RESBB-RGEKZ = SPACE.
ENDIF.
ENDIF.
---- Start Insert
* When passing on the backflush indicator, only those should be
* considered that are relevant for the inventory management.
IF NOT RESBB-RGEKZ IS INITIAL AND
T418-KZBSF IS INITIAL.
RESBB-RGEKZ = SPACE.
ENDIF.
* Never use backflush for non-stock item
IF NOT RESBB-RGEKZ IS INITIAL AND NOT RESBB-DBSKZ IS INITIAL.
RESBB-RGEKZ = SPACE.
ENDIF.
* Never use direct procurement for dummy
IF NOT RESBB-DUMPS IS INITIAL AND NOT RESBB-DBSKZ IS INITIAL.
RESBB-DBSKZ = SPACE.
ENDIF.
* Never use backflush for dummys
IF NOT RESBB-DUMPS IS INITIAL AND NOT RESBB-RGEKZ IS INITIAL.
RESBB-RGEKZ = SPACE.
ENDIF.
----- End Insert
SY-SUBRC = 0.
* Check maintenance status component
CLEAR: MTCOM.
MOVE: 'B' TO MTCOM-PSTAT.

Key word: Purchasing data

No comments:

Post a Comment