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

how to process this formula

Former Member
0 Likes
1,793

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,555

Hello,

Try to break the formula you want to use into small. Might be that can help you resolving the issue.

Thanks,

Jayant.

4 REPLIES 4
Read only

Former Member
0 Likes
1,556

Hello,

Try to break the formula you want to use into small. Might be that can help you resolving the issue.

Thanks,

Jayant.

Read only

Former Member
0 Likes
1,555

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

Read only

Former Member
0 Likes
1,555

not yet answered

Read only

Former Member
0 Likes
1,555

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