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 selection not working in select options

Former Member
0 Likes
5,237

Hello Experts,

I am using select options in selection screen in module pool program.

when I am entering values on screen and executes the report it is working fine but when I click on 'Multiple selection'

button and enter values in window and press 'Execute' button all of the values get deleted i.e no data available in select options input fields.

I am creating selection screen as per below code:

SELECTION-SCREEN begin of screen 101 as SUBSCREEN.
   selection-screen begin of block b1 with frame.
   SELECT-OPTIONS: s_pspid for proj-pspid OBLIGATORY.
   selection-screen end of block b1.
SELECTION-SCREEN end of screen 101
.

How can I enter values in select options using 'Multiple selection' button.

Please help.

4 REPLIES 4
Read only

adam_krawczyk1
Contributor
0 Likes
2,247

Hi Shubham,

I am not sure what do you mean that "all of the values get deleted". I guess that you do not see that values are there. If there are multiple values specified, you will see that button for multi selection has green mark on it.

Try to run report (F8) and debug to see how many entries are in s_pspid range. I hope you will have all data that you entered.

Other option is at you have implemented "AT SELECTION-SCREEN OUTPUT." section and clear s_pspid there.

If you still have problems, please paste some screenshots.

Regards,

Adam

Read only

Former Member
0 Likes
2,247

Hi,

Use of the FM : COMPLEX_SELECTIONS_DIALOG to make select options in a module pool program.

or example's is below

http://scn.sap.com/thread/3174342

http://www.saptechnical.com/Tutorials/ABAP/SelectOptions/Index.htm

http://wiki.sdn.sap.com/wiki/display/ABAP/Select-Options+in+Module+Pool+Programming

Regards

Mahesh

Read only

Former Member
0 Likes
2,247

Hi Shubham,

pressing the multiple selection button in your selection screen it caused a run of the flow logic of your screen. Each button at SAP screen ahs a function code behind, the multiple selection button as well.

I would recomended to check at first the program flow behaviour after click multiple selection via debugger, and if it is as I assume, try to cover the function code so far, that your own flow logic will not affect anymore.

KR

Robert

Read only

ThangaPrakash
Active Contributor
0 Likes
2,247

Hello Shubham,

Try using  OBLIGATORY NO INTERVALS.

  1. SELECTION-SCREEN begin of screen 101 as SUBSCREEN. 
  2.    selection-screen begin of block b1 with frame. 
  3.    SELECT-OPTIONS: s_pspid for proj-pspid OBLIGATORY NO INTERVALS. 
  4.    selection-screen end of block b1. 
  5. SELECTION-SCREEN end of screen 101.

Regards,

Thanga