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

include program or function module

Former Member
0 Likes
1,811

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

2 REPLIES 2
Read only

Former Member
0 Likes
813

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

Read only

Former Member
0 Likes
813

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...