Application Development 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: 

WITHOUT INPUT VALUES

Former Member
0 Kudos

hi to every body,

i have 2 fields city and empcode in one table,and i have one selection-option for empcode and i have on parameter for city in output.now issue is with out giving input values i want to retrive all the data,but i am validating on these fields when i retrive data from the table

select empcode

city from z_akemp into it_emp when empcode in s_empcode

city = p_city.

4 REPLIES 4

Former Member
0 Kudos

Declare City also as select-option with NO INTERVALS option

0 Kudos

Hi,

Declare City also as select-option with NO INTERVALS and NO EXTENSION option.

Keep the Select query as it is...

Regards,

Kunjal

Former Member
0 Kudos

Hello Sekhar,

With your code all the data will be fetched when the input fields are empty.

There will be no issue. But If u have any validation in selection screen U just check if the fields are initial.

But with the above syntax there will be no problem

Regards,

Subbu

vinod_vemuru2
Active Contributor
0 Kudos

Hi,

Small correction to Kunjals reply.

Declare city also as select option with no intervals no-restriction.

But in select query where clause instead of equal to u have to use IN operator

SELECT-OPTIONS: s_city FOR kna1-city NO INTERVALS NO-RESTRICTION.

select empcode

city from z_akemp into it_emp when empcode in s_empcode

city IN s_city.

Here s_city looks like parameter but acts as select option.

thanks,

Vinod.