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: char- TYPE c VALUE '-',

Former Member
0 Kudos

Hi all,

I am currently working on an upgrade project and found the following syntax error in the below statements

char- TYPE c VALUE '-',

Error: In Unicode programs, the "-" character cannot appear in names, as it does here in the name "CHAR-".

help-mandt(3) VALUE '000',

Error: In Unicode programs, the "-" character cannot appear in names, as it does here in the name "HELP-MANDT".

This error is coming in the new system which is ECC6, whereas the same statement are working fine in the old system which is R/3 4.x

Can anyone please tell me what does this mean and how to make the code Unicode compliant.

Any suggestions would be helpful.

Thanks in advance.

5 REPLIES 5

kesavadas_thekkillath
Active Contributor
0 Kudos

Solution is available in the error message itself !!!

0 Kudos

I forgot to mention that it is in some standard Include and cannot modify the variable name.

I agree that removing the '-' from the var name would solve the issue, but in case where I cannot take that approach.

0 Kudos

If that's in unmodified SAP code, I'd open a message with SAP.

0 Kudos

Oh? What is the include?

Rob

KK07
Contributor
0 Kudos

I think it is not error it is just warning! if that is the case,then just ignore!!

Cheers,

Krishna kishore