‎2007 Mar 06 8:29 AM
hii frnds
when i am executing this line the script is gvng a dump saying cannot interpret 9,999.9 as a number .
WS_DG_VALUE = WS_DG_VALUE + ( LOC_ZUNTUN * LOC_LFIMG *
WS_ZDGFACTOR ) .
loc_lfimg is hvng the number 9,999.9 .
all the variables r declared of type c .
kindly help
thanx
rohit
‎2007 Mar 06 8:35 AM
u need to declare those variables as numeric ones.
either float or packed.
‎2007 Mar 06 8:35 AM
u need to declare those variables as numeric ones.
either float or packed.
‎2007 Mar 06 8:37 AM
Hi rohit,
You cannot perform calculations on fields of type C
Declare variables of type p decimals 2 and perform the calculations
‎2007 Mar 06 8:48 AM
Hi
i think this variable LOC_ZUNTUN you have declared as char just go through the code what you have writtem according to that you haev to proceed.
madan mohan.k
‎2007 Mar 06 8:54 AM
hi
u declare the variables as
type p decimals 2
and continue the calculation.
‎2007 Mar 06 8:56 AM
Hi,
Declare all teh variables as TYPE P with decimals.
Then after doing teh calaculation teh values will be there in ws_dg_value.
Declare one more variable with max length needed of type C.
Then <b>v_var = ws_dg_value</b>.
Then<b> print v_var</b>. This will solve ur problem
Reward if thsi helps.