‎2009 Jul 18 1:15 PM
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.
‎2009 Jul 18 3:19 PM
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.
‎2009 Jul 18 1:27 PM
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
‎2009 Jul 18 3:19 PM
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.
‎2009 Jul 18 6:18 PM
Hi Saurabh,
Goto Se37
enter the fun module name
display
from menu
GOTO-> Documentation
Regards,
Pravin
‎2009 Jul 18 7:31 PM
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