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
97

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
73

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
73

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
73

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
73

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
73

sorry guys,

w_wrbtr type bseg-wrbtr.

digvijay_rai
Participant
0 Kudos
73

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
74

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
73

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.