# 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.

- Modules: SD
- Type: BAPI
- Function group: 2032
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-salesorder-getstatus/

## 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)

```abap
CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
  EXPORTING
    salesdocument = lv_salesdocument
  IMPORTING
    return = lv_return
  TABLES
    statusinfo = lt_statusinfo.
```

## Related tables

VBAK, VBAP, VBUK, VBUP

