2008 Oct 10 5:25 AM
Hi all,
I am getting unicode error.
w_wrbtr = w_wrb1 - w_sur1.
Here i am giving like this.
w_wrbtr type bseg-brbtr.
w_wrb1(20) type c,
w_sur1(20) type c
what is the problem here. Please tell me how to do that
2008 Oct 10 5:35 AM
bseg-wrbtr is currency field. So define your fields type P with decimals 2. then do your arthimetic operation.
all the best.
Regards,
Dhanunjaya Reddy
2008 Oct 10 5:28 AM
Hi,
You cant do numeric operations for variables of character type.
Declare :
data :
w_wrbtr type bseg-brbtr,
w_wrb1(20) type bseg-brbtr,
w_sur1(20) type bseg-brbtr.
Best regards,
Prashant
2008 Oct 10 5:30 AM
Hi
w_wrbtr type bseg-brbtr.
w_wrb1(20) type c,
w_sur1(20) type c
w_wrbtr = w_wrb1 - w_sur1. " This statement is Not Correct
Chekc out i think the above one statement is the one, due which it is raising the error.
Regards
Pavan
2008 Oct 10 5:31 AM
Hi Rakesh,
You defined your fields like this.
w_wrbtr type bseg-brbtr.
w_wrb1(20) type c,
w_sur1(20) type c
and you want to do this.
w_wrbtr = w_wrb1 - w_sur1.
how it possible??
both fields are type c, and you want to perform an arthimetic operation. this is not possible rakesh.
here bseg-brbtr field is in quantity i think.
correct your code.
Regardsh,
Dhanunjaya Reddy
2008 Oct 10 5:33 AM
2008 Oct 10 5:34 AM
hi rakesh ,
i think its wrbtr not brbtr
& w_wrb1 & other variable both of the same type wrbtr .
regards
digvijay rai
2008 Oct 10 5:35 AM
bseg-wrbtr is currency field. So define your fields type P with decimals 2. then do your arthimetic operation.
all the best.
Regards,
Dhanunjaya Reddy
2008 Oct 10 5:39 AM
now check this
data: w_wrbtr type bseg-brbtr.
w_wrb1(20) type bseg-brbtr, "should not be type c
w_sur1(20) type bseg-brbtr. "same case here..
w_wrbtr = w_wrb1 - w_sur1.