Ansicht
Dokumentation

ABAPDATA_SHORTREF - DATA SHORTREF

ABAPDATA_SHORTREF - DATA SHORTREF

CL_GUI_FRONTEND_SERVICES - Frontend Services   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

DATA

Reference



Syntax

DATA var[(len)] [TYPE { {abap_type [LENGTH len]
                                   [DECIMALS dec]}
                      | {[LINE OF] type [BOXED]}
                      | {REF TO type}
                      | { {{[STANDARD] TABLE}
                          |{SORTED TABLE}
                          |{HASHED TABLE}}
                          OF [REF TO] type
                          [WITH [UNIQUE|NON-UNIQUE]
                             { {KEY [primary_key [ALIAS key_name]
                                  COMPONENTS] comp1 comp2 ...}
                             | {DEFAULT KEY} }]
                          {[WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
                             KEY key_name1 COMPONENTS comp1 comp2 ...]
                           [WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
                             KEY key_name2 COMPONENTS comp1 comp2 ...]
                           ...}
                          [INITIAL SIZE n]
                          [WITH HEADER LINE]}
                        | {RANGE OF type [INITIAL SIZE n]
                                         [WITH HEADER LINE]}
                        | {dbtab { READER|LOCATOR|{LOB HANDLE} }
                               | { WRITER|LOCATOR } FOR
                                 { COLUMNS blob1 blob2 ...  clob1 clob2 ... }
                               | { ALL [OTHER] [BLOB|CLOB] COLUMNS }
                                  [...]}} ]
              | [LIKE { {[LINE OF] dobj}
                      | {REF TO dobj}
                      | { {{[STANDARD] TABLE}
                          |{SORTED TABLE}
                          |{HASHED TABLE}}
                          OF [REF TO] dobj
                          [WITH [UNIQUE|NON-UNIQUE]
                             { {KEY [primary_key [ALIAS key_name]
                                  COMPONENTS] comp1 comp2 ...}
                             | {DEFAULT KEY} }]
                          {[WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
                             KEY key_name1 COMPONENTS comp1 comp2 ...]
                           [WITH {UNIQUE HASHED}|{{UNIQUE|NON-UNIQUE} SORTED}
                             KEY key_name2 COMPONENTS comp1 comp2 ...]
                           ...}
                          [INITIAL SIZE n]
                          [WITH HEADER LINE]}
                        | {RANGE OF dobj [INITIAL SIZE n]
                                         [WITH HEADER LINE]} }]
                [VALUE { val | {IS INITIAL} }]
                [READ-ONLY].


Effect

Declares a variable or an instance attribute var.

Additions

  • (len)
    Defines the length when making reference to generic built in ABAP types.
  • TYPE
    Defines the type by referring to a data type.
  • LIKE
    Defines the type by referring to a data object.
  • LINE OF
    Defines the type by referring to the line type of an internal table.
  • REF TO
    Creates a reference variable.
  • INITIAL SIZE n
    Defines the initial memory usage of an internal table.
  • READ-ONLY
    Protects non- private attributes from writes from outside of their own class.
  • READ-ONLY
    Protects non- private attributes from writes from outside of their own class.





SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 15170 Date: 20240418 Time: 090656     sap01-206 ( 77 ms )