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

Unicode Type Conversion Error

Former Member
0 Likes
484

Hi Friend,

I am working in UNICODE project,i need one help,

I have one error .

Actually, im using one structure(Z0028) and passing values to internal table.

At that time i shows one error.

Actually,this error is due to type conversion problem.

In that structure,i ve one packed datatype ,so, if i select

unicode check it shows error.

I will sent example prg and error also.

Please give some solution to slove.

REPORT YPRG1 .

TABLES: Z0028.

DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .

SELECT * FROM Z0028 INTO TABLE I_Z0028 .

IF SY-SUBRC <> 0 .

WRITE:/ ' NO DATA'.

ENDIF.

LOOP AT I_Z0028.

WRITE:/ I_Z0028.

ENDLOOP.

Regards,

Kalidas.T

2 REPLIES 2
Read only

former_member386202
Active Contributor
0 Likes
460

Hi,

Display fields

do like this..

REPORT YPRG1 .

TABLES: Z0028.

DATA:I_Z0028 TYPE Z0028 OCCURS 0 WITH HEADER LINE .

SELECT * FROM Z0028 INTO TABLE I_Z0028 .

IF SY-SUBRC 0 .

WRITE:/ ' NO DATA'.

ENDIF.

LOOP AT I_Z0028.

WRITE:/ I_Z0028-field1,

I_Z0028-field2

I_Z0028-field3.

.

.

.

.

ENDLOOP.

Regards,

Prashant

Read only

Former Member
0 Likes
460

Hi Prashant,

Actually,i did like u said already,

But, i need to convert that packed datatype into char,

what to do for that.

if i give UNICODE check,then only it showing error.

Regards,

Kalidas.T