Function documentationData Declaration for Variables Used (BOR) Locate this document in the navigation structure

 

The system automatically creates an area for the data declaration for key fields, attributes and method parameters in the implementation program. This area is between the two macro instructions BEGIN_DATA OBJECT and END_DATA OBJECT at the beginning of the source text.

The data structure of the object key is between the macro instructions BEGIN OF KEY and END OF KEY and is created automatically by the system. The method parameters and attributes are then declared.

Activities

The data declaration is supplemented when the implementation program is first called after you have created the object type component.

Caution Caution

Since the system obtains the information about the names of the variables and the field references directly from the definition of the individual object type components, you cannot make any changes here.

End of the caution.

Example

The data declaration for the object type BUS1001 (Material) is used here as an example for data declaration:

Syntax Syntax

  1. BEGIN_DATA OBJECT. " Do not change.. DATA is generated
    * only private members may be inserted into structure private DATA:
    " begin of private,
    "   to declare private attributes remove comments and
    "   insert private attributes here ... " end of private,
        BEGIN OF KEY,
           MATERIAL LIKE MARA-MATNR,
        END OF KEY,
           PURCHASEREQUISITION TYPE SWC_OBJECT OCCURS 0,
           PURCHASEORDER TYPE SWC_OBJECT OCCURS 0,
           PURCHASINGINFO TYPE SWC_OBJECT OCCURS 0,
           PURCHOUTLINEAGREEMT TYPE SWC_OBJECT OCCURS 0,
           DOCUMENT TYPE SWC_OBJECT OCCURS 0,
           COSTESTIMATE TYPE SWC_OBJECT OCCURS 0,
           PIECEOFEQUIPMENT TYPE SWC_OBJECT OCCURS 0,
           _MAKT LIKE MAKT,
           _MARA LIKE MARA.
    END_DATA OBJECT. " Do not change.. DATA is generated
End of the code.