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

what is diffrence between subroutine program and Include program

Former Member
0 Likes
1,216

Hi,

Can you let me know diffrence between subrotuines and include programs.

Thank you

Madhu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
744

<b>Type I programs - called includes</b> - are a means of dividing up program code into smaller, more manageable units. You can insert the coding of an include program at any point in another ABAP program using the INCLUDE statement. There is no technical relationship between include programs and processing blocks. Includes are more suitable for logical programming units, such as data declarations, or sets of similar processing blocks. The ABAP Workbench has a mechanism for automatically dividing up module pools and function groups into include programs.

You cannot start a type S program using a transaction code or by entering the program name. Instead, they are containers for subroutines, which you can call externally from other ABAP programs. Type S programs are known as subroutine pools. They cannot contain screens.

Also check this link which gives differences among all program types in ABAP

http://jplamontre.free.fr/SAP/ABAP%20Program%20types.htm

ashish

Message was edited by:

Ashish Gundawar

2 REPLIES 2
Read only

Former Member
0 Likes
745

<b>Type I programs - called includes</b> - are a means of dividing up program code into smaller, more manageable units. You can insert the coding of an include program at any point in another ABAP program using the INCLUDE statement. There is no technical relationship between include programs and processing blocks. Includes are more suitable for logical programming units, such as data declarations, or sets of similar processing blocks. The ABAP Workbench has a mechanism for automatically dividing up module pools and function groups into include programs.

You cannot start a type S program using a transaction code or by entering the program name. Instead, they are containers for subroutines, which you can call externally from other ABAP programs. Type S programs are known as subroutine pools. They cannot contain screens.

Also check this link which gives differences among all program types in ABAP

http://jplamontre.free.fr/SAP/ABAP%20Program%20types.htm

ashish

Message was edited by:

Ashish Gundawar

Read only

Former Member
0 Likes
744

Subroutines are created and used in the same program. But includes, you can use in any program. I mean includes are global objects but subroutines are local objects.

Hope this will help you.