CA Function module Used the same way in S/4HANA

STATUS_READ Read Object Status

Reads the system and user statuses of any object that uses SAP status management, such as orders, notifications, equipment or WBS elements. Custom reports use it with the object number (OBJNR) to check statuses like REL, TECO or NOCO. Set ONLY_ACTIVE to get active statuses only.

Function group
BSVA
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
CLIENTSY-MANDTClient (exceptional cases only)—
OBJNRJSTO-OBJNRObject number of the status objectYes
ONLY_ACTIVEJEST-INACTActive statuses only—

Exporting parameters

ParameterTypeDescription
OBTYPJSTO-OBTYPObject category
STSMAJSTO-STSMAStatus profile
STONRTJ30-STONRStatus number

Tables parameters

ParameterTypeDescriptionRequired
STATUSJSTATIndividual statuses of the object—

Exceptions

  • OBJECT_NOT_FOUND — Status object not found

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 'STATUS_READ'
  EXPORTING
    objnr = lv_objnr
  IMPORTING
    obtyp = lv_obtyp
    stsma = lv_stsma
    stonr = lv_stonr
  TABLES
    status = lt_status
  EXCEPTIONS
    object_not_found = 1
    OTHERS = 2.

Related tables

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.

Request a custom report