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

Default multiple values for a parameter in selection screen

Former Member
0 Likes
2,621

Hi all experts,

How can i create a parameter with multiple default values? Further how can i get those values in my report? Will it create a range or there is some other method. If i need to fetch the single value will i use the low and for multiple use both the low and high. I am able to create it for a select option but had no success to get values in report.And for parameter i am unable to create multiple values.

Please help me solve this doubt. If possible please pass on a small code snippet.

Thanks in advance.

Biya.

1 ACCEPTED SOLUTION
Read only

BGarcia
Active Contributor
0 Likes
1,133

Hi Biya,

Don't sure if I've understand correctly, but if you want a PARAMETER with multiple options, you can use the SELECT-OPTIONS command with the addiction NO INTERVALS.

Here's a code snippet so you can try it:


REPORT  z_test                             .

*- Select-options
TABLES: sflight.
SELECT-OPTIONS s_option     FOR sflight-carrid NO INTERVALS.

*- Program flow
START-OF-SELECTION.
  LOOP AT s_option.
    WRITE / s_option-low. "Write each inserted value
  ENDLOOP.

Hope that helps.

Kind regards.

4 REPLIES 4
Read only

BGarcia
Active Contributor
0 Likes
1,134

Hi Biya,

Don't sure if I've understand correctly, but if you want a PARAMETER with multiple options, you can use the SELECT-OPTIONS command with the addiction NO INTERVALS.

Here's a code snippet so you can try it:


REPORT  z_test                             .

*- Select-options
TABLES: sflight.
SELECT-OPTIONS s_option     FOR sflight-carrid NO INTERVALS.

*- Program flow
START-OF-SELECTION.
  LOOP AT s_option.
    WRITE / s_option-low. "Write each inserted value
  ENDLOOP.

Hope that helps.

Kind regards.

Read only

Former Member
0 Likes
1,133

Hi Biya ,

Press F1 on SELECT-OPTIONS or NO INTERVALS and try to understand the use of it.

This will resolve your issue.

Read only

Former Member
0 Likes
1,133



tables : mara.

select-options : 
                         s_matnr for mara-matnr No Intervals.        " This will internally create a parameter where you can have                                                                                
"  multiple  values

                        s1_mat for mara-matnr No Intervals No-extension.    " This is nothing  but Internally equal to parameter .

    

Regards

Satish Boguda

Read only

Former Member
0 Likes
1,133

Hi Bruno,

Thanks a lot for the help.It actually worked. And very Sorry for a late reply due to some issues.

Thanks,

Biya