‎2013 Mar 13 3:51 PM
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.
‎2013 Mar 13 4:03 PM
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
‎2013 Mar 13 4:07 PM
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
‎2013 Mar 13 4:09 PM
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
‎2014 Feb 07 7:19 AM
Hello Shubham,
Try using OBLIGATORY NO INTERVALS.
Regards,
Thanga