How to Create a Global function Module

Question: Hi,

Does anyone know how to create a GLOBAL Function Module? i created a Function Module but it is always a Local Interface. Am i missing declarations or anything? The global field screen in the Attributes tab should be marked but i can't make it since the field is uneditable.

Thank you,
maricel


Answer:
Go into SE37, enter function module name, click change.
Click Edit---->Interface----->Globalize Parameters.

All this really does is make your parameters visiable to form routines and includes.

Regards,
R Heilman

Answer:
R,

Thank you so much!! it works now!

Thanks,
maricel

Answer:
However....

You shouldn't access your global parameters directly as this is a bad idea. In fact global parameters are a bad idea full stop. I would suggest encapsulating them in a function module rather than saying 'MOVE G_something To w_Somewhere_else'.
_________________
Regards

R


Abap KC
SFMDR
Copyright ?2007 - 2008 www.jt77.com