‎2008 Feb 16 12:36 PM
‎2008 Feb 16 12:39 PM
if in the subroutine if you want to change any value...pass as changing parameter.
if you just want to use the variable pass as using parameter..
perform using lv_using changing lv_change.
form using p_lv_using changing p_lv_change.
p_lv_change = p_lv_change * 2.
p_lv_using = p_lv_using * 2. " <<< not possible as its using parameter.
‎2008 Feb 16 12:48 PM
If u modify the parameter in subroutine which is passed to ur subroutine as using and Once u come out of the subroutine the variable value will be same as what u had before calling the subroutine.
But if u use changing ur variable will be changed to the new value when u come out of the subroutine.
Rgds
sathar
‎2008 Feb 16 1:05 PM
Hi,
Using is used in subroutines when u just pass the value of a variable and u never change that value in the so called form u r just supposed to use it.
for example
form <name> using w_no type i.
*local variables declaration.
data:
lw_data type i.
lw_data = w_no + 2.
endform.
see here u sed the value of w_no but u have not changed it..
form <name> changing w_no type i.
w_no = w_no + 2.
endform.
see here u changed the value of w_no so here u have to use changing
i hope i am clear to u..
reward if helpful..