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

Syntax error in Unicode environment

Former Member
0 Likes
285

Hi all,

I have below piece of code in 1 program ...

do.

replace ',' with space into w_mbew.

if sy-subrc > 0.

exit.

endif.

enddo.

It works fine when unicode attribute set. But the moment i set the unicode attribute and activate the program, i get a syntax error which reads as below -

"W_MBEW" must be a character-type data object (data type C,N,D,T or String)"

The work area W_MBEW is of type MBEW.

Can anyone guide me to fix this error.

Will definitely reward points.

Amogh

1 REPLY 1
Read only

Former Member
0 Likes
258

Hello,

It seems like you're trying to replace a character in any field of W_MBEW. Try to make the replacement in a single field.