‎2009 Dec 24 2:03 PM
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.
‎2009 Dec 24 2:19 PM
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.
‎2009 Dec 24 2:19 PM
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.
‎2009 Dec 24 5:06 PM
Hi Biya ,
Press F1 on SELECT-OPTIONS or NO INTERVALS and try to understand the use of it.
This will resolve your issue.
‎2009 Dec 28 7:32 PM
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
‎2009 Dec 29 3:03 AM
Hi Bruno,
Thanks a lot for the help.It actually worked. And very Sorry for a late reply due to some issues.
Thanks,
Biya