Application Development 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: 

unicode error

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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

bpawanchand
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

sorry guys,

w_wrbtr type bseg-wrbtr.

digvijay_rai
Participant
0 Kudos

hi rakesh ,

i think its wrbtr not brbtr

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

regards

digvijay rai

Former Member
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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.