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: 

START-OF-SELECTION not triggered

Former Member
0 Kudos

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

13 REPLIES 13

SuhaSaha
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Hi Suhas,

They are defined globally in the module pool.

The transaction is a dialog transaction that calls screen 0100 of the module pool.

Regards,

Charles

0 Kudos

Hello Charles,

The SELECTION-SCREEN elements(PARAMETERS, SELECT-OPTIONS etc.) are available as global variables in the module pool.

You can access them immediately after the call to the SELECTION-SCREEN is made.

BR,

Suhas

Former Member
0 Kudos

Suhas,

The problem is that it leave the program after F8.

Former Member
0 Kudos

Hi

May be no Function defined for f8 in your program and if you are pressing f8 to execute it ....then this function is defind only for executable program.

for module pool program you must have to create tcode to execute it.

Regards

Ajit

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

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

Then Only It will Triggered.

Regards

Ajit

0 Kudos

Hi Ajit,

Sorry, but I didn't understood what you said.

It's a module pool, not an executable program. The screen 0100 is called by dialog transaction.

Regards,

Charles

0 Kudos

> It's a module pool, not an executable program. The screen 0100 is called by dialog transaction.

So if i understand correctly you've a module-pool where you've defined a selection-screen & you want to call the selection-screen via the dialog transaction. Correct?

BR,

Suhas

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

HI

I had the same problem, the selution was simple:

when creating the transaction (in se80: right click->create->transaction) you get this popup:

You need to select second option (Program and selection screen).

Ithink the diffarence is that the first kind of transaction looks for screen proccess and can't find it because you are using a selection screen.

The second kind looks for events start/end-of-selection to proccess.

Shai

0 Kudos

Shai Lapidot, check the date of the original post (Oct 10, 2011). Last update before your was Oct 11, 2011.