Application Development 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: 

LOOP (Extract Processing and debugging)

Former Member
0 Kudos

Hi all,

At Form AVIS in Include RFFORI06 have this code:

LOOP.

...

ENDLOOP.

I'm trying to see in degub wich table is looping so i can see how it is sorted and why, but i can't.
Hint: The structure REGUP is the one getting changed everytime it restart LOOP.

Please anyone know how this old code works?

Message was edited by: Matthew Billingham - updated subject

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

I know LOOP without any addition can exist in step loops in a dynpro flow logic (cf ABAP documentation - LOOP for step loops), but not inside an ABAP subroutine. Are you sure the LOOP is inside the subroutine AVIS? Isn't it in the dynpro flow logic?

7 REPLIES 7

Sandra_Rossi
Active Contributor
0 Kudos

I know LOOP without any addition can exist in step loops in a dynpro flow logic (cf ABAP documentation - LOOP for step loops), but not inside an ABAP subroutine. Are you sure the LOOP is inside the subroutine AVIS? Isn't it in the dynpro flow logic?

0 Kudos

Hi Sandra,

maybe you are too young, the answers is just something for the gray haired developer

Search for the keyword "extract".

Cheers, Uwe

0 Kudos

I played a little bit with Extracts, but that was a long time ago, thank you for reminding us that old technology! This is the ancestor of "internal table". It's filled with the statement EXTRACT. When it's executed, all global variables defined using INSERT (into a "field group" declared using FIELD-GROUPS) are transferred as a line. It's later read using LOOP.

0 Kudos

Hi Uwe,

Thanks for the clue.
In this case i have 3 field-groups (header / daten / avis).
Is it possible to see the entries in the extract dataset in debug mode?

0 Kudos

Wow, difficult question. To be honest: I don't know. Never have worked with this kind of Loop in the last 10 or 15 years. Maybe if you go to the tab where the debugger shows all the local variables.

matt
Active Contributor
0 Kudos

As I recall, the extract dataset is implemented as a file on the file system of the application server. With some hunting you might find it there, but I'm fairly sure it's not accessible from debug. The field-groups can be viewed as internal tables (with header lines) in debug. These seem to have hex entries which (guess) refer to where the records exist in the aforementioned file.

While I don't have much hair, it isn't grey yet!

matt
Active Contributor
0 Kudos

There is this earlier post which seems to concur with my opinion. Field-Group Content. | SCN