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

Function module

Former Member
0 Likes
541

hi all,

i m using some function modules in my report but problem is that i m confuse that what is the role of IMPORTING, EXPORTING, EXCEPTION and TABLES? can anyone please tell me with example?

Regards saurabh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
510

Hi,

Import - parameters that are used to pass data to a function module.  
Export - parameters that are used to receive data from a function module 
Changing - parameters that are used both to pass data to and receive data from a function module.  
Tables - tables that are to be passed to a function module.  
Exceptions - Errors/Exceptions raised during fucntion module calls.

Check this link for more details regarding [Function Modules|http://help.sap.com/saphelp_erp60_sp/helpdata/EN/d1/801ea7454211d189710000e8322d00/content.htm]

Regards,

Radhika.

4 REPLIES 4
Read only

Former Member
0 Likes
510

Hi,

Do a F1 help on CALL FUNCTION statement to understand the concept.

For more info go thorough the help link

[http://help.sap.com/saphelp_erp60_sp/helpdata/EN/d1/801f29454211d189710000e8322d00/frameset.htm]

Regards,

Ankur Parab

Read only

Former Member
0 Likes
511

Hi,

Import - parameters that are used to pass data to a function module.  
Export - parameters that are used to receive data from a function module 
Changing - parameters that are used both to pass data to and receive data from a function module.  
Tables - tables that are to be passed to a function module.  
Exceptions - Errors/Exceptions raised during fucntion module calls.

Check this link for more details regarding [Function Modules|http://help.sap.com/saphelp_erp60_sp/helpdata/EN/d1/801ea7454211d189710000e8322d00/content.htm]

Regards,

Radhika.

Read only

Former Member
0 Likes
510

Hi Saurabh,

Goto Se37

enter the fun module name

display

from menu

GOTO-> Documentation

Regards,

Pravin

Read only

Former Member
0 Likes
510

hi saurav..

these terms are relative in terms of FM side and Calling environment side.

see.. from calling environment (eg:report program) point of view:

export means what u pass to FM
import means what you get from FM.

but from FM point of view

import means what you get into the FM ---- = export from program point of view.
export means what you send out from FM ---- = import  from program point of view.

tables are used to pass and get tables from and to the FM.

exceptions are defined actually to help you understand why error occurred in the FM if any.or to do some steps according to the exception raised.

hope this helps

Somu