Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Control statement inside a dynamic IT loop

Former Member
0 Likes
323

Hello all, i want to perform some control statement (At new, at last, On stmt) inside a dynamic table is it possible to perform the same. I will appreciate if somebody can provide me a snapshot of code too.

mani

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
294

yes, it is possible, roughly:

LOOP AT <dynamic_itab> ASSIGNING <dynamic_wa>.
ASSIGN COMPONENT 'field' OF STRUCTURE <dynamic_wa> TO <dynamic_field>.
AT NEW <dynamic_field>.
...

2 REPLIES 2
Read only

JozsefSzikszai
Active Contributor
0 Likes
295

yes, it is possible, roughly:

LOOP AT <dynamic_itab> ASSIGNING <dynamic_wa>.
ASSIGN COMPONENT 'field' OF STRUCTURE <dynamic_wa> TO <dynamic_field>.
AT NEW <dynamic_field>.
...

Read only

0 Likes
294

THANKS A LOT, i assume you hv done it but i can't try it now. so iam closing thread for now.

thanks