Example documentationProgrammed Access to an Attribute Locate this document in the navigation structure

 

Access to the attribute Items of the object type VBAK (sales document). The value of the attribute Items contains a list of object references of the object type VBAP (sales document item).

Syntax Syntax

  1. * Zugriff auf Attribut Items
    *************************************************
    * Datendeklaration
    *************************************************
    DATA: VBAK_REF  TYPE SWC_OBJECT.
    DATA: VBAP_ITEMS TYPE SWC_OBJECT OCCURS 0.
    
    * Objektreferenz auf Verkaufsbeleg erzeugen
    *************************************************
    SWC_CREATE_OBJECT VBAK_REF 'VBAK' <Schlüssel VerkBeleg>
    
    * Verkaufsbelegpositionen lesen
    *************************************************
    SWC_GET_TABLE_PROPERTY VBAK_REF 'Items' VBAP_ITEMS.
End of the code.