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

Calling subscreen using radio button in module pool

Former Member
0 Likes
1,053

Dear all,

I m creating module pool in which on main screen there are 3 radio buttons..On selecting  each radio button the respective subscreen have to come otherwise the screen will contain only radio buttons..I grouped that 3 radio button ..here is the simple scenario..

  • Signin
  • Signup
  • Forget Id?

If i select Signin the following text n textbox have to come.

  • Signin                                                   USERNAME : ______________
  • Signup                                                  PASSWORD : ______________
  • Forget Id?

If i select Signup and Forget ID the screens signup page and password recovery page have to come respectively . i tried to call using call subscreen but its not working..

please suggest.

2 REPLIES 2
Read only

kamesh_g
Contributor
0 Likes
618

Hi .

Do you need sub screens in the same main screen or in the separate screen .

If you need 3 sub screens on the same screen .You can use Tab strips on the screens which has 3 tabs instead of 3 radio buttons .

Read only

Former Member
0 Likes
618

Hi Pooja,

We need three screens screens. Lets say

   100 - Sign in screen (with User name and password input fields)

   200 - Sign up page

   300 - Forget ID Page

In the main program.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETER : r_signin RADIOBUTTON GROUP rad1 USER-COMMAND fc,
                         r_signup   RADIOBUTTON GROUP rad1,
                         r_recvr  RADIOBUTTON GROUP rad1.
   SELECTION-SCREEN END OF BLOCK b1.

AT SELECTION-SCREEN OUTPUT.

           if r_signin = 'X'.
                  call screen 100 STARTING AT 30 10.
           elseif r_signup = 'X'.
                  call screen 200 STARTING AT 10 5.
           elseif r_recvr = 'X'.
                    call screen 300 starting at 20 10.
           endif.

Create three screens by double clicking on the screen nos.

Design corresponding layouts and the write the required code in PBO and PAI modules for each screen.

P.S - Some points to note.

1. Set attribute of password screen field to Invisible, it will display only asterisk)

2. And in the PBO of each screen.

SET PF-STATUS 'GUI'.

In the Menu painter GUI, Dont forget to add a button in the Application tool bar for eg 'OK' and the corresponding code in PAI to exit from the subscreen.

Do revert in case of any  doubts.