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

Doubt in MOVE statement

Former Member
0 Likes
829

what is the arrtibute value of this hex1 type .. in CL_ABAP_CHAR_UTILITIES.

hex1 TYPE x VALUE '0D',

my req is this value is in structure n

data: begin of itab_input

c1(40) type c value 'hgfsdhfjsdf'.

hex1 type x value '0D',

end of itab_input.

data: begin of itab_output

c3(42) type c

end of itab_output.

MOVE ita_input TO itab_output. .

im doing unicode conversion.. this MOVE is gving error in unicode conversion

please explain how to do it..

7 REPLIES 7
Read only

Former Member
0 Likes
802

Hi,

Use CL_ABAP_CHAR_UTILITIES=>CR_LF for this.

Reward points if useful.

Regards,

Atish

Read only

0 Likes
802

Hi Atish,

but my value is only '0D' in hex1..

then how it will take as '0D0A'. for CR_LF..?

Read only

0 Likes
802

Hi,

CR_LF is replacement for 0D only.

Regards,

Atish

Read only

0 Likes
802

Hi Atish..one more doubt same here..

types: begin of itab,

a(5) type c,

b(5) type dec,

end of itab.

types: begin of des ,

rec(10),

end of des.

gw_itab type itab.

ga_des type des.

move ga_des-red to gw_itab.

here i get error moveing this type as gw_itab contains dec fld..

if its c type it wont gv any error ..

how to solve this type error?

Read only

Former Member
0 Likes
802

declare this way

class cl_abap_char_utilities definition load.

constants: c_hex type c value cl_abap_char_utilities=>HORIZONTAL_TAB.

Read only

Former Member
Read only

Former Member
0 Likes
802

thanxs