Enterprise Administration > Implementing Windchill ESI > Implementing Windchill ESI in an SAP Environment > SAP API Structures > Query Part Cost Details > BAPI_MATERIAL_AVAILABILITY
  
BAPI_MATERIAL_AVAILABILITY
This API is used to get material stock data from SAP and needs to be called for each material being queried for from each plant. This API does not process multiple materials in multiple organizations with one API invocation. The following table provides additional information about this API:
Windchill Attribute Name
API Structure
API Field
API Field Description
Value If Default Used
Source
Transform
PartNumber
N/A
MATERIAL
Material Number
N/A
Windchill
N/A
TargetID
N/A
PLANT
Distribution Target ID
N/A
Windchill
N/A
N/A
N/A
STGE_LOC
0001
N/A
N/A
N/A
N/A
UNIT
Material Unit of Measure
N/A
TIBCO
N/A