Ansicht
Dokumentation

ABENOO_OBS_ITAB_AT_2 - OO OBS ITAB AT 2

ABENOO_OBS_ITAB_AT_2 - OO OBS ITAB AT 2

Fill RESBD Structure from EBP Component Structure   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Compatible Work Area When Processing Group Levels

The work area must be compatible with the table line type when processing group levels in an internal table.

In ABAP Objects, and as of release 7.0 also outside of classes, the following statement causes an error message:

DATA: itab LIKE TABLE OF line,
      wa(255) TYPE x.

SORT itab by col1.
LOOP AT itab INTO wa.
  AT NEW col1.
  ENDAT.
ENDLOOP.

Correct syntax:

DATA: itab LIKE TABLE OF line,
      wa   LIKE LINE OF itab.
SORT itab by col1.
LOOP AT itab INTO wa.
  AT NEW col1.
  ENDAT.
ENDLOOP.

Cause:

Group level processing is based on the line structure of the internal table. The work area is evaluated to determine the group break, which means it must have the same structure as a table row.






BAL Application Log Documentation   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 1243 Date: 20240418 Time: 100712     sap01-206 ( 30 ms )