10-08-2008 7:54 AM
Hi Experts,
am creating a function module in se37
In my source code section i have the foll code
fuction zhpayann.
START-OF-SELECTION.
GET PERNR.
PERFORM GET_DATA.
END-OF-SELECTION.
Perform Display..
endfunction.
but wen activated it gives me a error that endfunction shud b b4 start of selection event
How to go abt this.
Kindly guide me asap.
TIA,
Rukmani
10-08-2008 7:55 AM
Hi,
You cannot use the start-of-selection event in a function module only a type 1 executable program (via SE38).
Darren
10-08-2008 8:03 AM
start-of-selection. event can be used only in a report program.
it should not come in any form, FM. but it can come inside an include in the program
10-08-2008 8:04 AM
Hi Ram,
You cannot use events in function modules. these events can be used in REPORTS (Executable programs).
thanks & regards
Kishore Kumar M
10-08-2008 8:11 AM
Hi all,
Thanks for ur prompt replies.
Actually i have a report program with me.
My requirement is that a function module shud do the work of that report program.
So i included all the forms in an include of my funcn group.
The top in an include
and pasted the source code as said previously.
Any other way of how can i go abt in creating the funcn module for my report program
TIA
12-02-2008 7:29 AM