Application Development 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: 

call subscreen

Former Member
0 Kudos
199

Hi Experts,

I have 3 module pool screen. First is 1000 a normal screen . In this screen i have created MENUBAR. In menubar 3 elements i prescribed. These r also a normal screen. When i clicked on first element(100 screen) the normal screen opened. In this screen i create a button. When i clicked on button the new

subscreen should be open. For this i define subarea SUB in 500 screen. It's attribute is subscreen.

and design screen 200 attribut is also subscreen.

I need when i clicked on button(100) screen the subscreen should be open(200). Plz help me what should i do? Plz tell me all the additional coding for that.

Thanks in advance.

Regards,

Swapnika

6 REPLIES 6

Former Member
0 Kudos
155

Hi,

Check the Demo program DEMO_DYNPRO_SUBSCREENS

Former Member
0 Kudos
155

Hi Swapnika Panse,

The following link has the required information and sample code for the particular question on subscreens.

http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbabfe35c111d1829f0000e829fbfe/content.htm

Thanks,

Neelima.

Former Member
0 Kudos
155

Hi,


PBO EVENT. 
call subscreen: subscreen1 including sy-repid number1,
                  subscreen2 including sy-repid number2.
PAI EVENT.
module user_command_100 input.
  case save_ok.
    when 'PUSHBUTTON1'.
      number1 = '0110'.
    when 'PUSHBUTTON2'.
      number1 = '0120'.
      clear field1.
  endcase.

Regards,

Gurpreet

Former Member
0 Kudos
155

Hi,

Your question is not at all clear.....

kamesh_g
Contributor
0 Kudos
155

in PBO of screen after whihc you want sub screen .

Case sy-ucomm .

when 'your push button fcode'.'

call screen (your screen number ).

endcase.

Former Member
0 Kudos
155

U have 3 module pool screen.

First is 1000 a normal screen .

When i clicked on first element(100 screen) the normal screen opened. In this screen i create a button.

When i clicked on button the new so u created Function code 'NEW' for that button

In screen 100 Under PAI module u cal like this..

MODULE user_command_0100 INPUT.

IF save_ok = 'NEW'.

number1 = '0500'.-----> subscreen number

ENDIF.