Using include with constants in ABAP OO

I have an ABAP include containing only constants. (Not my code)

I want to use these constants in the ABAP OO method. (My code)

How can I use these constants in an object-oriented ABAP environment without copying them?

The idea is to define these constants once and only once. And they are already defined in this include.

Additional question: is it possible to create a class containing the constants of the above, to include in the public section, so that I include it only once and use these constants in an object-oriented way from other classes?

+4
source share
2 answers

, include : Builder Goto → Local-Local, , INCLUDE. .

+7
  • ? .
  • ( )? ...
-2

Source: https://habr.com/ru/post/1668713/


All Articles