‎2006 Nov 29 4:31 PM
hi to all,
help me in this issue
i have written a subroutine for changing decimal format of the amount as
perform
using &rf140-wrshb
chaging &l_amount
endform
iam calulating this amount in subrouine and getting the value
but this is value is recognized only particular to that text element.
liike
/e 510
when i want to place same l_amount
in
/e 520
it is not displaying l_amount
help me in this issue
thanks & regards
kiran kumar.
‎2006 Nov 29 4:34 PM
Hi Kiran,
Define a global variable and pass the changed value to it and use it anywhere u want.
Right now its local thats why .
Defining a variable
/: DEFINE &I_AMOUNT1&. like
Reward points if this Helps.
Manish
Message was edited by:
Manish Kumar
‎2006 Nov 29 4:36 PM
Hi,
Define l_amount as a global variable.
In the starting of the program u can define amount variable.
Regards,
Kumar
‎2006 Nov 29 4:37 PM
hi where should i define it as a global varaible.
should it be declared in script
like
define &l_amount&
thanks in advance
kiran kumar
Message was edited by:
kiran kumar
‎2006 Nov 29 4:38 PM
Hi ,
please check the particular text is executed before the perform statement or after the perform statement.
If the text elemet is executed before the perform statement please write the perform before it .
for checking this Use the sap script trace.
If the text element is executed after the perform statement .
check you are declaring the l_amount is in right place or not ( i.e global ( in main window )
thanks
Sekahr
Message was edited by:
Lakshmi Sekhar Reddy
‎2006 Nov 29 4:47 PM
hi how to declare globe variable in main window.
thanks in advance
kiran kumar.
‎2006 Nov 29 4:45 PM
HI Kiran,
Define a Variable in your DRIVEr program and assign the value and use it.
Hope it helps.
Manish
‎2006 Nov 29 5:20 PM
Hi Kiran,
Do one thing iam not sure with this.u have called this perform in element 510.
<b>perform
using &rf140-wrshb
chaging &l_amount
endform</b>
and also call the same perform in the element 520 also . i think this will work but as i said iam not sure with this.
Thanks
Vikranth Khimavath
Message was edited by:
Khimavath Vikranth