10-11-2011 3:25 AM
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
10-11-2011 3: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
10-11-2011 3:49 AM
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
10-11-2011 4:24 AM
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
10-11-2011 4:27 AM
10-11-2011 4:43 AM
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
10-11-2011 4:50 AM
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
10-11-2011 4:26 AM
Hi
After START OF SELECTION you have to call selection-screen 0100.
Then Only It will Triggered.
Regards
Ajit
10-11-2011 4:33 AM
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
10-11-2011 4:38 AM
> 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
10-11-2011 5:26 AM
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
10-11-2011 5: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
08-28-2014 9:39 AM
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
08-28-2014 1:23 PM
Shai Lapidot, check the date of the original post (Oct 10, 2011). Last update before your was Oct 11, 2011.