Fonction SAP BAPI_ISUSMORDER_USERSTATUSSET - Set User Status for Order

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
INACTIVE BAPIFLAG-BAPIFLAG C 1 ' ' X Indicator: Delete status
NUMBER VIAUFKS-AUFNR C 12 Order number
STATUS BAPI_STATUS u 12 Status

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Error messages

Functionality
Sets or deletes a user status for service/maintenance orders. In thestructure STATUS, you can enter the status either in the uniqueinternal format or in the language-dependent external format.

Notes
If all fields of the structure STATUS are filled, conflicts arise,which are resolved as follows:

  • The external format of the status overwrites the internal format.

  • The language in structure element LANGU overwrites the language in
  • element LANGU_ISO.
    Error messages are returned in parameter RETURN.

    Description
    RETURN is a structure that is used to return error messages. If themessage type is not initial or "S", then the process flow has beeninterruped by an error.

    Description
    INACTIVE controls whether a status is set or deleted. The followingvalues are defined:
    Value,,Action
    " ",,Status is set
    "X",,Status is deleted

    Default
    INACTIVE = " "

    Description
    NUMBER is the unique key for an order.

    Description
    STATUS is a structure with the following fields:
    Field,,Description
    INTERN,,Internal display of the status
    EXTERN,,External display of the status
    LANGU,,Language key
    LANGU_ISO,,Language in accordance with ISO 639

    Default
    STATUS-LANGU = Logon language