Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > SAP API Structures > Change Document > BAPI_DOCUMENT_CHANGE2
  
BAPI_DOCUMENT_CHANGE2
This API is used to change all the document data in SAP. The API needs to be called for each document to be changed. The API does not require plant information. The following table provides details on this API.
Windchill Attribute Name
API Structure
API Field
API Field Descrip-tion
Value If Default
Source
Transform
Number
HEADER
DOCUMENTNUMBER
Document number
N/A
Windchill
N/A
N/A
HEADER
DOCUMENTPART
Document part
“000”
Default
N/A
Type
HEADER
DOCUMENTTYPE
Document type
N/A
Windchill
Cross Reference
Document Version
HEADER
VERSION
Document Version
N/A
Windchill
N/A
Type
DOCUMENTDATA
DOCUMENTTYPE
Document Type
N/A
Windchill
Cross Reference
N/A
DOCUMENTDATAX
DOCUMENTTYPE
Document type
X
Default
N/A
N/A
DOCUMENTDATAX
DOCUMENTVERSION
Document Version
X
Default
N/A
N/A
DOCUMENTDATAX
ECNUMBER
Change Number
X
Default
N/A
Number
DOCUMENTDATA
DOCUMENTNUMBER
Document number
N/A
DOCUMENTDATA
DOCUMENTPART
Document part
N/A
Default
N/A
Version
DOCUMENTDATA
DOCUMENVERSION
Document version
N/A
Windchill
N/A
N/A
DOCUMENTDATA
STATUSEXTERN
External status
IA
Default
N/A
Change Number
DOCUMENTDATA
ECNUMBER1
Change number
N/A
Windchill
N/A
N/A
DOCUMENTFILES
ORIGINALTYPE
Original Type
1
Default
N/A
N/A
DOCUMENTFILES
SOURCEDATA CARRIER
Data Carrier
INTERNET
Default
N/A
N/A
DOCUMENTFILES
WSAPPLICATION
Application
NET
Default
N/A
File
DOCUMENTFILES
DOCFILE
Document File
N/A
Windchill (URL)
N/A
Number
DOCUMENTFILES
DOCUMENTNUMBER
Document Number
N/A
Windchill
N/A
Version
DOCUMENTFILES
DOCUMENTVERSION
Document Version
N/A
Windchill
N/A
Number (Material) and Plant
OBJECTLINKS
OBJECTKEY#1
Object Key #1
Material + Plant
N/A
Concatenate
Number (Material)
OBJECTLINKS
OBJECTKEY#2
Object Key #2
Material
N/A
N/A
1. This API field is only sent into the API if the global variable ESIFlags/EnableDocumentECNLockis set to true.