Skip to Content
author's profile photo Former Member
Former Member

Problem: SAP isn't "seeing" ZXQSMI01 and ZXQSMO01 includes in ZXQSMZZZ.

I am coding the customer includes for the exit EXIT_SAPLIE01_007 in the enhancement IQSM0007.

EXIT_SAPLIE01_007 includes the Z include ZQSMU06.

Inside this include, I call a screen with the statement:

CALL SCREEN 9000 STARTING AT 5 5.

and the screen DOES pop-up properly after "POST" is hit during MIGO.

HOWEVER - here is the problem.

1) Inside the ZXSQMZZZ include, the system has generated the two includes:

INCLUDE ZXQSMO01.

INCLUDE ZXQSMI01.

2) Inside ZXSQMO01, the following code activates properly:

MODULE STATUS_9000 OUTPUT.

SET PF-STATUS '9000'.

ENDMODULE. " STATUS_9000 OUTPUT

3) Inside ZXSQMI01, the following code activates properly:

MODULE USER_COMMAND_9000 INPUT.

IF OK_9000 = 'OK9000'.

LEAVE TO SCREEN 0.

ENDIF.

ENDMODULE. " USER_COMMAND_9000 INPUT

4) Screen 9000 correctly activates with the flow logic:

PROCESS BEFORE OUTPUT.

MODULE STATUS_9000.

*

PROCESS AFTER INPUT.

MODULE USER_COMMAND_9000.

But DESPITE the fact that (1-4) all seem correct, the system does not recognize the PBO and does not recognize the PAI. In particular, when I turn on the debugger, I see the CALL SCREEN statement inside ZXQSMU06.

But then I see no evidence in the debugger of the system invoking the PBO STATUS_9000 inside ZXQSMO01.

And once screen 9000 displays, the PAI USER_COMMAND_9000 is not being invoked - that is - I do not see the PAI code in the debugger.

What is the problem here? Have I left something out?

If so, please tell me what, because I have followed the instructions in the documentation as best as I can.

Thanks

djh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:06 AM

    Hi,

    hmmm....Try this..Go to the SE80..Give the function group name XQSM of the user exit...

    Display the main program..Double click on the function group to display the main program SAPLXQSM..

    Activate / Generate the main program..

    And check...

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 11:52 PM

    Hi,

    Where you able to go to the screen layout by double clicking on 9000..

    I believe this is standard sap function group..I wonder how you would have created a screen...???

    Did you use an access key??

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Naren - in answer to your question - the system allows creation of the screen because you create it by coding "CALL screen 9000" inside the customer include ZXQSMU06 and then double-clicking on the "9000" - the system then prompts for creation of the screen and lets you create it.

      Again - there is no problem with the creation of the screen itself - it is displaying properly at the right time. The problem is getting the system to recognize the PBO and PAI that have been coded inside ZXQSMO01 and ZXQSMI01.

      djh

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 11:59 PM

    Hi,

    Sorry..I was mentioning double click on screen in the abap code editor and not in the debugging mode..

    Okay...You are saying the popup is showing but it not going through the PBO and PAI..Right??

    Also did you activate all the includes...

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Yes - that's exactly right - in the debugger, I can see the "call screen 9000" statement come up, but then when I step thru the "call screen" statement", the screen immediately pops right then and there - I don't see the code for the PBO that's inside ZXQSMO01 .

      So it doesn't seem like SAP is seeing the PBO inside this include, even though everything looks fine and activates fine in the editor itself.

      And of course, same problem with the PAI in ZXQSMI01 - it's as if it's not there ...

      ????

      djh

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:13 AM

    Hi,

    You are welcome..:-))

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:23 AM

    Hi Rich,

    How does it allow to create a screen using the standard sap function group ..I never tried it..that is why I asked David, did it asked for an access key..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 12:24 AM

    Rich -

    It's the "Enhancements and Modifications" course - I took it in 2004 and the copyright on the course manual is 2002, with "currency date" 2002/Q4 and the indicator: "5005 9159".

    Maybe they should update this section - or maybe they already have ????

    djh

    Add a comment
    10|10000 characters needed characters exceeded

    • Naren -

      It's because you create the screen via forward navigation off a call screen statement in the ZXQSMU06 module - because this is a Z module, it knows that any screen created via forward navigation has got to be a customer screen.

      That's why in the BC425 manual, it tells you to do everything via forward nav ...

      djh

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:36 AM

    Hi David,

    The screen is attached to the function group, not to the include..

    The function group is a standard sap one..Not a custom function group..

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 12:36 AM

    Hi Rich,

    I am also not sure..How this works..Anyways it works fine for David..

    Thanks

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

    • Naren -

      Yes I know the new custom screen winds up attached to XQSM itself, but here's what BC425 says exactly on page 5-28:

      "Use forward navigation (select an object and then double-click on it) to create your own screen and modules."

      "Screens created in this manner are automatically given the name of the function module's main program (SAPLXaaa.) "

      So I guess SAP designed it on purpose to allow customer screens inside standard FG's, jsut so long as the PBO and PAI modules are in the O01 and I01 modules called by the two include statements in ZXaaaZZZ, e.g. ZXQSMZZZ.

      djh

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.