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: 

At End Of .... In Loop

Former Member
0 Kudos

Hi all,

I've sorted an itab by two fields A and B. Before loop one i've sorted by A B. Before loop two by B A. In loops i've used At End Of... keyword. In loop one At End Of A, and in loop two At End Of B...In loop one there is no problem when A change the At End Of catches but in loop two every loop it catches the but it has no change in field B. I can not solve this problem.

Regards,

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

You need to keep 2 internal tables like

For Sort AB

Your sequence of fields in internal table itab will be

A

B

For Sort BA

Your sequence of fields internal table itab1 (same as itab) will be

B

A

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos

You need to keep 2 internal tables like

For Sort AB

Your sequence of fields in internal table itab will be

A

B

For Sort BA

Your sequence of fields internal table itab1 (same as itab) will be

B

A

Former Member
0 Kudos

Thanks a®s,

The problem is the sequence of the fields in the table.

Regards,