Application Development 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: 

Global vairable in Function module

Former Member
0 Kudos

Hello Friends,

How to declare a global variable in function module, other than declaring in Function group/data section of function module.

Regards

Elini.P

2 REPLIES 2

Former Member
0 Kudos

Hello Elini,

The global data for a Function Group will generally be defined in the TOP Include of the Fucntion Group.

Is there any specific reason why you want to declare it somewhere else?

Regards,

Anand Mandalika.

0 Kudos

Hi Elini,

You can declare the global data after the ENDFUNCTION statement in your function module if you wish, or you can include your own include in the TOP include.

Actually you can declare global data just about anywhere in your function group as long as its not in between statments like FORM ENDFORM or FUNCTION ENDFUNCTION.

I agree with Anand, though, why?

Cheers,

Brad