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

INCLUDE file

Former Member
0 Likes
657

Hi Experts,

I want to write to many ABAP report programs. There will be also many default values which i want to include in many programs. So, thinking about declaring all default values at one place in one file and then that can be used in many programs. what is the best way to do that?

One option is create INCLUDE TOP file while creating first program and then that can be used in oher programs. But I dont know how to add same INCLUDE file in another programs. Please explain

Thanks

1 ACCEPTED SOLUTION
Read only

former_member216100
Participant
0 Likes
574

DATA: BEGIN OF COMMON PART c,

...

END OF COMMON PART.

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
574

But I dont know how to add same INCLUDE file in another programs.

Just place the created include in the top of the program.

include zinclude.

Read only

former_member216100
Participant
0 Likes
575

DATA: BEGIN OF COMMON PART c,

...

END OF COMMON PART.

Read only

Former Member
0 Likes
574

You could create a class via SE24 and declare your default values as public constants. Then you can refer these directly via ZCL_MYCLASS=>MYVALUE anywhere you like.