Skip to Content
avatar image
Former Member

START-OF-SELECTION not triggered

Hi all,

I think I am missing something. But it's late here and I'm not getting to the point.

I have a SELECTION-SCREEN declared in a Module Pool program:

SELECTION-SCREEN BEGIN OF SCREEN 0100.

  SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

    PARAMETERS:
      p_bukrs TYPE bkpf-bukrs OBLIGATORY,
      p_gjahr TYPE bkpf-gjahr OBLIGATORY.

  SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 0100.

I've also declared the event START-OF-SELECTION.

START-OF-SELECTION.
  PERFORM zroutine USING p_bukrs p_gjahr.

The selection screen is called by a transaction. It shows up, I fill the values and then execute (F8). The program "leave screen" (back to SAP Easy Access).

Per my investigations the START-OF-SELECTION is not triggered. How do I process the execution (F8) of this selection screen? What am I missing?

Thank you all in advance!

Kind regards,

Charles

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Oct 11, 2011 at 02:42 AM

    Hello Charles,

    You've guessed it right, START-OF-SELECTION event is triggered for "executable" programs(viz., Reports) & not for Module Pools.

    Where have you defined the SELECTION-SCREEN 0100? Where is the START-OF-SELECTION event defined?

    The selection screen is called by a transaction.

    And i'm not clear how this SELECTION-SCREEN is triggered? Is this transaction linked to the module pool or to the selection-screen, please clarify.

    BR,

    Suhas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Ajit,

      The F8 function is defined (it's a generated screen). The question is that I don't control the PAI of a generated screen.

      And as I said, after F8 it does not back to my program. It just leave transaction.

      Regards,

      Charles

  • avatar image
    Former Member
    Oct 11, 2011 at 03:26 AM

    Hi

    After START OF SELECTION you have to call selection-screen 0100.

    Then Only It will Triggered.

    Regards

    Ajit

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Suhas Saha

      Hi Suhas,

      Yeah! That's right.

      When I run the transaction the screen is called. I fill the values and execute (F8). It leave the transaction.

      Regards,

      Charles

  • avatar image
    Former Member
    Oct 11, 2011 at 04:17 AM

    I'll create my SELECTION-SCREENS "AS SUBSCREEN" and create a normal screen to wrap them.

    That way I can solve my problem for now.

    Thank you all!

    Best regards,

    Charles

    Add comment
    10|10000 characters needed characters exceeded