Skip to Content
0
Jul 15 at 06:26 AM

Separate ABAP syntax LOOP GROUP BY and LOOP AT GROUP to different methods

131 Views Last edit Jul 15 at 06:41 AM 4 rev

ABAP OO: Is it possible to separate ABAP syntax LOOP GROUP BY and LOOP AT GROUP to different methods?

We want to develop a readable code(Clean code).
We use syntax LOOP GROUP BY with a lot of logic inside it and we want (inside the LOOP) to separate the different logic stories into different methods. Our problem begin when we need to use syntax LOOP AT GROUP and we want it inside sub-method in the LOOP GROUP BY.

We get error message "No group is bound to &Our grouping structure&" and cant compile it.