Fonction SAP BAPI_CASE_CHANGEATTRIBUTES - Change Attribute Values of Case

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
GUID BAPISCMGCASE-CASE_GUID C 32 Case GUID

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Code

Paramètre Reférence Long. Facultatif Description
CASE_ATTRIBUTES BAPIPROPTB 319 Case Attributes to Be Changed (with Values)

Functionality
This BAPI method is used to change the values of the case attributes.

Example
* Fill the table with case attributes
wa_case_attribute-NAME = 'CASE_TITLE'.
wa_case_attribute-VALUE = 'BAPI test case'.
APPEND wa_case_attribute TO case_attributes.
wa_case_attribute-NAME = 'PRIORITY'.
wa_case_attribute-VALUE = '01'.
APPEND wa_case_attribute TO case_attributes.
wa_case_attribute-NAME = 'STAT_ORDERNO'.
wa_case_attribute-VALUE = '30'.
APPEND wa_case_attribute TO case_attributes.
* Call the BAPI
CALL FUNCTION 'BAPI_CASE_CHANGEATTRIBUTES'
     EXPORTING
          GUID                = '40908A3045BF1A51E10000000A1550FF'

     IMPORTING
          RETURN              = return
     TABLES
          CASE_ATTRIBUTES     = case_attributes.

Notes
The following prerequisites must be met before this BAPI methodcan be used:

  • The case exists.

  • The following authorizations are required:
    • An authorization for changing cases (authorization object S_SCMG_CAS).
    • Description
      Result of the BAPI call.

      Description
      The GUID of a case whose attributes need to be changed.

      Description
      Table with the names and values of the attributes to be changed in acase.