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

Question on internal table logic..

Former Member
0 Likes
793

Gurus,

I have a internal table as follows:

it_tab:

ID---ACTION---CHANGE

A1-----X--


B2----


U

C1-----X--


U

C2-----X--


Without looping at the table, how can I find get the result that the internal table has 3 ids with ACTION ='X'

and 1 ID with ACTION = X and Change = U.

Regards,

Rajesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
768

Why not LOOP??

Rob

Gurus,

I have a internal table as follows:

it_tab:

ID---ACTION---CHANGE

A1-----X--


B2----


U

C1-----X--


U

C2-----X--


Without looping at the table, how can I find get the result that the internal table has 3 ids with ACTION ='X'

and 1 ID with ACTION = X and Change = U.

Regards,

Rajesh.

4 REPLIES 4
Read only

Former Member
0 Likes
769

Why not LOOP??

Rob

Read only

Former Member
0 Likes
768

I agree with Rob, why not loop?

First thing without loop that comes to mind is

Using the Read statement 4 times with index 1,2,3 & 4.

Regards,

DNP

Read only

0 Likes
768

I guess, without loop its not possible. So thanks for the comments...

Read only

0 Likes
768

Yes, it's possible, but the question remains - why don't you want to LOOP?

Rob