Skip to Content
0
Former Member
May 05, 2009 at 09:29 AM

Line Feed + Carriage Return in FM READ_TEXT

646 Views

Hi,

My problem is when i read a bill item text with the function READ_TEXT it shows me some # chars that is the line breaks. i have to split the text by this chars. I'm using this code but nothing appens:

CLASS CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.

CONSTANTS: char TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF.

DATA: BEGIN OF texto3 OCCURS 0,

tdline LIKE tline-tdline,

END OF texto3.

CLEAR line.

LOOP AT texto INTO wa_texto.

CONCATENATE line wa_texto-tdline INTO line.

ENDLOOP.

CLEAR: texto3, texto3[].

SPLIT line AT char INTO TABLE texto3.

Can anyone help me?