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

Regarding data retieval

sreeramkumar_madisetty
Active Contributor
0 Likes
556

Hi dudes

I am facing 1 peculiar problem when date retreving.

I have 1 parameter(p_lifsk) in the selection screen ( Delivery Block).

When i was given some value in the selection-screen i am getting the result properly.

While I was left as empty I am not getting the results properly.

In debugging for p_lifsk space is not recognizing.

Can anyone please suggest me the needful.

Regards,

Sreeram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
537

Hi..

If u left the empty means.

It will took all datas what u specified in the select query.

Regards

Bala..

4 REPLIES 4
Read only

Former Member
0 Likes
538

Hi..

If u left the empty means.

It will took all datas what u specified in the select query.

Regards

Bala..

Read only

Former Member
0 Likes
537

Sree,

Change the parameter to a SELECT-OPTIONS

and use an IN statement in your WHERE clause

SELECT * from some_table

where lifsk IN s_lifsk.

You can use some properties of the SELECT-OPTIONS to hide the HIGH value box as well - if you need to.

Read only

Former Member
0 Likes
537

Change the parameter to a SELECT-OPTIONS

Use No INTERVALS, NO EXTENSION to make it equivalent to parameter

Also change the SELECT to have IN instead of EQ while using parameter

SELECT * from some_table

where lifsk IN s_lifsk.

EG:

TABLES: MARA.

SELECT-OPTIONS:

S_MATNR FOR MARA-MATNR NO INTERVALS NO-EXTENSION.

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
537

Hi

It's Answered.