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

How to insert a standard selection screen on moduled program?

siongchao_ng
Contributor
0 Likes
437

Hi all,

I am using a module program of PBO and PAI. The selection-screen is used only for program type I and not M. However, I have a requirement of using a selection-screen on my first screen and second screen.

The flow:

Main screen (selection-screen) --> 2nd screen (selection-screen) --> 3rd screen (Display output)

So how do I insert it for such a delicate case? Thanks.

Hi all,

I am using a module program of PBO and PAI. The selection-screen is used only for program type I and not M. However, I have a requirement of using a selection-screen on my first screen and second screen.

The flow:

Main screen (selection-screen) --> 2nd screen (selection-screen) --> 3rd screen (Display output)

So how do I insert it for such a delicate case? Thanks.

2 REPLIES 2
Read only

Former Member
0 Likes
407

Hi Siaong,

Like the way you are creating your Selection screen of your 1 screen by defining fields in the PBO of that screen, In the same manner Declare fields in the PBO of 2nd screen.

Thanks

Saurabh

Read only

0 Likes
407

Hi,

I only used selction-screen before i executable report program not in module program.

What is the steps for me to use selection-screen statement in module program??

1. Create screen 100 type subscreen.

2. In the Top include program, insert the folowing code:

SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.

PARAMETERS PY_AREA TYPE PA0001-ABKRS.

SELECTION-SCREEN END OF SCREEN 100.

3. Create screen 200 type subscreen.

4. In the Top Include program, insert the folloing code:

SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.

SELECTION-SCREEN BEGIN of LINE.

SELECTION-SCREEN COMMENT 5(20) label1.

SELECTION-SCREEN PUSHBUTTON 30(10) text-a01 USER-COMMAND CLI1 VISIBLE LENGTH 10.

SELECTION-SCREEN COMMENT 45(10) v_red.

SELECTION-SCREEN PUSHBUTTON 60(15) text-a02 USER-COMMAND CLI2 VISIBLE LENGTH 10.

SELECTION-SCREEN END of LINE.

SELECTION-SCREEN SKIP.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 5(20) label2.

SELECTION-SCREEN PUSHBUTTON 30(10) text-a01 USER-COMMAND CLI3 VISIBLE LENGTH 10.

SELECTION-SCREEN COMMENT 45(10) v_amber.

SELECTION-SCREEN PUSHBUTTON 60(15) text-a02 USER-COMMAND CLI4 VISIBLE LENGTH 10.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN END OF SCREEN 200.

Is the above correct?