Skip to Content

Error in displaying pop up window through implicit enhancement

Hello all,

i have a requirement where i need to show vendor details(like vendor no, name PAN no etc..) in pop window while creating contract ME31K..

for this i have written an implicit enhancement in include :

MM06EF0E_EKKO-EKORG..

i tried to create a modal dialog box by calling call screen

s1.jpg

how ever when i tried to create the modal dialog box by double clicking the screen number

system is asking for access key..

my question is with out using access key can i show a pop window with some text through implicit enhancement..

please suggest a suitable solution.

thanks in advance..

s1.jpg (111.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Have you created the screen already?

    It doesn't look like it. So if you double click on the screen number, it's trying to create a screen in the SAP program - that requires a key. So instead create a function module that contains your screen. Send it all the information needed.

  • Hi Michelle crapo,

    thanks for the info , i will re write my code..

  • Hi Michelle crapo,

    since i required two pop ups based on the condition of the first pop up,

    for first pop up i have used custom FM as said by you and called screen inside the Fm

    thanks for your valuable suggestions..

  • Get RSS Feed

4 Answers

  • Best Answer
    Feb 01 at 01:40 PM

    Hi VINAY REDDY,

    "i have a requirement where i need to show vendor details(like vendor no, name PAN no etc..) in pop window while creating contract ME31K..

    Use POPUP function modules instead of creating a new screen in the standard program.

    "my question is with out using access key can i show a pop window with some text through implicit enhancement..

    The access key window raised due to trying to edit/modify the 0002 screen.

    For simple scenario, check and use the following POPUP function modules inside the Implicit enhancement. If complex screen required, create screen inside custom Function module(new) and call FM inside Implicit enhancement.

    https://wiki.scn.sap.com/wiki/display/ABAP/Different+Pop_Ups+in+ABAP

    Regards

    Rajkumar Narasimman

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02 at 03:22 AM

    Hi Vinay,

    Like mentioned by Rajkumar, if you need to show a screen in ME31K, My suggestion is:

    You can create a custom Function Module and inside your the FM, create a screen with your fields(like vendor no, name PAN no etc..), implement you logic and give the functionality required. After that, use the custom FM inside your enhancement implementation.

    Best Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 02 at 10:24 AM

    Hi Kiran,

    "Does that mean we can't call a Screen directly in an ENH ?

    Since the requirement is to call the screen inside Enhancement, gave suggestion to call FM inside Enhancement, that doesn't mean that we do have some restriction in Enhancement.

    We have some other option to call the screen from the Enhancement(First program), the frequent way which we use that only is suggested.

    I try to list out few options which we try usually while calling screen and the issue which will arise, in case if I missed something I welcome everyone to add the other options too :)

    Option1:

    • Calling Screen directly from the Program, For Instance: CALL Screen statement. If the screen is already available in the same program, there won't be any issues. But here, in this case, we need the custom screen, to create a custom screen inside the standard program, a key is required in order to do that. Not suggestable.

    Option 2:

    • Create Custom screen(9001) inside Custom Program. We can try this option inside our enhancement and call screen statement all are written inside the custom program, but how we are going to call the screen.
    1. Using Perform subroutine(custom_program_name) statement, if we try to call the custom screen using perform statement, dump will raise like 'DYNPRO_NOT_FOUND'. Even though the screen is available in the custom program, the system will check the screen availability in the Main program(in our case Standard Program).
    2. Using Submit report statement, this will work to show the screen, but we need to display some values on the screen, to pass the value to the custom program, again we do have options like Selection screen, SAP memory, ABAP Memory, & fetch values using Field-Symbol etc.,
    3. Using CALL Transaction statement, this will also work, but we need to consider the above statement scenarios and transaction we need to create. Not suggestable.

    Option 3:

    • Using Function module, we can create custom screen and pass the value easily using Import and Export parameters.

    Option 4:

    • Using Class, we can't create custom screen in global class, but the local class will support.

    Regards

    Rajkumar Narasimman

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 05 at 11:17 AM

    Hi Rajkumar Narasimman,

    since i required two pop ups based on the condition of the first pop up,

    for first pop up i have used custom FM called screen inside the Fm,

    for second pop up i have used CALL FUNCTION 'POPUP_TO_DECIDE_WITH_MESSAGE'

    thanks for your valuable suggestions..

    Add comment
    10|10000 characters needed characters exceeded