Application Development 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: 

calling custom screen from Standard screen

former_member477101
Participant
0 Kudos

Hi Experts,

                i have a requirement to call custom screen from a standard screen t-code ME23N which has to be popped up when ,

                for that i designed a module pool screen , and i wrote a statment  ' call screen 100'.

                the statement is calling some other standard issue-output screen  instead of my custom screen , how to call screen for a particular program.

Thanks & Regards.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

As already written CALL SCREEN will display the screen of the current program (how could the program select the correct 0100 screen, there are many 0100 screen in a SAP system). Try to convert your module pool into a function group, and create a FM that display the screen (and you could also send/receive data with this or other FM)

Regards,

Raymond

5 REPLIES 5

Former Member
0 Kudos

Hi Prakash,

The call screen statement will look for the module program in Main program or program group of main program.. i.e. calling program in your case.

This is from help documantation.

"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."

So now try to find some exit where you can define this module pool program and call screen.

And also as you are getting some screen called, check in main program screen number 100 will be used by standard. and based on this set appropriate screen number.

Regards,

Ganesh Lathi.

anubhab
Active Participant
0 Kudos

Hi Prakash,

     Will the below option be useful for you? Please check and let me know.

          SUBMIT (2nd program name without quote) VIA SELECTION-SCREEN.

Note: Is it possible for you to make your custom module pool as normal report program?

Regards,

Anubhab

0 Kudos

Hi,

    Anubhab , Thanks for the Reply . i have called my custom screen from custom function module.

    That solved my Problem .

   Thanks & Regards,

  J.Prakash Rao

raymond_giuseppi
Active Contributor

As already written CALL SCREEN will display the screen of the current program (how could the program select the correct 0100 screen, there are many 0100 screen in a SAP system). Try to convert your module pool into a function group, and create a FM that display the screen (and you could also send/receive data with this or other FM)

Regards,

Raymond

former_member477101
Participant
0 Kudos

Hi,

    Thanks for the Reply Experts,  i have called my custom screen from custom function module which       is denoted in Z function group, That solved my Problem .

   Thanks & Regards,

  J.Prakash Rao