SAP Function SAMPLE_INTERFACE_CS000170 - BTE : ALE Inbound BOMs, Inbound Tables

Parameter Reference Type Length Default Optional Text
IDOC_CONTROL EDIDC u 542 IDOC Control Record

Parameter Reference Length Optional Text
P_DOSTB DOSTB 89
P_KDSTB KDSTB 95
P_MASTB MASTB 94
P_STASB STASB 234
P_STKOB STKOB 256
P_STPOI STPOI 883
P_STPUB STPUB 101
P_STZUB STZUB 160 Permanent BOM Data

Exception Text
ERROR ERROR: Discard Return Values
IDOC_ERROR ERROR: Terminate IDoc Processing

Business Transaction Event : CS000170

Function
Customer-specific change to the BOM tables of an IDoc for BOMdistribution using ALE in inbound processing.

Validity
This event is triggered by inbound processing of the following messagetypes:
,,BOMMAT : Material BOMs
,,PALMAT : Plant assignments to material BOMs
,,STTMAT : Material variants for material BOMs
,,BOMDOC : Document structures
,,BOMORD : Sales order BOMs

Restrictions
Do not change the entries in the BOM tables, to ensure consistentposting of distributed BOMs.
Do no change the sequence of entries of any tables (for example, byusing the commands SORT, INSERT, or DELETE), because this leads toinconsistencies and unforeseen effects in update if you use theNO_DATA_SIGN '/', which determines that the field content is not to bechanged.
The service module for processing this event must not be addressed byan RFC call, because this terminates the current logical unit of work(LUW). This must not happen during inbound processing of the IDoc. Forthis reason, you are not allowed to use a COMMIT WORK within theservice module, either. For update transactions, use IN UPDATE TASK.

Interface Parameters
IDOC_CONTROL
Structure for control record data (read/write access)
STZUB (read/write access)
Permanent BOM data
MASTB (read/write access)
Link between material and BOM (BOMMAT, PALMAT, STTMAT)
DOSTB (read/write access)
Link between document and document structure (BOMDOC)
KDSTB (read/write access)
Link between sales order material and BOM (BOMORD)
STKOB (read/write access)
BOM header
STASB (read/write access)
Link between BOM header and items
STPOI (read/write access)
BOM items
STPUB (read/write access)
BOM subitems
ERROR
Date returned in IDOC_CONTROL is discarded
IDOC_ERROR
Outbound processing of the IDoc is terminated