Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > SAP API Structures > Create CN > CCAP_ECN_MAINTAIN
  
CCAP_ECN_MAINTAIN
This API is used to change a CN in SAP. This API is called after the CN is created and used in creating or changing BOMs or documents. The API is used to create alternate dates and assign those alternate dates to the document and BOM objects that are listed on the CN. Additionally, this API is used to set the CN header effective date value to the current date and set the CN status to inactive.
The following table provides details on this API.
Windchill Attribute Name
API Segment
API Field
API Field Description
Value If Default
Source
Transform
Number
CHANGE_HEADER
CHANGE_NO
Change Number
N/A
Windchill
N/A
N/A
CHANGE_HEADER
FL_COMMIT_AND_ WAIT
Flag for Commit and Wait
X
Default1
N/A
N/A
CHANGE_HEADER
STATUS
Status
“02” (Change number status - inactive)
Default
N/A
N/A
CHANGE_HEADER
VALID_FROM
Valid from date
Set to current date
Default2
Description
CHANGE_HEADER
DESCRIPT
Description
N/A
Windchill
N/A
N/A
CHANGE_HEADER_ CUS
XFLAG
Change header indicator
X
Default
N/A
Reason for Change
CHANGE_HEADER
REASON_CHG
Reason for Change
N/A
Windchill
N/A
Start Effectivity
ALT_DATES
ALT_DATE
Alternate Date
N/A
Windchill
N/A
Start Effectivity
ALT_DATES
VALID_FROM
Valid From Date
N/A
Windchill
N/A
N/A
HEADER
FL_SYNCH
Synchronization flag
“ “ (space)
Default
N/A
N/A
OBJECT_BOM
ACTIVE
Active for BOM
X
Default
N/A
N/A
OBJECT_BOM
OBJ_REQU
Defines that the object will be processed with object management records
X
Default
N/A
N/A
OBJECT_BOM
MGTREC_GEN
Defines that management records be created automatically
X
Default
N/A
N/A
OBJECT_MAT
ACTIVE
Active for Material
X
Default
N/A
N/A
OBJECT_MAT
OBJ_REQU
Defines that the object be processed with object management records
X
Default
N/A
N/A
OBJECT_MAT
MGTREC_GEN
Defines that management records be created automatically
X
Default
N/A
N/A
OBJECT_DOC
ACTIVE
Active for document
X
Default
N/A
N/A
OBJECT_DOC
OBJ_REQU
Defines that the object be processed with object management records3
X
Default
N/A
N/A
OBJECT_DOC
MGTREC_GEN
Manage-ment records are created automatically
X
Default
N/A
N/A
OBJMGREC (Repeat-able structure)
ALT_DATE
Alternate date
Set to start effectivity date for BOM and Doc
Default1
N/A
N/A
OBJMGREC (Repeat-able structure)
CHG_OBJTYP
Change object type
“1” – For BOM Object Type
“3” – For Doc Object Type
Default1
N/A
N/A
OBJMGREC (Repeat-able structure)
CHGTYPOBJ
Object change type
“004” for BOMs
“003” for Docs and Materials
Default1
N/A
N/A
OBJMGREC (Repeat-able structure)
BOM_USAGE
BOM usage
“1” For Production
Default1
N/A
Assembly Part Number
OBJMGREC (Repeat-able structure)
MATERIAL
Material number of BOM
N/A
Windchill
N/A
TargetID
OBJMGREC (Repeat-able structure)
PLANT
Plant number of BOM (if not supplied, the alternate date is effective for the non-plant specific BOM)
N/A
Windchill
Substring
N/A
OBJMGREC (Repeat-able structure)
BOM_CAT
BOM category
“M” for Material BOM
Default
N/A
N/A
OBJMGREC (Repeat-able structure)
BOM_USAGE
BOM usage
“1” for Production
Default
N/A
Doc Type
OBJMGREC (Repeat-able structure)
DOC_TYPE
Document type
N/A
Windchill
N/A
Doc Number
OBJMGREC (Repeat-able structure)
DOC_NUMBER
Document number
N/A
Windchill
N/A
Version
OBJMGREC (Repeat-able structure)
DOC_VERSION
Document version
N/A
Windchill
N/A
N/A
OBJMGREC (Repeat-able structure)
DOC_PART
Part Type
000
Default1
N/A
1. These default values are not included here because they have been included in the default tables of either the Document or BOM functional designs.
2. The fields ALT_DATE and VALID_FROM are intentionally defaulted to the same value.
3. Object Management Records only need to be created for the documents and BOMs listed on the CN.