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

calling same screen in different programs?

Former Member
0 Likes
1,169

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.

5 REPLIES 5
Read only

mvoros
Active Contributor
0 Likes
784

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

Read only

Former Member
0 Likes
784

Is there any other ways?

Like I have created with screen.

how to use call screen statement - to call different program screen?

Read only

Former Member
0 Likes
784

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.

Read only

mvoros
Active Contributor
0 Likes
784

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

Read only

Former Member
0 Likes
784

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