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

Select-Option

Former Member
0 Likes
620

How can i use the values from Select option if the user enters only one value but no interval then my statement works

SELECT-OPTIONS : S_matnr FOR mara-matnr.

Select maktx from mara

into corresponding fields of it_tab3

where matnr in s_matnr.

How should I write the logicwhen th e

user doesnt enter any value or

user enters few values in selection screen or

the user enters a range of values.

Can anybody let me know how can we retrieve data based on the values form Selection screen , Actually 'm new to ABAP.

Thanks for your Help.

5 REPLIES 5
Read only

Former Member
0 Likes
577

Hi ,

Where Condition MATNR in S_MATNR itself will take care of this. Condition in the below select query will work based on the values given in Selection screen.

Select maktx from mara into corresponding fields of it_tab3
where matnr in s_matnr. 

Note : Before posting -- please surf the forums or check the documentation ( F1 ) you will get more details.

Read only

0 Likes
577

SELECT-OPTIONS : S_matnr FOR mara-matnr.

Select maktx from mara

into corresponding fields of it_tab3

where matnr in s_matnr.

How should I write the logicwhen th e

user doesnt enter any value or

user enters few values in selection screen or

the user enters a range of values.

In all the above cases - where matnr in s_matnr. THis condition will take care.

If you will debug the code ,You will get more idea.

S_matnr will have following things

Sign

option

Low -

High

Thanks!

Read only

0 Likes
577

Hi,

Unless you explain your problem clearly its difficult for us to give any inputs.

Thanks,

Sri.

Read only

Former Member
0 Likes
577

Hi,

Please see the SCN Rules Before Posting. Before Posting Please refer on help.sap.com or SCN or google .

With Regards,

Sumodh.P

Read only

Former Member
0 Likes
577

Moderator message - Please do not ask or answer basic questions - thread locked Rob