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

multiple records with select option

SwarnaliBasu
Participant
0 Likes
2,823

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

6 REPLIES 6
Read only

Former Member
0 Likes
1,306

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.

Read only

MarcinPciak
Active Contributor
0 Likes
1,306

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

Read only

0 Likes
1,306

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

Read only

0 Likes
1,306

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.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,306

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

Read only

SwarnaliBasu
Participant
0 Likes
1,306

points awarded..thnx