Skip to Content
0
Former Member
Jul 02, 2007 at 08:22 PM

xstring to itab

54 Views

Hi all,

i am using this code.

parameters: p_file type rlgrap-filename.

data: gv_xstr type xstring,

gv_str type string,

gv_bom(2) type x,

gv_encoding type abap_encod,

gv_endian type abap_endia,

conv_obj type ref to cl_abap_conv_in_ce,

GV_NL type c value CL_ABAP_CHAR_UTILITIES=>NEWLINE.

data: gt_text type table of char255,

gs_text type char255.

open dataset p_file for input in binary mode.

read dataset p_file into gv_xstr.

close dataset p_file.

now i want to split this gv_xstr and pass to an itab.

itab contains 20 fields and the flat file has 250 lines.

thanks

madhu