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

will this loop condition work?

aris_hidalgo
Contributor
0 Likes
368

Hello experts,

Since I can't test my code in development server because of lack of data I was wondering if my code below would work. What I want to do is to loop at internal table

it_mseg_mara where it's BWART is not equal to the range that I have declared? So meaning to say that I do not want to include bwarts that has a value of 702, 708, 712, 718 so it will not be passed to internal table t_ztm0019.Please feel free to give other suggestions. Thanks guys and take care!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
354

hi Viray ,

I,ve tested that code was given in the previous post with different values..

it will work ..

the sign in Range shud be 'E'for excluding..

and option 'EQ'..

loop at it_mara_mseg where BWART in range.
   move  it_mara_mseg  to t_ztm0019.
   append t_ztm0019. 
 endloop.

regards

satesh

2 REPLIES 2
Read only

Former Member
0 Likes
355

hi Viray ,

I,ve tested that code was given in the previous post with different values..

it will work ..

the sign in Range shud be 'E'for excluding..

and option 'EQ'..

loop at it_mara_mseg where BWART in range.
   move  it_mara_mseg  to t_ztm0019.
   append t_ztm0019. 
 endloop.

regards

satesh

Read only

Former Member
0 Likes
354

Hi viray,

LOOP AT it_mseg_mara WHERE NOT ( bwart EQ 702 OR

bwart EQ 708 OR

bwart EQ 712 OR

bwart EQ 718 ).

ENDLOOP.