Fonction SAP BAPI_RECORD_GETELEMENTS - Find Record Elements

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOCUMENTCLASS BAPISRMREC-DOCCLASS C 10 Storage Location of Record Instance
DOC_CONTEXT BAPIDOCCONTEXT u 64 X SRM Context for Document Access
OBJECTID BAPISRMREC-GUID C 32 Internal ID of Record Instance
OMIT_AUTHORITY_CHECK BAPISRMREC-BOOLEAN C 1 ' ' X Perform Authority Check Yes/No
PARENT_ID BAPISRMREC_ELEMENT-ELEMENT_ID C 11 X Element ID of the Higher-Level Node

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

Paramètre Reférence Long. Facultatif Description
ELEMENT BAPISRMREC_ELEMENT 196 X Elements (Basic Data)
ELEMENT_IDENTIFICATION BAPISRMREC_ELEMENT_IDENT 330 X Element ID
ELEMENT_PROPERTIES BAPIPROPELEMENT 330 X Element Attributes
ELEMENT_RELATIONS BAPIPROPELEMENT 330 X Element Relations
ELEMENT_VISIBILITY BAPIPROPELEMENT 330 X Element Roles

Functionality
Returns elements and the record structure for a record.

Description
Result of the BAPI call.

Description
Storage location of the record (content model) whose elements you wantto read. If the record is stored in WebDAV, this parameter should havean initial value.

Description
If the record is stored in WebDAV, the RMS and SPS (correspondingelement type of the record) need to be entered here. If not, no entry isrequired in this parameter.

Description
Internal ID of the record whose elements you need to read.

Description
This parameter determines whether the authority check will be performed.

Default
The authority check will be performed.

Description
When a parent element is copied, its children elements are also read.
In this case, the level ("HIER_LEVEL") is not returned.
To read the first level of the record structure, you can use the parentelement 'ROOT'.

Default
Initial value

Description
This table provides the basic properties of a record element
The tables has the following structure:

  • o,,ELEMENT_ID: ID of the element

  • o,,PARENT_ID: ID of the parent element, if one exists

  • o,,TYPE: Element type:

  • -,,Instance element: 'I'
    -,,Model node: 'M'
    -,,Structure node: 'F'
    • o,,MODEL_ID: ID of the underlying model node in the record model

    • o,,DESCRIPTION: Description of the element

    • o,,HIER_LEVEL: Level within the record structure (beginning with one)

    • o,,LAST_MODIF_USER: Name of person who made last change

    • o,,LAST_MODIF_DATE: Date on which last change was made

    • o,,LAST_MODIF_TIME: Time at which last change was made
    • Description
      This table identifies the element.
      The table has the following structure:
      If the element is an instance element, the first row provides the SPS ID(element type) of the record element:
      ELEMENT_ID,,NAME,,VALUE
      ID of the element,,%SPS_ID%,,SPS ID of the element
      If, on the other hand, the element is a structure node or a model node,the name %FOLDER% or %MODEL% is returned with the value column leftempty.

      Subsequent rows
      If the element is an instance element, the subsequent rows provide theSP POID components of the record element:
      Elements that are stored in the WebDAV repository and whose underlyingURL (-> documention on Records Management) exceeds 128 Bytes, are notsupported.
      ELEMENT_ID,,NAME,,VALUE
      ID of the element,,Name,,Value

      Description
      This table returns the attributes of the element.
      The table has three columns:

      • ELEMENT_ID: ID of the element

      • NAME: Name of the attribute

      • VALUE: Value of the attribute
      • Description
        This table returns the relations of the element:

        • ELEMENT_ID: ID of the element

        • NAME: Name of the role

        • VALUE: Description of the role
        • Description
          This table returns the roles of the element.
          The table has the following structure:

          • ELEMENT_ID: ID of the element

          • NAME: Role of the element

          • VALUE: Description of the role