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

STATUS_CHANGE_EXTERN Set User Status

Sets or deactivates a user status of an object in status management, checking the rules of its status profile. The status must be passed in internal format (for example E0001), not as the four-character text. Use CHECK_ONLY to test permissibility, and note that the change is written only with the next COMMIT WORK.

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

Importing parameters

ParameterTypeDescriptionRequired
CHECK_ONLYXFELDCheck permissibility only—
CLIENTSY-MANDTClient (exceptional cases only)—
OBJNRJSTO-OBJNRObject number of the status objectYes
USER_STATUSJEST-STATUser status (internal format)Yes
SET_INACTXFELDDeactivate the status—
SET_CHGKZJSTO-CHGKZWrite change documents—
NO_CHECKXFELDSkip the permissibility check—

Exporting parameters

ParameterTypeDescription
STONRTJ30-STONRStatus number

Exceptions

  • OBJECT_NOT_FOUND — Status object not found
  • STATUS_INCONSISTENT — Status combination is inconsistent
  • STATUS_NOT_ALLOWED — User status not allowed

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_CHANGE_EXTERN'
  EXPORTING
    objnr = lv_objnr
    user_status = lv_user_status
  IMPORTING
    stonr = lv_stonr
  EXCEPTIONS
    object_not_found = 1
    status_inconsistent = 2
    status_not_allowed = 3
    OTHERS = 4.

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