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

globale interface in module function

adil
Participant
0 Likes
772

hi

please ,

I like to see in source code before importing parametrs the sentance " globale interface" in source code of Module function , instead of 'local interface'.

have you ever seen that?

like this.

FUNCTION Z_SPLIT_LONG_TEXT.

*"----


***""Globale interface:***

*" IMPORTING

*" VALUE(LIMIET) LIKE ZSPLIT-LIMIET

*" TABLES

*" TE_SPLITSEN STRUCTURE TLINE

*" GESPLITST STRUCTURE ZSPLIT

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
721

Yes, by default, when creating a function module, the parameters are local, but you can change them to global, which means that you have access to them in called FORMS routines and such. To change to global parameters.....

Choose Edit -> Interface -> Globalize Parameters.

Regards,

Rich Heilman

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
722

Yes, by default, when creating a function module, the parameters are local, but you can change them to global, which means that you have access to them in called FORMS routines and such. To change to global parameters.....

Choose Edit -> Interface -> Globalize Parameters.

Regards,

Rich Heilman

Read only

0 Likes
721

thinks very much

Read only

0 Likes
721

Hi Rich,

What is the difference between Local Interface and Global Interface in Function Modules.

Can u tell me in brief.

Can you tell me with any small example for the same scenario.

Thanks & Lots of Regards,

Sudheer.

Read only

0 Likes
721

Yes, of course. Most of you have used function modules, and know that alot of times, you will have separate includes for your FORM routines. Well, if the interface is local, then your FORM routines will not have access to these parameters, you would need to pass these parameters using FORM parameters. If you would set the parameters as global, then they are visible to any/all FORM routines that you declare within the function group. If you think about it, it really is not a good practice to globalize your parameters( good design calls for keeping things as local as possible ), which is why this feature has bee deemed obselete.

Regards,

Rich Heilman

Read only

0 Likes
721

Hi Rich,

I understood the concept.

Thanks for your response.

Can u please explain The Global Interface concept with an example..

Thanks & Regards,

Sudheer.....