Ansicht
Dokumentation

ABENOO_OBS_STRUCT_DEF_2 - OO OBS STRUCT DEF 2

ABENOO_OBS_STRUCT_DEF_2 - OO OBS STRUCT DEF 2

RFUMSV00 - Advance Return for Tax on Sales/Purchases   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

No Operational Statements in Structure Definitions

The definition of a structured data type or data object with TYPES, DATA, CLASS-DATA, STATICS and CONSTANTS must not contain any other statements in ABAP objects and, since Release 7.0, outside of classes also.

Error message in ABAP objects for:

TYPES: BEGIN OF line,
         col1 TYPE i.
MOVE 'X' TO a.
TYPES:   col2 TYPE i,
       END OF line.

Correct syntax:

TYPES: BEGIN OF line,
         col1 TYPE i,
         col2 TYPE i,
       END OF line.
MOVE 'X' TO a.

Reason:

The definition of a structure between BEGIN OF and END OF is an entire block in which only the components of the structure may be declared.






ROGBILLS - Synchronize billing plans   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1235 Date: 20240419 Time: 041418     sap01-206 ( 18 ms )