SD
BAPI
RFC
Used the same way in S/4HANA
BAPI_SALESORDER_GETSTATUS Display Sales Order Status
Reads the processing status of a sales order per item, such as delivery and billing status and quantities. Developers call it from portals or interfaces that report order progress back to a customer system. It is read-only, so no commit is needed; check RETURN for errors such as an unknown document number.
- Function group
- 2032
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| SALESDOCUMENT | BAPIVBELN-VBELN | Sales document number | Yes |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN | Return messages |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| STATUSINFO | BAPISDSTAT | Status information per item | — |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
EXPORTING
salesdocument = lv_salesdocument
IMPORTING
return = lv_return
TABLES
statusinfo = lt_statusinfo.Related tables
Solutions using this function
SD
Program
Custom
Interface
Dealer (B2B) Order Portal Integration with SAP Sales Orders
A custom integration between the dealer order portal and SAP. Orders from the portal are checked and turned into sales orders automatically; the order …
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.