2008 Apr 30 6:37 AM
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
2008 Apr 30 6:45 AM
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
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
2008 Apr 30 6:45 AM
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
2008 Apr 30 7:05 AM
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
2008 Jul 01 2:43 PM
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.
2008 Jul 01 2:51 PM
Hi,
chk this:
http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm
Thanks,
Keerthi.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |