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 declare constant across a function group?

tongping
Explorer
0 Likes
1,137

Hi,

I want to define constants for use within a whole function group. How could it be done?

Thanks,

Said

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
821

You can maintain constansts or global variable in the 'Global Data' of function group.

Please go to the function group through SE37 transaction and select display or change. in the Popup select for mainprogram in the mainprogram you can see the a include program which will be with 'Global Data'. this is the section where you can maintain the global variables.

Ex;

include lwbabaptop. " Global Data

Thanks,

Hi,

I want to define constants for use within a whole function group. How could it be done?

Thanks,

Said

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
821

Hello

Go to the TOP include of the function group and define your constants there:


CONSTANTS:
  gc_my_constant   TYPE xxx  VALUE '...'.

Regards

Uwe

Read only

Former Member
0 Likes
822

You can maintain constansts or global variable in the 'Global Data' of function group.

Please go to the function group through SE37 transaction and select display or change. in the Popup select for mainprogram in the mainprogram you can see the a include program which will be with 'Global Data'. this is the section where you can maintain the global variables.

Ex;

include lwbabaptop. " Global Data

Thanks,