Skip to Content
0
Feb 14, 2006 at 06:09 AM

Computation dilemma

18 Views

Hello guys,

I am currently modifying a report where in I must replace all hardcoded computations with the values from a certain table. the fields which I will be getting values from is EWT and EWT2 from the ZTF0158 table. The value of EWT and EWT2 is 1.1 and 11 respectively but it can be changed anytime by the user. So in the program, instead of

lv_am1 = ( t_upload_ii-amount * lv_glob ) * 1.1

I would do instead:

lv_am1 = ( t_upload_ii-amount * lv_glob ) * v_tm_interco_ewt

***v_tm_interco_ewt gets its value from the ZTF0158 table.

But my problem is this, how can I change hard coded computations like the value .1 since the value in EWT is 1.1.So instead of .1 I would put in the variable v_tm_interco_ewt but it has a value of 1.1. I have posted below the code.

lv_ovat = ( t_upload_ii-amount - lv_ob ) * '.1'.

Help would greatly be appreciated.Thanks guys!