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

Selection screen for SAP Query: OR between options

Former Member
0 Likes
422

Hi,

I have a SAP Query and I need a variant where either of two fields should not be 0. Is there some way to add an OR between two selection options? I can't change the actual query because it's used with many other variants.

Thanks

Hi,

I have a SAP Query and I need a variant where either of two fields should not be 0. Is there some way to add an OR between two selection options? I can't change the actual query because it's used with many other variants.

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
381

In abap you can do it, but not sure how you do it in query.

if s_matnr[] is initial or s_werks[] is initial.

  • Do something

endif.

Read only

0 Likes
381

Problem is the selection screen is for a sap query that has about 4 more variants that dont need that particular option.

I'm trying to avoid creating a new query just for this since all the fields are already there.