10-08-2008 12:11 PM
Hi All,
I have requirement to use same screen in three different Dialog Program. Can we create a screen and
call it from three different Dialog Program. Can anyone please suggest me some way for this.
Thanks and Regards,
Praveen.
10-08-2008 12:17 PM
Hi Praveen,
I don't know how to use only one screen, but I know another approach.
1) create desired screen in one of the dialog program
2) when in edit mode of screen type UTDL in the box where you normally call t-code. this will export screen to a file
3) then simply create an empty screen on each of rest programs and (again in screen edit mode) import it back using UTUL statement.
Though kind of workaround, it will work:)
Regards
Marcin
10-08-2008 12:43 PM
First thing that springs to mind is: create that screen as a subscreen. And in the 3 separate programs you could call that subscreen.
10-08-2008 12:54 PM
HI,
Ya surely we will create a subcreen. But the problem is to call that from other program and data transfer.
I am not getting any way out of this. Please give your input.
Thanks.
10-08-2008 1:02 PM
Indeed, calling a subscreen 100 from program A, B and C is not a problem, the data transfer is.
A possible solution is to create a FORM and passing the data back and forth.
Assume program Z with subscreen 100. Now you make a FORM routine in program Z like:
FORM GET_SUBSCREEN_DATA USING ...
CHANGING P_SUBSCREEN_VALUES.
* Put all accumulated SUBSCREEN values into the P_SUBSCREEN_VALUES
ENDFORM.
From program A, B and C you should be able to do:
PERFORM GET_SUBSCREEN_DATA
IN PROGRAM Z
USING...
CHANGING WA_SUBSCREEN_VALUES.
Mind you: you still need to call the subscreen 100 in program A, B and C
Edited by: Maen Anachronos on Oct 8, 2008 2:06 PM
10-08-2008 1:07 PM
Hi,
My scenario is that ' I have a Program P1 and and Program P2 with screen 100 '.
Now I have to call screen 100 of P2 from Program P1. what will be the way for this.
Thanks.
Praveen
10-08-2008 1:11 PM
You can only call screen 100 in program P1 if it's a subscreen. So P1 will have a screen to call subscreen 100 and P2 will have a screen to call subscreen 100.
P1: screen 200 calling 100 (from P2)
P2: screen 200 calling 100
In P2 you create a FORM like i suggested.
In P1 you will call that FORM after the PAI processing of subscreen 100.
Edited by: Maen Anachronos on Oct 8, 2008 2:14 PM - PAI instead of PBO
10-08-2008 12:52 PM
hi,
use function group and function module. each FM is a program and all screens are common for all FM.Most of the SAP programs has created by using function group concepts