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

Select options in Module Pool

Former Member
0 Likes
939

Hi Experst

Can any one suggest how to create select options in Module pool

Thanks

Surendra Reddy

8 REPLIES 8
Read only

sridhar_meesala
Active Contributor
0 Likes
908

Hi,

Have a look at the link.

[]

Thanks,

Sri.

Read only

Former Member
0 Likes
908

Hello,

Check this

Read only

Former Member
0 Likes
908

Hi,

Just create a selection screen in the TOP include like this



SELECTION-SCREEN BEGIN OF SCREEN 1001.
SELECT-OPTIONS: s_vkorg FOR vbak-vkorg.
SELECTION-SCREEN END OF SCREEN 1001.

You can also create a selection screen as a subscreen




SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
SELECT-OPTIONS: s_vkorg FOR vbak-vkorg.
SELECTION-SCREEN END OF SCREEN 1001.

For this, create a screen 1000, define a subscreen area and call the subscreen 1001 in the flow logic of 1000 as



"In PAI
CALL SUBSCREEN <subscreen_area> INCLUDING <sy-cprog> '1001'.

"In PBO
CALL SUBSCREEN <subscreen_area>.

If you want it on a Layout screen, then you could create two I/O fields, name them as SO_VBELN-LOW and SO_VBELN-HIGH.

Define RANGES for these and then use them as select options.

Read only

0 Likes
908

Hi Nitwick ,

Thanks for Reply

i did the same thing but it thorows some error

Error when generating the selection screen "<Sub screen no>" of report

can u please give some suggestion

Thanks

Surendra Reddy

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
908

My suggestion is to search in SCN.

Read only

Former Member
0 Likes
908

Solved by Myself

after search in SDN

Read only

0 Likes
908

Dear Sir,

Can you tell me how u inserted in select-options in module pool.

Regards,

Pradeep

Read only

0 Likes
908

Dear Pradeep

Please take a look at below code

jus copy this and execute it create a select options in Module pool

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.

Thanks

Surendra