‎2010 Dec 13 3:24 PM
Hi all.
I have the following code with me:
data:w_s1 type c,
w_q1_act_rec1(14) type c,
W_q LIKE EKPO-MENGE.
w_s1 = '-'.
w_q = '52352.900'.
write w_q to w_q1
concatenate w_s1 w_q1 into W_Q1.
condense W_Q1.
W_Q = W_Q1.
when i execute the above code I get the following short dump:
The program attempted to interpret the value "- 52,352.900 " as a number, but
since the value contravenes the rules for correct number formats,
this was not possible.
the program is giving me a dump when I am insertinf w_Q1's value to W_Q.
As far as I know W_Q should hold -ve sign.
‎2010 Dec 13 3:32 PM
Hi rajatg,
you can achieve your desired result just with the following, you don't need the concatenation for the sign.
data: W_q LIKE EKPO-MENGE.
w_q = '52352.900'.
w_q = - w_q.
Edited by: gzervas on Dec 13, 2010 4:33 PM
‎2010 Dec 13 3:27 PM
‎2010 Dec 13 3:29 PM
this is the code that we aleady have and now we are getting the short dump in production somehow.
‎2010 Dec 13 3:32 PM
Hi rajatg,
you can achieve your desired result just with the following, you don't need the concatenation for the sign.
data: W_q LIKE EKPO-MENGE.
w_q = '52352.900'.
w_q = - w_q.
Edited by: gzervas on Dec 13, 2010 4:33 PM
‎2010 Dec 13 3:42 PM
Basically you want add a negation sign in front of quantity .
w_q1_act_rec1(14) type c,
W_q LIKE EKPO-MENGE.
There is type mismatch here.
‎2010 Dec 13 3:43 PM
Hi,
Menge does not support negative values and i think the weight can´t be negative........... right?
The data element BSTMG - Domain MENG13 - 13,3.
MENGEV supports that..
‎2010 Dec 13 3:44 PM
This is exactly the same question you asked earlier and marked as answered.
What exactly is the proble,??
Rob
‎2010 Dec 13 3:46 PM
Hi Rob,
I did that by mistake... the issue has been solved now.
Thanks for the help.