‎2007 Apr 25 6:36 AM
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.
‎2007 Apr 25 6:42 AM
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.
‎2007 Apr 25 6:42 AM
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.
‎2007 Apr 25 6:48 AM
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.