Application Development 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: 

top include

Former Member
5,304

hi,

what is the meaning of tp include.

regards,

dhiraj

1 ACCEPTED SOLUTION

Former Member
0 Kudos
1,206

Hi dhiraj

normally top include is used for declaring variable that we would like .

you 'll see dialog program in sap . all variable data will be declared in include program.

Regards

Wiboon

4 REPLIES 4

RichHeilman
Developer Advocate
Developer Advocate
1,206

A top include is nothing more that an include program which should hold all of your global declarations, such as variables, internal tables, and type statments. An include program is nothing more than a program which is designed to be included in another larger program, sort of like a modularzation techique. It could also be a mechisum for reuseability, meaning that you could include the include program in many other programs.

Regards,

RIch Heilman

Former Member
0 Kudos
1,207

Hi dhiraj

normally top include is used for declaring variable that we would like .

you 'll see dialog program in sap . all variable data will be declared in include program.

Regards

Wiboon

Former Member
1,206

Hi,

top include is usually meant for global delcarations

for eg you have written a function module

and obviously it will be in afunction group

then by default it will be creating two includes

one of it is top include

in a function group we can have many function modules

and we will use so many variables in that

and some times the same variables may be used in many function modules

in that case we used todeclare them in the top include so that all the function

modules can access it..

<b>so top include is a common space for all the related program to declare the

variables and internals tables or what ever the declarations...</b>

same as for the reports

thanks & regards,

Venkatesh