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

Call same smart screen for two different Programs

muhammad_sohail
Participant
0 Likes
624

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

4 REPLIES 4
Read only

peter_ruiz2
Active Contributor
0 Likes
574

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

Read only

Former Member
0 Likes
574

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

Read only

faisalatsap
Active Contributor
0 Likes
574

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

Read only

MarcinPciak
Active Contributor
0 Likes
574

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