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

How to create TOP include?

Former Member
0 Likes
9,237

Hi,

How to Create TOP include?Because i want to move all data declarations into TOP include?

Thanks,

sairam

1 ACCEPTED SOLUTION
Read only

Former Member
3,514

Hi Sairam,

Includes are nothing but Type I report Program.

Steps to create :

1.Go to se38.

2.enter include name In program field.press create.

U will get a attributes window.

3.enter the title and under attributes tab in type select

<b>Include program</b>

and save it.u will reach to report editor

write all the declarations there.

Call this include into ur report prog using :

Include <Include Name>.

Reward points if helpful.

Regards,

Hemant

7 REPLIES 7
Read only

Former Member
0 Likes
3,514

Hi,

write INCLUDE ZXXX in ur report immediately after ur report statement.and double click on the name ZXXX then u can create.

reward if helpful.

rgds,

bharat.

Read only

0 Likes
3,514

Works only if the include name has 30 or less characters

Read only

0 Likes
3,514

Hi Thorsten,

this topic is 9 years old and has status answered.

I don't think it adds anything if you resurrect answered topics and add something of your own.

Kind regards, Rob dielemans

Read only

Former Member
0 Likes
3,514

Hi,

In top include you declare the global data...

For more detls check the link...

http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm

Read only

former_member196299
Active Contributor
0 Likes
3,514

Hi ,

in SE38,

Right after your report statement, type INCLUDE ZXXXXTOP and double click on it , it will ask for creation of a new object , say yes and then it will be created . next copy all the data declarations and paste it in that TOP include and activate it.

in SE80 , when you create a program, you will get a popup saying PROGRAM ZXXX, and one option will be there for creating it with TOP Include , tick mark that and save it, it will create a program with a top include .

Reward if helpful ,

Regards,

Ranjita

Read only

Former Member
3,515

Hi Sairam,

Includes are nothing but Type I report Program.

Steps to create :

1.Go to se38.

2.enter include name In program field.press create.

U will get a attributes window.

3.enter the title and under attributes tab in type select

<b>Include program</b>

and save it.u will reach to report editor

write all the declarations there.

Call this include into ur report prog using :

Include <Include Name>.

Reward points if helpful.

Regards,

Hemant

Read only

Former Member
0 Likes
3,514

Thanks for all.I assigned bonus points.

Thanks,

sairam