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

Formal parameter change - reg

Former Member
0 Likes
791

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
732

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.

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

4 REPLIES 4
Read only

Former Member
0 Likes
733

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.

Read only

0 Likes
732

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

Read only

0 Likes
732

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

Read only

Former Member
0 Likes
732

Hi

Instead of declaring the parameter in USING clause, declare it in CHANGING clause.

Hope this helps

Regards,

Jayanthi.K