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

selection screen in mod pool prog

Former Member
0 Likes
2,245

hii everybody

i want to creat a selection screen using mod pool ..but when ever i am creating a screen then the 4rth option which is of selection screen is automaticaly getting greyed out ... so how do i create it

bye thanks

hii everybody

i want to creat a selection screen using mod pool ..but when ever i am creating a screen then the 4rth option which is of selection screen is automaticaly getting greyed out ... so how do i create it

bye thanks

19 REPLIES 19
Read only

Former Member
0 Likes
2,179

Hi,

do you mean the 4th selection option? for that, you jave to go to the selection screen layout and corresponding to that input/output box, double click on that and in the tools menu that appears, you have to make that input enabled.

Regards,

Aswin

Read only

Former Member
0 Likes
2,179

Rohit,

SELECTION SCREENS are automatically generated when you have a program as report program.

What you can do is to have a report program get your selection screen and then call the dialog program from there and you can pass the values from the selection screen to program.

Regards,

Ravi

Read only

Former Member
0 Likes
2,179

check the attributes of 4th option of selection screen

i think have u checked the color attributes of selection screen .

Read only

Former Member
0 Likes
2,179

Hi,

Technically every time you generate your program the selection screen is generated dynamically if you want to create a screen with another number than 1000 and then use call screen in your program.

In this case don't create any parameters or select-options in your program.

But for this screen you need to write your own validations and for any list processing you need submit and return.

Rewards if this is helpful.....

Regards,

Yakub Shah

Read only

Former Member
0 Likes
2,179

can u show me some sort of coding for that ... i mean if i want to create a selection screen of no 1010 ..how do i do it ...

Read only

0 Likes
2,179

To create a selection screen in module pool program, you have to go to the transaction se80, theregive the name of the program and enter. then right-click on the screen option that appears in the left pane and say create screen. then give the screen numberv, say, 1010 and description for the screen.once youve done that, go to the layout of the screen and include all the buttons and I/O parameters in the screen (design the layout), activate and then add the suitable code for that screen in the flow logic part.

Read only

Former Member
0 Likes
2,179

hii ashwin

well when i am creating a screen supose 1010 then the 4rth option is automaticaly getting greyed out ..so how do i creat a sel screen in m pool

Read only

0 Likes
2,179

by greyed out you mean the 4th select option is input disabled. is it? and what program are you using? a normal report executable program or a module pool program?

If you are using an executable program, you'll have a default selection screen, so you can create a separate selection screen using transaction SE51 and call it in the program using the statement

CALL SCREEN 1010.

OR if you are using a module pool program then create the screen referring to my above post. if you mean that the 4th option is input-disabled(greyed out), then go to the layout of the screen, open the attributes tool box for that particular option by double-clicking on it and tryb giving the option as INPUT/OUTPUT.

Hope this would solve your problem

Regards,

Aswin

Read only

Former Member
0 Likes
2,179

In module pool program all the selections can be done in screen itself i.e. se51 layout and in flowlogic. here we can add all the validations, passibles entries and help.

and we can not call explicit selection screen here.

if u want to add the selection screen into ur Dialog program, start with the report program u can call selction screen, and u can call any number of screens from the same report.

Read only

Former Member
0 Likes
2,179

for executing the prog. u have to create a transaction.

when u r creating a transaction then specify there the screen no.(suppose 100) that should execute first.and design that screen (100) as a selection screen.

<b>plz rewards if it is helpful</b>.

Read only

Former Member
0 Likes
2,179

Hi Rohit,

Create your main program as TYPE 1 i.e. Executable.

For this program create a standard screen and not a selection screen.

Create all validations.

And in the start of the report say CALL SCREEN 1010.

and in that have a button which proceeds with the okcode for further processing. GOT IT !!!!!

May be this you find helpful.

BYE.....

Read only

Former Member
0 Likes
2,179

hii aswin

so mean to say that firsti should creat the screen as a normal one and then in the layout of that screen i should create a io field but then how to proceed and how will the screen wil be transfered automaticaly from normal to the selection screen

Read only

0 Likes
2,179

in your module pool program, the screen you've created for the program can be made as your selection screen by creating a transaction(same way as you create a screen in SE80) for the program and giving the screen number as your first screen. the alternate way for creating the transaction would be go to SE93 give the transaction name, then the text, program name and the screen number. the screen number you give will be the selection screen for that program.

Regards,

Aswin

Read only

0 Likes
2,179

hii aswin

i first created a transaction of 1010 ...and then when i am creating the screen 1010 then also its geting disabled ... so now how to proseed ...

Read only

0 Likes
2,179

you mean creating a user defined selection screen.

follow the same code for your program:

REPORT demo_call_selection_screen.

SELECTION-SCREEN BEGIN OF BLOCK sel1 WITH FRAME TITLE tit1.

PARAMETERS: cityfr TYPE spfli-cityfrom,

cityto TYPE spfli-cityto.

SELECTION-SCREEN END OF BLOCK sel1.

SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.

SELECTION-SCREEN INCLUDE BLOCKS sel1.

SELECTION-SCREEN BEGIN OF BLOCK sel2

WITH FRAME TITLE tit2.

PARAMETERS: airpfr TYPE spfli-airpfrom,

airpto TYPE spfli-airpto.

SELECTION-SCREEN END OF BLOCK sel2.

SELECTION-SCREEN END OF SCREEN 500.

INITIALIZATION.

tit1 = 'Cities'.

AT SELECTION-SCREEN.

CASE sy-dynnr.

WHEN '0500'.

MESSAGE w888(SABAPDOCU) WITH 'Screen 500'.

WHEN '1000'.

MESSAGE w888(SABAPDOCU) WITH 'Screen 1000'.

ENDCASE.

START-OF-SELECTION.

tit1 = 'Cities for Airports'.

tit2 = 'Airports'.

<b>CALL SELECTION-SCREEN 500 STARTING AT 10 10.</b>

tit1 = 'Cities again'.

<b>CALL SELECTION-SCREEN 1000 STARTING AT 10 10.</b>

Regards,

Aswin

Read only

Former Member
0 Likes
2,179

soory yaar well tried but its not working ... i just need to creat it in mud pool not in simple reproting ... the 4rth option still disabled

Read only

0 Likes
2,179

Well.Rohit..have you created that option (4th option) in the layout of your selection screen?if so then check the layout and the properties of that options. I dont think there should be any other problem other than that being input-disabled.

Regards,

Aswin

Read only

0 Likes
2,179

hello buddy Rohit,

I had same problem...and solution is,the Screen is automatically created from code..and u will see it when u individually navigate to the screen from se51..but it wont appear in se80 directly...

<points begging removed by moderator>

Edited by: Thomas Zloch on Jun 23, 2011 1:24 PM - This thread is five years old!

Read only

Former Member
0 Likes
2,179

Hello Rohit Gupta

Pls find the following code

Create an Executable Program like this.

report ztest_program1.

TABLES : vbrk , vbrp .

data: ok_code type sy-ucomm.

SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.

PARAMETERS : p_vkorg TYPE vbrk-vkorg OBLIGATORY DEFAULT '1000'.

SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,

s_posnr FOR vbrp-posnr.

SELECTION-SCREEN END OF SCREEN 400 .

START-OF-SELECTION .

CALL SCREEN 100 .

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


MODULE STATUS_0100 OUTPUT.

set PF-STATUS 'ZPROGRAM5'.

ENDMODULE. " STATUS_0100 OUTPUT

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

if sy-ucomm eq '&BACK' or sy-ucomm eq '&EXIT' OR sy-ucomm eq '&CANCEL'.

LEAVE PROGRAM.

ENDIF.

ENDMODULE. " USER_COMMAND_0100 INPUT

Create a screen named 100 like this

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

call SUBSCREEN sel INCLUDING sy-repid '400'.

PROCESS AFTER INPUT.

call SUBSCREEN sel.

MODULE USER_COMMAND_0100.

Create a Sub screen area named SEL in side the Layout to display the Selection screen.

In attributes add OK_CODE.

Now you can see the Grey coded option enabled.

Regards

Veera