第 1 页 共 19 页
BAPI Step by Step Example
About the example
This BAPI reads system status for a production order from table JEST and
system status text from table TJ02T
Name
ZGetOrderStatus
Function group
ZBAPISTATUS
Function module:
Z_BAPI_GET_ORDER_STATUS
Import
parameters:
ORDER_STATUS_IMPORT type
ZBAPI_ORDER_STATUS_IMPORT:
� AUFNR Order number (Keyfield)
� SPRAS Language
� ExcludeInactive - Checkbox - Exclude inactive status
Tables
T_BAPISTAT type ZBAPISTAT:
� OBJNR like JEST-OBJNR
� STAT like JEST-STAT
� INACT like JEST-INACT
� TXT04 like TJ02T-TXT04
� TXT30 likeTJ02T-TXT30
Export parameters
RETURN like BAPIRETURN
STEP 1 - Define a structures for the
BAPI