2009 Jan 21 8:17 AM
Hello,
Is there any way to chnage the USING PARAMETERS in Subroutine . ?
I have tested one scenario(Enhnacement point) where USING PAREMETRS are assigned with new values. It was successfully assigned and application genertated .
In my scenraio it is giving dump . DUMP analysis says ' A new value is assigned to protected variable
which is against partly or full changes .
<<removed_by_moderator>>
Thx
Jagadeesh
Offering/Requesting points is not allowed
Edited by: Vijay Babu Dudla on Jan 21, 2009 3:20 AM
2009 Jan 21 8:29 AM
Unless until the control comes out of the subroutine, the actual parameters will not contain the value that formal parameter is holding in the subroutine.
eg: perform process using actaul_para1 actual_para2.
form process using formal_para1 type C
formal_para2 type C.
Endform.
2009 Jan 21 8:29 AM
Unless until the control comes out of the subroutine, the actual parameters will not contain the value that formal parameter is holding in the subroutine.
eg: perform process using actaul_para1 actual_para2.
form process using formal_para1 type C
formal_para2 type C.
Endform.
2009 Jan 21 8:46 AM
Thx for your answer.
In my scenario ,
form mt06e_status using i_mtcom structure mtcom
i_mtcor structure mtcor
i_mt06e structure mt06e.
ENHANCEPOINT starts
-
here i want to change the i_mt06e-mmsta value .
-
END of ENH POINT ..
In next enh point under same form I will reassign the i_mt06e-mmsta value to original .
endform
Any ideas
Thx
Jagadesh
Edited by: Jagadeshwar Gollapelly on Jan 21, 2009 9:47 AM
2009 Jan 22 9:27 AM
Declare a global variable which can hold value for i_mt06e-mmsta
Do as follows.
data: g_var type i_mt06e-mmsta . (In the global declarations)
form mt06e_status using i_mtcom structure mtcom
i_mtcor structure mtcor
i_mt06e structure mt06e.
g_var = i_mt06e-mmsta.
ENHANCEPOINT starts
-
here change the value of g_var.
-
END of ENH POINT ..
i_mt06e-mmsta = g_var
In next enh point under same form I will reassign the i_mt06e-mmsta value to original .
endform .
Because i_mt06e-mmsta is local to the form but not for the enhancement point.
Edited by: Poorna Chandrasekhar on Jan 22, 2009 2:58 PM
2009 Jan 22 10:27 AM
Hi
Instead of declaring the parameter in USING clause, declare it in CHANGING clause.
Hope this helps
Regards,
Jayanthi.K
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |