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

Runtime Error UC_OBJECTS_NOT_CHARLIKE

Former Member
0 Likes
2,589

Hello,

I'm getting ABAP Dump

UC_OBJECTS_NOT_CHARLIKE

TRANSLATE <fs_fldval> USING ', '.

Declaration:

FIELD-SYMBOLS: <fs_fldval>.

Error analysis

Only character-type data objects are supported at the argument

position "<FS_FLDVAL>" for the statement

  "TRANSLATE".

In this case, the operand "<FS_FLDVAL>" has the non-character-type "P". The

current program is flagged as a Unicode program. In the Unicode context,

type X fields are seen as non-character-type, as are structures that

contain non-character-type components.

I searched in the Forum, but didn't find any relevant thread for TRANSLATE statement error.

Please advise.

Thanks & Regards,
Sowmya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,157

I used TYPE string.

It worked.

Thanks all..

-Sowmya

3 REPLIES 3
Read only

former_member209120
Active Contributor
0 Likes
1,157

Hi Sowmya Sreeram

If You try like this you will get dump

FIELD-SYMBOLS: <fs_fldval> TYPE ANY.

DATA : var TYPE p.

var = '88888'.

ASSIGN var TO <fs_fldval>.

TRANSLATE <fs_fldval> USING ','.

WRITE : / <fs_fldval>.

Try like this

FIELD-SYMBOLS: <fs_fldval> TYPE ANY.

DATA : var TYPE string.

var = '88888'.

ASSIGN var TO <fs_fldval>.

TRANSLATE <fs_fldval> USING ','.

WRITE : / <fs_fldval>.


Read only

Former Member
0 Likes
1,157

Hi Sowmya ,

Please check the below link.

http://scn.sap.com/thread/3238627

With Regards,

Sudhir S

Read only

Former Member
0 Likes
1,158

I used TYPE string.

It worked.

Thanks all..

-Sowmya