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: 

Function Module problem

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Hi,

You cannot use the start-of-selection event in a function module only a type 1 executable program (via SE38).

Darren

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Ram,

You cannot use events in function modules. these events can be used in REPORTS (Executable programs).

thanks & regards

Kishore Kumar M

Former Member
0 Kudos

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

Former Member
0 Kudos

ok