‎2007 Sep 20 1:33 AM
Hi,
I have 3 normal screens and I need call a subscreen in all the 3 normal screens. Can you please suggest me how to do this?
Appreciate Your Help.
Thanks,
Kannan.
‎2007 Sep 20 4:08 AM
Hello Kannan,
we do it using a call subscreen ......
in the 'normal' screens first of all we define a subscreen area
then we create another screen whose attributes tab will be changed to 'Subscreen' instead of 'normal screen' in the radio button ...then we define the fields and data structures required in this screen
The idea is to call this 'subscreen' into the screen area of a 'normal' screen
then use the code in PBO of the normal screen
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1,
where area1 is the name of the subscreen area defined in 'normal screen'
sy-repid => current report name
Number1 => screen number of the 'subscreen' we created
the logic is like we are calling into the subscreen area for the report name the 'subscreen number' and hence it's attributes
Please check the program
DEMO_DYNPRO_SUBSCREENS in se38 for more clarity
in your case since we need to call the single subscreen in 3 different screens...we need to create 3 subscreen areas..in each of the normal screen eg: area1,area2 and area3 and call the 'subscreen' into this area at the PBO of the respective screens using the statement.
PBO of normal screen1
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1.
PBO of normal screen2
CALL SUBSCREEN: AREA2 INCLUDING SY-REPID NUMBER1.
PBO of normal screen3
CALL SUBSCREEN: AREA3 INCLUDING SY-REPID NUMBER1.
where number1 is the screen number of the 'subscreen'
Pls check and revert
Regards
Byju
‎2007 Sep 20 4:08 AM
Hello Kannan,
we do it using a call subscreen ......
in the 'normal' screens first of all we define a subscreen area
then we create another screen whose attributes tab will be changed to 'Subscreen' instead of 'normal screen' in the radio button ...then we define the fields and data structures required in this screen
The idea is to call this 'subscreen' into the screen area of a 'normal' screen
then use the code in PBO of the normal screen
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1,
where area1 is the name of the subscreen area defined in 'normal screen'
sy-repid => current report name
Number1 => screen number of the 'subscreen' we created
the logic is like we are calling into the subscreen area for the report name the 'subscreen number' and hence it's attributes
Please check the program
DEMO_DYNPRO_SUBSCREENS in se38 for more clarity
in your case since we need to call the single subscreen in 3 different screens...we need to create 3 subscreen areas..in each of the normal screen eg: area1,area2 and area3 and call the 'subscreen' into this area at the PBO of the respective screens using the statement.
PBO of normal screen1
CALL SUBSCREEN: AREA1 INCLUDING SY-REPID NUMBER1.
PBO of normal screen2
CALL SUBSCREEN: AREA2 INCLUDING SY-REPID NUMBER1.
PBO of normal screen3
CALL SUBSCREEN: AREA3 INCLUDING SY-REPID NUMBER1.
where number1 is the screen number of the 'subscreen'
Pls check and revert
Regards
Byju
‎2007 Sep 20 5:56 AM
hi,
In the screen take the subscreen area,
And do the coding into its PBO and PAI for calling screen into this subscreen area.
like
PROCESS BEFORE OUTPUT.
MODULE status_1000.
CALL SUBSCREEN sub_1000 INCLUDING sy-repid sc_no.
PROCESS AFTER INPUT.
MODULE user_command_1000.
CALL SUBSCREEN sub_1000.
here sy-repid for prog name
and sc_no is for the screen number.
sub_1000 is the name of subscreen area which is on the screen.