Fonction SAP BAPI_RECORD_GETPROPERTIES - Determine Properties of a Record

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOCUMENTCLASS BAPISRMREC-DOCCLASS C 10 Document Class of Record
DOC_CONTEXT BAPIDOCCONTEXT u 64 X SRM Context for Document Access
OBJECTID BAPISRMREC-GUID C 32 Object ID (GUID) of Record
WHOLE_DOCUMENT BAPISRMREC-BOOLEAN C 1 ' ' X For Whole Document 'X' or Only For One Version/Variant ' '

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

Paramètre Reférence Long. Facultatif Description
PROPERTIES BAPIPROPTB 319 Attributes and Attribute Values

Functionality
Determines the attribute values of a record.
This function is used to read all, or only selected attribute valuesof arecord.

Example
* Read keywords for a record
wa_record_properties-NAME = 'SRM_KEYWORD'.
APPEND wa_record_properties TO record_properties.
CALL FUNCTION BAPI_RECORD_GETPROPERTIES
EXPORTING
OBJECTID = 'FE55793BA8182177E10000000A1148F5'
DOCUMENTCLASS = 'SRM_REC00'
WHOLE_DOCUMENT = ' '
IMPORTING
RETURN = bapi_return
TABLES
PROPERTIES = record_properties

Notes
Because some attributes (for example SRM_KEYWORD) can have more thanone value, it is theoretically possible for an attribute to occur morethan once in the results table (column NAME in table PROPERTIES).
The authorization for displaying record attributes is required(authorization object S_SRMGS_PR).

Description
Result of the BAPI call

Description
Location of the record (content model) whose attribute values youwant to read

Description
If the record is stored in the WebDAV, you must specify the RMS and SPS(corresponding element type of the record) here. Otherwise, you do notneed to set this parameter.

Description
Internal ID of the record whose attribute values you want to read

Description
This parameter is optional.

  • If you enter an "X", the attributes and attribute values of the whole
  • logical document are returned.
    • If you enter an empty space, the attributes and attribute values of the
    • current version/variant are returned.
      You do not normally need to set this parameter, because in most casesyou only want to use the current version/variant. The logical documentonly includes system attributes and attribute values.

      Description
      This table is used as an import and export parameter.

      • Input value (column NAME): Names of the attributes whose values you
      • want to read
        Note: If you leave the table empty, all attributes and their valuesare read.
        • Output value (columns NAME and VALUE): Attributes and attribute
        • values as pairs
          Notes:
          If ' ' is specified for the WHOLE_DOCUMENT parameter, the instanceattributes defined in the PHIO class of the record are read.
          If 'X' is specified for the WHOLE_DOCUMENT parameter, the instanceattributes defined in the LOIO class of the record are read.
          The attribute values are returned in the internal SAP format.
          For attributes that can have multiple values (such as the keyword),multiple data records are returned. They have the same name in the NAMEcolumn and the existing values in the VALUE column.