‎2008 Nov 24 2:23 PM
hi friends i having error in the following statement
zfrm = ABS( 15 * zuid * ( zhrs + 1 ) + 11 * ( zuid - zdat + zhrs ) + 19 * ( zyear - zhrs ) + ( zmin + zuid ) * 3 + ( ( zyear + zhrs * 13 + zuid + zdat * 23 ) * zuid ) + zhrs * zhrs * ( zuid - zdat ) * ( zuid - zhrs ) + ( zhrs - zdat )
23 * ( 10 - ( zuid / 10 - round( zuid / 10 ) * 10 ) ^ 2 ) * ( 25 - zhrs ) ^ 2 ).
i am getting error that
Function Module ZIS_TSW_ESRV_TOKEN_TEST
The syntax for a method specification is "objref->method" or
"class=>method" . "class=>method". "class=>method". "class=>method".
can anybody help me in this
thanks in advance
with regards
s.janagar
‎2008 Nov 24 2:34 PM
Hello,
Try to break the formula you want to use into small. Might be that can help you resolving the issue.
Thanks,
Jayant.
‎2008 Nov 24 2:34 PM
Hello,
Try to break the formula you want to use into small. Might be that can help you resolving the issue.
Thanks,
Jayant.
‎2008 Nov 24 3:59 PM
Hi Janagar
Break your formula in small peices:
like
A = B + C + D.
and then you can calculate the values seprately for B,C,D.
Regards
Neha
‎2008 Nov 25 8:14 AM
‎2008 Nov 25 9:29 AM
Hi Janagar...
You cannot use Keyword 'ROUND' during calculations as you have used.
It can be used with WRITE statement.
ex:
WRITE: <Variable> ROUND 0 DECIMALS 0.
Remove the ROUND and try the code as shown...
zfrm = ABS( 15 * zuid * ( zhrs + 1 ) + 11 * ( zuid - zdat + zhrs ) + 19 * ( zyear - zhrs ) + ( zmin + zuid ) * 3 +
( ( zyear + zhrs * 13 + zuid + zdat * 23 ) * zuid ) + zhrs * zhrs * ( zuid - zdat ) * ( zuid - zhrs ) + ( zhrs - zdat )
23 * ( 10 - ( zuid / 10 - ( zuid / 10 ) * 10 ) ** 2 ) * ( 25 - zhrs ) ** 2 ).
WRITE: zfrm ROUND 0 DECIMALS 0.
Regards
Siva