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

tabstrip

Former Member
0 Likes
438

i created a tabstrip screen, on tab1 i want to hav a screen which has sm elements like text field etc. for that i created a subscreen. how will i get the elements on this subscreen.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
416

have you created only subscreen acre ot attached a subscreen with it??

if you have already attached a subscreen. then go to the layout of subscreen (some screen no) and add element there.

2 REPLIES 2
Read only

Former Member
0 Likes
417

have you created only subscreen acre ot attached a subscreen with it??

if you have already attached a subscreen. then go to the layout of subscreen (some screen no) and add element there.

Read only

0 Likes
416

To create a subscreen there are three stapes:

1. define subscreen area on the screen

2. define suitable subscreen screen

3. include subscreen ascreen to subscreen area

Ex :

REPORT demo_dynpro_subscreens.

DATA: ok_code TYPE sy-ucomm,
      save_ok TYPE sy-ucomm.

DATA: number1(4) TYPE n VALUE '0110',
      number2(4) TYPE n VALUE '0130',
      field(10) TYPE c, field1(10) TYPE c, field2(10) TYPE c.

CALL SCREEN 100.

MODULE status_100 OUTPUT.
  SET PF-STATUS 'SCREEN_100'.
ENDMODULE.

MODULE fill_0110 OUTPUT.
  field = 'Eingabe 1'(001).
ENDMODULE.

MODULE fill_0120 OUTPUT.
  field = field1.
ENDMODULE.

MODULE fill_0130 OUTPUT.
  field = 'Eingabe 2'(002).
ENDMODULE.

MODULE fill_0140 OUTPUT.
  field = field2.
ENDMODULE.

MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.

MODULE save_ok INPUT.
  save_ok = ok_code.
  CLEAR ok_code.
ENDMODULE.

MODULE user_command_0110 INPUT.
  IF save_ok = 'OK1'.
    number1 = '0120'.
    field1 = field.
    CLEAR field.
  ENDIF.
ENDMODULE.

MODULE user_command_0130 INPUT.
  IF save_ok = 'OK2'.
    number2 = '0140'.
    field2 = field.
    CLEAR field.
  ENDIF.
ENDMODULE.

MODULE user_command_100 INPUT.
  CASE save_ok.
    WHEN 'SUB1'.
      number1 = '0110'.
    WHEN 'SUB2'.
      number1 = '0120'.
      CLEAR field1.
    WHEN 'SUB3'.
      number2 = '0130'.
    WHEN 'SUB4'.
      number2 = '0140'.
      CLEAR field2.
  ENDCASE.
ENDMODULE.

<b>

screen 100:</b>

process before output.
  module status_100.
  call subscreen: area1 including sy-repid number1,
                  area2 including sy-repid number2.

process after input.
  module cancel at exit-command.
  module save_ok.
  call subscreen: area1,
                  area2.
  module user_command_100.

here we use four subscree : 0110,0120,0130,0140.

so if u wanna add element to subscreen then open perticular subscreen layout (0110 or 0120 or 0130 or 0140) and add element there.