‎2005 Aug 24 3:19 PM
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.
‎2005 Aug 25 4:36 AM
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.
‎2005 Aug 24 3:24 PM
Hi,
Be sure that your includes are under your declaration in the main program.
Svetlin
‎2005 Aug 24 3:29 PM
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
‎2005 Aug 24 3:33 PM
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
‎2005 Aug 25 4:36 AM
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.