ABAPLOOP_AT_ITAB_RESULT - LOOP AT ITAB RESULT

BAL_S_LOG - Application Log: Log header data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

LOOP AT itab - result

Short Reference



Syntax

... { INTO wa }
  | { ASSIGNING <fs> [CASTING] }
  | { REFERENCE INTO dref }
  | { TRANSPORTING NO FIELDS } ... .

Effect

There are four alternatives for output behavior:

  • With the INTO addition, you assign the content of the current row to a wa work area.

  • With the ASSIGNING addition, you assign the current row to a field symbol <fs>; withinthe loop, you are not allowed to assign a different memory area to the field symbol or cancel the assignment with UNASSIGN.

  • With the REFERENCE INTO addition, you set a reference to the current row in a reference variable.Within the loop, you are not allowed to assign another reference to the reference variable, and youare not allowed to initialize the reference variable with CLEAR.

  • With the TRANSPORTING NO FIELDS addition, you only maintain the corresponding system fields.This addition is only possible if the WHERE addition is used simultaneously in the cond conditions.

With the exception that no further transport_optionscan be specified after INTO wa, the syntax and meaning of the specification of the output behaviorare the same as in the READ TABLE statement. The same restrictions apply regarding the modification of key fields of theprimary andsecondary table keys.

Notes

Aside from classes, there is one other obsoleteshort form for LOOP for which you can omit the INTO wa specification if the internal table has an itabheader line of the same name. The statement is supplemented with INTO itab.

  • If the current row is deleted within the loop during the use of additions ASSIGNING or REFERENCEINTO, the field symbol or reference variable is then not assigned in the current loop pass or remains unbound.





Fill RESBD Structure from EBP Component Structure   PERFORM Short Reference  
This documentation is copyright by SAP AG.


Length: 3405 Date: 20120523 Time: 000722     triton ( 121 ms )