‎2008 Apr 17 1:59 AM
Hi,
Perhaps I wasnt so clear about the different between them. When should use include or FM?
If say, i have a common things, take for example check for block items, and that will be shared by 3 programs.
would you recommend me to use include file or FM?
Which has the better performance? I need to justify the reason....
can you help? Thanks
‎2008 Apr 17 3:19 AM
Hi,
INCLUDES are used to perform set of things And Function modules are used to perform the logic.
Example:
INCLUDE:
Used to define all the data declarations and to perform all the perform statements in single program (include program)
And you can use include program for set of functions also.
Function modules:
There are many standard functions are available in SAP.
Example: to display output in grid format (reuse_alv_grid_display).
To download or upload the files into SAP (GUI_UPLOAD or etc...)
Hope it will help.
Regards,
Bhanu
‎2008 Apr 17 4:02 AM
hi,
1.INCLUDE is one of the type of the reports and FM is technique of
modularization.
It is a code that cannot be run on its own. You call them from
another program using INCLUDE statements.
2.FM has Impoting, Exporting, Table, Exception as properties of
parameters , INCLUDE doesnt have.
It is a reusable procedure that can be executed from any program by calling it. any number times in the same program.
when you call FM all group its group will be downloaded into
memory.
So use INcludes for your purpose.
Pls. reward if useful...