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

Regarding include in report

Former Member
0 Likes
744

Hai,

i have report program namely ZUPLOAD.

Also i have Dynpro 200 Screen created with Table control using wizard.

while creating wizard it i seperated PBO,PAI,SUB as three seperate include programs with name

ZUPLOAD_PBO,ZUPLOAD_PAI,ZUPLOAD_SUB.

Now i have one below code declared in ZUPLOAD main program.

DATA: cols LIKE LINE OF ZCKTAB-cols,

lines TYPE i.

the above code cannot be used in ZUPLOAD_SUB include.

how to make access this code to all PBO,PAI,SUB include programs..

If Module pool program i can create INCLUDE TOP program..but here how to do this..pls tell me the procedure.

ambichan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
589

Hi,

MAke sure that the <b>INCLUDE which contains the DATA declaration should be the first one</b>.

Create always the declaration include first then the other things, keep the order.

Hope this helps.

Kindly reward points and close the thread.

Please close the threads already u have opened.

4 REPLIES 4
Read only

Former Member
0 Likes
589

Hi,

Be sure that your includes are under your declaration in the main program.

Svetlin

Read only

Former Member
0 Likes
589

Hi, try this way

create a include file, E.G. ZUPLOAD_DEF.

move the 'DATA: cols LIKE LINE OF ZCKTAB-cols, ...' to ZUPLOAD_DEF.

write your ZUPLOAD as following:


report ZUPLOAD.

include ZUPLOAD_DEF.
include ZUPLOAD_PBO.
include ZUPLOAD_PAI.
include ZUPLOAD_SUB.

Hope it will be helpful

thanks

Read only

Former Member
0 Likes
589

Hi Ambi

Make sure that you have declared all 'Include' programs in your main program as pointed by Zhenqlin.

Make sure that each include program as well as main program is activated. If necessary, use the 'ACTIVATE ANYWAY' option while activating.

Regards

Ashish

Read only

Former Member
0 Likes
590

Hi,

MAke sure that the <b>INCLUDE which contains the DATA declaration should be the first one</b>.

Create always the declaration include first then the other things, keep the order.

Hope this helps.

Kindly reward points and close the thread.

Please close the threads already u have opened.