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

parameters and select options

Former Member
0 Likes
796

for eg. if we use both parametrs and selct-options to input a client no from the user in case of paramters if e leave it blank we dont get any entry, but in case of select options we get all. why does that happen?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
768

The select-options internal table is not populated with any records if nothing is entered in the selection screen..If it has one recored with low and high as blank value..Then it will behave similar to parameter with blank value..

Thanks,

Naren

for eg. if we use both parametrs and selct-options to input a client no from the user in case of paramters if e leave it blank we dont get any entry, but in case of select options we get all. why does that happen?

6 REPLIES 6
Read only

Former Member
0 Likes
768

PARAMETERS for single fields

SELECT-OPTIONS for complex selections

pls see this.<a href="http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm">http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm</a>

Read only

Former Member
0 Likes
768

Hi,

For the select-options you will be using IN operator in the SQL..If there is no record in the select-options the field value in the where clause is not considered..

But for parameters you will be using EQ operator in the SQL..if there is no value in the parameter which means blank..Then if you are selecting with a blank value you will not get any record..unless there is a record available in the database with a blank value..

Thanks,

Naren

Read only

dani_mn
Active Contributor
0 Likes
768

HI,

It is because of the select-options property that when it is leave empty all values will be selected. and when parameter is empty no value will be selected.

REgards,

Read only

Former Member
0 Likes
768

Why exactly does that happen even though we leave the select-options blank the internal table generaled still has null values for low and high.

Read only

Former Member
0 Likes
769

The select-options internal table is not populated with any records if nothing is entered in the selection screen..If it has one recored with low and high as blank value..Then it will behave similar to parameter with blank value..

Thanks,

Naren

Read only

Former Member
0 Likes
768

hi chinmaya

i jst want to know tht y u want both the input statement to be used for the same input