Fonction SAP BAPI_SRM_DOC_GETPROPERTIES - SRM BAPI: Get Document Attributes

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOCUMENTCLASS BAPISRMDOC-DOCCLASS C 10 '' Document Class of Document
DOC_CONTEXT BAPIDOCCONTEXT u 64 X Context: RMS ID and SPS ID
OBJECTID BAPISRMDOC-GUID C 32 Object ID (GUID) of Document
VERSION BAPISRMDOC-VERSION I 4 0 X Version
WHOLE_DOCUMENT BAPISRMDOC-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 Value

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

Functionality
Determine the attribute values of a document.
You can use this function to read all or only certain attribute valuesof a document.

Example
* Read keywords for a document
wa_properties-NAME  = 'SRM_KEYWORD'.
APPEND wa_properties TO lt_properties.
CALL FUNCTION 'BAPI_SRM_DOC_GETPROPERTIES'
  EXPORTING
    OBJECTID            = 'FE55793BA8182177E10000000A1148F5'
    DOCUMENTCLASS       = 'SRM_DOC04'
    WHOLE_DOCUMENT      = ' '
  IMPORTING
    RETURN              = bapi_return
  TABLES
    PROPERTIES          = lt_properties

Description
Return values of the BAPI call.

Description
Location of document (content model)

Description
Context for accessing documents. If the document is stored on a WebDAVserver, you must specify the RMS ID and SPS ID in the document context.

Description
Internal ID of document

Description
This parameter is optional.
If you enter an "X", the attributes and attribute values of the wholelogical document are returned.
If you enter an empty space, only the attributes and values of thecurrent version/variant of the document are returned.
Normally you do not need to set this parameter, because in most casesyou want to view the attributes of the current version/variant. Onlysystem attributes and their values refer to the logical document.

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

  • Inbound value (column NAME): Names of the attributes whose names you
  • want to read.
    Note: If you leave this table empty, all attributes and their values areread.
    • Output value (columns NAME and VALUE): Attributes and attribute values
    • as pairs.
      Notes:
      If ' ' is entered for the parameter WHOLE_DOCUMENT, the instanceattributes defined for the PHIO class of the record are read.
      If 'X' is entered for the parameter WHOLE_DOCUMENT, the instanceattributes defined for the LOIO class of the record are read.
      Attribute values are returned in SAP-internal format.
      For attributes that can have more than one value (for example, keywords), multiple data records with the same name and the existing valuesare returned in the column VALUE.