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

diff b/w include and function modules

Former Member
0 Likes
723

hi gurus,

can any one explain about this thread ..

regards

prvn

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
655

Welcome to SDN.

Refer the thread -

Regards,

Amit

Reward all helpful replies and close the thread when answered.

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
656

Welcome to SDN.

Refer the thread -

Regards,

Amit

Reward all helpful replies and close the thread when answered.

Read only

paruchuri_nagesh
Active Contributor
0 Likes
655

hi

it is not possible to pass data and to get process in include

unlike includes u can pass data to function modules and u can process data

both r used to achieve modularization

Regards

Nagesh.Paruchuri

Read only

jothivenkatesh_m
Product and Topic Expert
Product and Topic Expert
0 Likes
655

Function Module:

1. Function modules must belong to a pool called a function group.

2. They possess a fixed interface for data exchange. This makes it easier for you to pass input and output parameters to and from the function module.

3. For example, you can assign default values to the input parameters. The interface also supports exception handling. This allows you to catch errors and pass them back to the calling program for handling.

4. They use their own memory area. The calling program and the function module cannot exchange data using a shared memory area - they must use the function module interface. This avoids unpleasant side effects such as accidentally overwriting data.

You can use this to actually avoid redundancy as well grouping some of the similar functions to modularize the applications.

Include:

1. Include programs are global R/3 Repository objects.

2. They are solely for modularizing source code, and have no parameter interface.

These are the ways in which the includes can be used.

Library: Include programs allow you to use the same source code in different programs. For example, this can be useful if you have lengthy data declarations that you want to use in different programs.

Order. Include programs allow you to manage complex programs in an orderly way. Function groups and module pools use include programs to store parts of the program that belong together. The ABAP Workbench supports you extensively when you create such complex programs by creating the include programs automatically and by assigning them unique names. A special include is the TOP include of a program. If you name it according to the naming convention, it is always included in program navigation and in the syntax check.

Thanks,

Venkat

Read only

Former Member
0 Likes
655

Hi,

Function modules are used to reach the functionality in reports, they can be executed directly and they are created in SE37. But include programs are mainly used for data declarations and for some top of page, end of page terms & conditions which are company specific and they are created in SE 38 giving the type as 'I'. They can't executed directly. In any report we can include both of them according to functionality.They can't executed directly.

Thanks

Sarada