‎2009 Jul 09 8:13 AM
Dear All,
I have a smart screen named as
Program: ZPTCL_PROJ_STATUS_PERIOD_Wise
Screen Number: 0101
I want to call this screen for two different se38 Programs with "Call Screen '0101' ".
Is it Possible?
Or how to call a screen with it's Program name and screen number.
Thanks and Regards,
Sohail
‎2009 Jul 09 8:21 AM
Hi Muhammad,
You may use subscreen for this. First, you need to create a screen for your current program then create a subscreen. Then, on the PBO of your new screen, you need to include this code.
CALL SUBSCREEN sub_area INCLUDING prog dynnr.
sub_area - the name of the subscreen control which is in the new screen you have created
prog - is the program name where the screen to display is located
dynnr - is the screen number you wish to be displayed.
Regards,
Peter
‎2009 Jul 09 8:22 AM
hi Sohail
i thinks what u have said may not be possible.u can call screens of ur main program.
create tcode for ur common program Program: ZPTCL_PROJ_STATUS_PERIOD_Wise & Screen Number: 0101
u can call this tcode from ur both reports.
Regards
Sajid
Edited by: shaik sajid on Jul 9, 2009 9:22 AM
‎2009 Jul 09 8:23 AM
Hi, Sohail
You can call Subscreen of any of your program to other program using following statement
CALL SUBSCREEN SUB_SCREEN_AREA INCLUDING 'PROGRAM_NAME' 'SCREEN_NUMBER'.
Please Reply if any confusion
Regards,
Faisal
‎2009 Jul 09 8:26 AM
Hi,
I don't know if this is feasible to call screen of different program but you can copy that screen to your program. Of course not element by element but with a simple trick:
Export
- go to source program and get to screen flow logic
- in command line (where you normally type transaction code) just type UTDL , you will be prompted to save the screen as flat file
Import
- in target program create empty screen and go to its flow logic
- now type (in same place as above) UTUL , indicate the file from which the screen is supposed to be imported
- activate all
This way you can copy screen content b/w programs even on different non-connected systems.
Regards
Marcin
@ Peter and Faisal
Guys this is only relevant for subscreens, not main screen. So if the screen type is normal it won't work
Edited by: Marcin Pciak on Jul 9, 2009 9:26 AM