Application Development and Automation 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: 
Read only

about function module

Former Member
0 Likes
490

hi........

i have created one user defined function module 'zfunctionmodule1' which contains the following parameters

and i'm using this module in my program.

""Local interface:

*" IMPORTING

*" VALUE(IM_NUMBER) TYPE I DEFAULT '1'

*" VALUE(IM_TABLE_NAME) TYPE SFLIGHT DEFAULT 'SFLIGHT'

*" VALUE(IM_SEPARATOR) TYPE C DEFAULT '#'

*" VALUE(IM_UNIQUE) TYPE C DEFAULT 'X'

*" EXPORTING

*" VALUE(EX_STRING) TYPE C

*" EXCEPTIONS

*" NO_DATA

*" OTHERS

when i execute this it giving me error.........

incorrect nesting:before the statement 'end-of-include', the structure introduced by FUNCTIONmust be nested by ENDFUNCTION.

why it is so??????

can anyone explain me.

thanks

4 REPLIES 4
Read only

Former Member
0 Likes
450

Hi,

This error is self explainatory .

You just double click on the error it will lead you to the part of code where you need to do correction .

I think you have not wriiten ENDFUNCTION statement.

Read only

0 Likes
450

Hi,

I think that you had misses the ENDFUNCTION. statement in the end.

Goto --> se37 --> declare the ENDFUNCTION.and the activate.

reward points.

Thanks,

Nelson

Read only

Former Member
0 Likes
450

Hi,

Pls include a statement at the end of ur Function module stating ENDFUNCTION.

This will solve it.

Nayan

Read only

Former Member
0 Likes
450

ENDFUNCTION missing