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 options

Former Member
0 Likes
595

Hi Experts,

Following is my selection screen which is very common. Date field is mandatory. When I enter the following dates (there are 25 records for it), in debugger it shows 0.

select ebeln

          bedat

        bsart

        ekgrp

        lifnr

from ekko

into table gt_ekko

where ebeln = s_ebeln and bedat = s_date and ekgrp = s_ekgrp and lifnr = s_lifnr and bsart = s_bsart.

The only mandatory field should be date. Why it is not picking any record when the user only enters the date?

Regards

Mani

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
565

Hai,

first check,all the fields that you menctioned in the select query are declared in your internal table.

Try this:

select ebeln

          bedat

        bsart

        ekgrp

        lifnr

from ekko

into table gt_ekko

where ebeln in s_ebeln and bedat in s_date and ekgrp in s_ekgrp and lifnr in s_lifnr and bsart in s_bsart.

2 REPLIES 2
Read only

Former Member
0 Likes
566

Hai,

first check,all the fields that you menctioned in the select query are declared in your internal table.

Try this:

select ebeln

          bedat

        bsart

        ekgrp

        lifnr

from ekko

into table gt_ekko

where ebeln in s_ebeln and bedat in s_date and ekgrp in s_ekgrp and lifnr in s_lifnr and bsart in s_bsart.

Read only

0 Likes
565

hi mani,

                use the following

1. for select-option use "IN" in where condition.

2. for parameters use "eq" in where condition.

hope it helps

vikas