Change BOM / Group BOM
The following API structure tables list all the APIs and the respective API fields that are required to change BOMs within the current version of SAP distribution targets. These APIs are listed in the order in which they are invoked.
CSAP_MAT_BOM_MAINTAIN
This API is invoked to change BOMs in SAP.
Windchill Attribute Name
API Structure
API Field
API Field Description
Value If Default
Source
Transform
Assembly Part Number
HEADER
MATERIAL
Material number
N/A
Windchill
N/A
TargetID
HEADER
PLANT
Plant
N/A
Windchill
Substring
N/A
HEADER
BOM_USAGE
BOM usage
1 = Production
Default
N/A
Start Effectivity
HEADER
VALID_FROM
Effectivity date
Current Date
Windchill, Default if not sent
N/A
Change Number
HEADER
CHANGE_NO
Change Number
N/A
Windchill
N/A
N/A
HEADER
FL_COMMIT_AND_WAIT
Flag for Commit and wait
X
Default
N/A
N/A
T_STPO
ITEM_CATEG
Item Category
L=Stock Item
Default
N/A
Line #’s
T_STPO
ITEM_NO
Item Number
N/A
Windchill
N/A
Part Number
T_STPO
COMPONENT
Material Number
N/A
Windchill
N/A
Substitute Part Number
T_STPO
COMPONENT
Material Number
N/A
Windchill
N/A
Quantity
T_STPO
COMP_QTY
Component Quantity
N/A
Windchill
N/A
Alternate Item Group
T_STPO
AI_GROUP
Alternate Item Group Number
N/A
Windchill
N/A
N/A
T_STPO
AI_PRIO
Alternate Item Priority
1 for the component2 for all substitutes of that component.
Default
N/A
N/A
T_STPO
AL_STRATEG
Alternate Strategy
“2”
Default
N/A
N/A
T_STPO
USAGE_PROB
Compo-nent usage probability
100 for the component1 for all substitutes of that component
Default
N/A
N/A
T_STPO
SORTSTRING
Sort String 1 (Component)
"000"
Default
N/A
Alt Item Group
T_STPO
SORTSTRING
Sort String1 (Substitute)
N/A
Windchill
N/A
Line Number
T_STPO
ID_ITEM_NO
ID item number – used for changes
N/A
Windchill
N/A
Part or SubstituteNumber
T_STPO
ID_COMP
ID component
N/A
Windchill
N/A
N/A
T_STPO
FLDELETE
Delete flag (Only populate for delete component
X
Windchill
N/A
N/A
T_STPO
ID_SORT
ID Sort String 2 (Component)
"000"
Default
N/A
Alt Item Group
T_STPO
ID_SORT
ID Sort String3 (Substitute)
N/A
Windchill
N/A
1. Only Populated if the Global Variable ESIFlags/EnableSortStringIdentification is set to "true." For more information, see Process Engine Global Variables Groups.
2. Only Populated if the Global Variable ESIFlags/EnableSortStringIdentification is set to "true", and the action for the component is "change" or "delete." For more information, see Process Engine Global Variable Groups.
3. Only Populated if the Global Variable ESIFlags/EnableSortStringIdentification is set to "true," and the action for the substitute is "delete." For more information, see Process Engine Global Variables Groups
CALO_INIT_API
This API should be invoked before the CSAP_MAT_BOM_MAINTAIN is called to change a BOM. It is not necessary to pass any data into this API. The defaults written into the API upon execution meet the Windchill ESI requirements. The following table illustrates the defaults passed in automatically upon execution of the API and provides it.
Windchill Attri- bute Name
API Struc-ture
API Field
API Field Description
Value If Default
Source
Trans form
N/A
N/A
N/A
N/A
N/A
N/A
N/A
这对您有帮助吗?