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

Global Variables

Former Member
0 Likes
657

HI

Can we use global data declared in the Include top, in the local perform?

I am using REUSE_*GRID_DISPLAY to display my report. to call 'user command'

dynamically I have called another PERFORM user_command(sapfm06l). which is standard. but the global values (HIDP, HIDK just like ME2N) is not holding here.

I have includeed the TOP but the scope of TOP variables will not effect at dynamic subroutine calls..

Please help me

HI

Can we use global data declared in the Include top, in the local perform?

I am using REUSE_*GRID_DISPLAY to display my report. to call 'user command'

dynamically I have called another PERFORM user_command(sapfm06l). which is standard. but the global values (HIDP, HIDK just like ME2N) is not holding here.

I have includeed the TOP but the scope of TOP variables will not effect at dynamic subroutine calls..

Please help me

3 REPLIES 3
Read only

Former Member
0 Likes
592

Hi sapian,

May be you can copy your include as z include or customize it and try.

Reward if useful!

Read only

Former Member
0 Likes
592

Hi,

You can use the global variable in the local perform. But in your case you are calling the perform from the standard program so you can't use the variable from your program in that subroutine.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
592

HI.

Create variable as globely else copy that inclue in program.

Reward all helpfull answers.

Regards.

Jay