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

Need of Changing Parameters in Function Module

Former Member
0 Likes
7,697

Hi All,

Why we need sepearte Import and Export parameters in Function Module if the Changing Parameters

acts as both import and export parameters.

What is the use of using Changing Parametrs in Function Module.

Thanks in advance.

Sundaresan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,642

It is to protect the Source .

i.e incomming paramter not to be change... coz in changing only ref is passed to FM. so change is directly affecting the variable

Hi All,

Why we need sepearte Import and Export parameters in Function Module if the Changing Parameters

acts as both import and export parameters.

What is the use of using Changing Parametrs in Function Module.

Thanks in advance.

Sundaresan

4 REPLIES 4
Read only

Former Member
0 Likes
2,643

It is to protect the Source .

i.e incomming paramter not to be change... coz in changing only ref is passed to FM. so change is directly affecting the variable

Read only

Former Member
2,642

Hi,

EXPORT PARAMETERS: When u r passing some value to the function, and the parameter will not be changed in the function, we use export parameter. Example: u pass parameter (a : 10) to a function, even after the function has been executed, value of a will be 10 only.

IMPORT PARAMETER: When u require some value back from the function. u do not provide any initial value to the function. Example : u pass a parameter (b: <blank>) to the function, function returns the same import parameter as (b : 20).

CHANGING PARAMETER: When u pass some value to the function and that function may change that value inside function, then changing parameters are used. Example: u pass parameter ( c: 30) to the function as changing parameter and function modifies this variable and return ( c: 50).

Reward points if helpful.

Thanks & Regards

- Rishika Bawa

Read only

Former Member
0 Likes
2,642

Hi

I also read in the forums , that , we use import parameter for headers and tables parameter for line items. Is the explanation right

Your explanation has really clarified the finer points of Import /export / Changing. Then , why do we require a tables parameter if we can use changing parameter for processing some changes to data in the FM.

Read only

Former Member