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: 

To make Function Module Global

former_member212005
Active Contributor
0 Kudos

Hi All,

I have created a function module in SE37. One of the fields in ATTRIBUTE tab of the function module, has the option of making the function module GLOBAL.

It is always disabled for me? Is there any processing needed to enable it ?

Can anybody tell me how to achieve this?

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos

SE37> use change mode> from the top menu EDIT> Interface> Globalise Parameter

Former Member
0 Kudos

Global interface ID

You mark this field if the interface of the function module was made known globally through Edit -> Interface -> Globalize Parameters.

In this case, all the parameters that are fully typed and are defined for value transfer are treated as if global data objects with the same name were declared in the top-include - that is, they are visible in the entire function group and keep their value when the function module is exited. When the function module is called, all the parameters of a global interface are initialized and they get their defalut value.

All the other parameters are treated as if data objects of the same name were declared in the top Include (for table parameters, these are two in each case - one for the table body, one for the header line). But they can only be used during execution of the function module. This means they are visible in the entire function group, but they can only be accessed during execution of the function module. If such a parameter is accessed outside of actual execution of the function module, you get a runtime error GETWA_NOT_ASSIGNED with the meaning "Field symbol is not yet assigned" (such parameters are implemented internally through field symbols to which a data object is assigned during execution of the function module).

In the function group, no global data objects with the same name - such as a parameter of a global interface - may be created. If several function modules of a function group have global interfaces, parameters of the same name must be defined identically.

*Note

The use of global interface parameters is obsolete and, in the new function modules, interfaces should generally not be globalized.*

Former Member
0 Kudos

*Note

The use of global interface parameters is obsolete and, in the new function modules, interfaces should generally not be globalized.*