Fonction SAP BAPI_CASE_GETATTRIBUTES - Get All Attribute Values of Case

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
GUID BAPISCMGCASE-CASE_GUID C 32 Technical Case Key (Case GUID)
IM_RESELECT_DB BAPISRMREC-BOOLEAN C 1 X Boolean

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

Paramètre Reférence Long. Facultatif Description
CASE_ATTRIBUTES BAPIPROPTB 319 Attribute Value Table

Functionality
This BAPI method is used to get the values of case attributes.
If the input table contains no attribute names, the values for all caseattributes are returned. Otherwise, only the values for definedattribute names are returned.

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

IMPORTING
RETURN = return
TABLES
CASE_ATTRIBUTES = case_attributes.
*To get the data directly from DB instead of cache
CALL FUNCTION 'BAPI_CASE_GETATTRIBUTES'
EXPORTING
GUID = '40908A3045BF1A51E10000000A1550FF'

,,,,IM_RESELECT_DB = 'X'
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 displaying cases (authorization object S_SCMG_CAS).
    • Description
      Result of the BAPI call.

      Description
      The GUID of a case whose attributes should be read.

      Description
      Gets the attributes directly from the database instead of the cache.

      Description
      Table with information about case attributes.
      Input: The name column should contain the names of attributesthat are to be read. If it is empty, information about all attributes isread.
      Output: name-value information about case attributes.