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

Loop based on select-option.

tarangini_katta
Active Contributor
0 Likes
367

Hi All,

I have Select-options in my selection screen.

I have values in my internal table.

I want to fill my final internal table based on condition of select option.

I am writing like this

LOOP AT IT_VAT INTO WA_VAT WHERE MWSKZ EQ S_MWSKZ OR TEXT2 CS TEXT-003

OR TEXT2 = TEXT-002 .

endloop.

But i am getting the values from itab which has values in S_MWSKZ.

Can anybody please help me

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
340

hi,

Are you looking for this ...

LOOP AT IT_VAT INTO WA_VAT WHERE MWSKZ IN S_MWSKZ AND 
          ( TEXT2 CS TEXT-003 OR TEXT2 CS TEXT-002 ).

ENDLOOP.

1 REPLY 1
Read only

Former Member
0 Likes
341

hi,

Are you looking for this ...

LOOP AT IT_VAT INTO WA_VAT WHERE MWSKZ IN S_MWSKZ AND 
          ( TEXT2 CS TEXT-003 OR TEXT2 CS TEXT-002 ).

ENDLOOP.