2009 Aug 19 7:19 PM
i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name from sm35, the table from where data is retrieved is APQI, i have used a parameter before using select option ,like:
selection-screen begin of line.
parameters: P_grpid like apqi-groupid.
select-options: s_grpid like apqi-groupid.
selection-screen end of line.
AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
{the code starts
FM F4 selection is called}
AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
{
FM F4 selection is called}
now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
Thanks
Swarnali
i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name from sm35, the table from where data is retrieved is APQI, i have used a parameter before using select option ,like:
selection-screen begin of line.
parameters: P_grpid like apqi-groupid.
select-options: s_grpid like apqi-groupid.
selection-screen end of line.
AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
{the code starts
FM F4 selection is called}
AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
{
FM F4 selection is called}
now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
Thanks
Swarnali
2009 Aug 19 8:13 PM
Hello Swarnali,
select-option is also one type of internal table with sign option low high as internal tables.
so as previously you were filling parameter with multiple values in current case you can fill the LOW field from select-option.
Hope this helps!
Thanks,
Augustin.
2009 Aug 19 8:44 PM
Simply fill you selet-options table appending new rows for it. Example code
TABLES: scarr.
SELECT-OPTIONS so_carr FOR scarr-carrid.
AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr. "trigger POV for multiple selection button, not LOW or HIGH
so_carr-low = 'AF'.
so_carr-sign = 'I'.
so_carr-option = 'EQ'.
APPEND so_carr.
so_carr-low = 'AG'.
so_carr-sign = 'I'.
so_carr-option = 'EQ'.
APPEND so_carr.
"here you will get multpile values selected
Regard
Marcin
2009 Aug 20 6:08 AM
HI
if i use AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr. , its giving an error as "ON VALUE REQUEST FOR" should be followed by <parameter> or <select-option>-LOW / <select-option>-HIGH.", now tell me how to do it? thats the reason i have used so_carr- low
Thanks
swarnali
2009 Aug 20 11:27 AM
Hello Swarnali,
You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
so sudo code will be:
AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
Select data from table.
so_carr-LOW = value
append so_carr.
You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
Thanks,
Augustin.
2009 Aug 20 6:17 AM
check this example
link:[http://www.erpgenie.com/sap-technical/abap/call-f4-help-from-selection-screen]
Edited by: Keshu Thekkillam on Aug 20, 2009 10:47 AM
2009 Oct 13 8:30 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |