on 2022 Feb 07 2:42 PM
1st Select query.
Loop at itab.
Flag = x.
Exit.
Endloop.
If Flag = x.
I want to execute 1st select query and loop again .
Does sap abap have any syntax for this or any logic.
Actually , I need this logic for finding last component of bom in multi level bom.
There is no specific statement. But it should be easy to achieve with a nested iteration like:
DO 2 TIMES.
your code above (SELECT, LOOP ... ENDLOOP)
IF need_to_repeat = abap_false.
EXIT.
ENDIF.
ENDDO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
57 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.