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

unicode error

Former Member
0 Likes
905

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
881

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

7 REPLIES 7
Read only

Former Member
0 Likes
881

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

Read only

bpawanchand
Active Contributor
0 Likes
881

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

Read only

Former Member
0 Likes
881

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

Read only

0 Likes
881

sorry guys,

w_wrbtr type bseg-wrbtr.

Read only

digvijay_rai
Participant
0 Likes
881

hi rakesh ,

i think its wrbtr not brbtr

& w_wrb1 & other variable both of the same type wrbtr .

regards

digvijay rai

Read only

Former Member
0 Likes
882

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

Read only

Former Member
0 Likes
881

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.