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

Selct Options in Module Pool screen.......

Former Member
0 Likes
587

Hi Gurus,

We know the way to get the Select options on the Module -Pool screen as follows....

Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.

I have tried the same as a test run for the FM. .but not returning meaningfull range......

Can any 1 clerify where the code containing the FM has to be included in the Screen flow (inside PAI, PBO or else) to get the range which can further be used inside the code for database selections or else..... .

Secondly, how is the inserted icon populated and used while coding........????

Thanks And Regards,

Abhi........

Hi Gurus,

We know the way to get the Select options on the Module -Pool screen as follows....

Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.

I have tried the same as a test run for the FM. .but not returning meaningfull range......

Can any 1 clerify where the code containing the FM has to be included in the Screen flow (inside PAI, PBO or else) to get the range which can further be used inside the code for database selections or else..... .

Secondly, how is the inserted icon populated and used while coding........????

Thanks And Regards,

Abhi........

3 REPLIES 3
Read only

Former Member
0 Likes
547

Hi

Please find the below code u will get select options

dont create any screen fitst jus type of prog is 'M' and create a tcode with 100 screen

than execute u will get select options

TABLES:VBAP.

SELECTION-SCREEN BEGIN OF SCREEN 100 .
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS S_VBELN FOR VBAP-VBELN.
PARAMETER P_WERKS LIKE VBAP-WERKS.
SELECT-OPTIONS S_ERDAT FOR VBAP-ERDAT.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN END OF SCREEN 100.

Regards

Surendra

Read only

RaymondGiuseppi
Active Contributor
0 Likes
547

It is much more easy to define a <a class="jive-link-external" href="http://help.sap.com/abapdocu_70/en/ABAPSELECTION-SCREEN_SUBSCREEN.htm" target="_newWindow">selection-screen as subscreen</a> (like a report selection-screen) and to include this subscreen into your screen. (SAP sample at <a class="jive-link-external" href="http://help.sap.com/abapdocu_70/en/ABENSEL_SCREEN_SUBSCREEN_ABEXA.htm" target="_newWindow">Selection Screens as Subscreens </a>)<br />

<br />

Regards,<br />

Raymond

Read only

0 Likes
547

Thankss...

Abhi.....