Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > SAP API Structures > Create CN > CCAP_ECN_CREATE
  
CCAP_ECN_CREATE
This API creates a CN in SAP. It is characterized to create a CN that is valid for the create or change functions of documents, BOMs, and materials. It is also characterized to list material objects on the CN with alternate effective dates set to the current date. The Header Effective is initially set to a future Effective Date and the CN status is set to Active.
BOMs and Documents are not listed on the CN as part of the CN create process. Instead, they are listed on the CN when the CN is used to create or change these object types.
WC 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
Default
N/A
N/A
CHANGE_HEADER
STATUS
Status
"01" (Change number status - active)
Default
N/A
N/A
CHANGE_HEADER
VALID_FROM
Valid from Date
3001-01-01 (January, 01, 3001)
Default
N/A
Description
CHANGE_HEADER
DESCRIPT
Description
N/A
Windchill
N/A
Reason for Change
CHANGE_HEADER
REASON_CHG
Reason for Change
N/A
Windchill
N/A
N/A
OBJECT_BOM
ACTIVE
Active for BOM
X
Default
N/A
N/A
OBJECT_BOM
OBJ_REQU
Defines that the object 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 records
X
Default
N/A
N/A
OBJECT_DOC
MGTREC_GEN
Defines that management records be created automatically
X
Default
N/A
N/A
ALT_DATES (Repeatable Structure)
ALT_DATE1
Alternate date label
Set to the current date
Default
N/A
N/A
ALT_DATES (Repeatable Structure
VALID_FROM 1
Alternate date
Set to the current date
Default
N/A
Part Number
EFFECTIVITY
MATERIAL
Material number
N/A
Windchill
N/A
StartSerial Number Effectivity
EFFECTIVITY
SERIALNR_LOW
Starting serial effectivity value
N/A
Windchill
N/A
EndSerial Number Effectivity
EFFECTIVITY
SERIALNR_HIGH
Ending serial effectivity value
N/A
Windchill
N/A
N/A
OBJMGREC (Repeatable Structure)
ALT_DATE
Alternate date label
Set to the current date
Default
N/A
N/A
OBJMGREC (Repeatable Structure)
CHG_OBJTYP
Change object type
"4" - For Material Object Type
Default
N/A
Part
OBJMGREC (Repeatable Structure)
MATERIAL
Material Number
N/A
Windchill
N/A
1. The fields ALT_DATE and VALID_FROM are intentionally defaulted to the same value.