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: 

How to remove the hexadecimal error in ECC 6.0

Former Member
0 Kudos

REPORT Z_KA51151_TEST.

DATA: BEGIN OF gt_temse OCCURS 0,

line(100),

END OF gt_temse.

DATA: chr TYPE x VALUE '0A',

x_string(255) TYPE X,

last_chars(128),

blank(128) VALUE space.

LOOP AT gt_temse.

WRITE gt_temse TO x_string.

ENDLOOP.

The Error i/m getting is X_STRING must be a charectar type field (data type C,N,D or T)

my question is what is alternate to code the logic to have the same finctionality ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Avinash,

It is recommended you convert your fields in the CHAR format, also for TAB, End of line characters use the CL_ABAP_CHAR_UTILITIES.

Regards,

Atish

1 REPLY 1

Former Member
0 Kudos

Hi Avinash,

It is recommended you convert your fields in the CHAR format, also for TAB, End of line characters use the CL_ABAP_CHAR_UTILITIES.

Regards,

Atish