‎2009 Feb 25 1:37 AM
Hi All,
I have to call same custom screen in different programs.
So what is the best way to do this? I dont want to create the same screen in every program, insted I want to create 1 screen and call the same one in every program.
Any ideas?
Thanks.
‎2009 Feb 25 1:42 AM
Hi,
create a function module which will display this screen. Hence you will have this screen only in function group and you will be able to display it from wherever you want.
Cheers
‎2009 Feb 25 2:22 AM
Is there any other ways?
Like I have created with screen.
how to use call screen statement - to call different program screen?
‎2009 Feb 25 2:54 AM
You only can call screen with the relevant main program.
It's mean from program A you can't call screen in program B.
Martin's solution should be the best solution for you.
‎2009 Feb 25 3:14 AM
Hi,
you are right. It's not possible. I just wan to add quote from ABAP documentation about statement CALL SCREEN.
The statement CALL SCREEN accesses the dynpros of the relevant main program of the current program group and these use the global data and dialog modules of the main program. Except when calling a dynpro in an externally called subroutine, the main program usually is the current program. If the specified dynpro does not exist in the main program of the program group, an untreatable exception occurs.
Cheers
‎2009 Feb 25 3:22 AM
Hi,
As said above its not possible to call a screen in different programs directly,
but if you write call screen in the function module and call the function module in you program will serve the purpose.
Regards,
Siddarth