Skip to Content
0
Former Member
May 12, 2010 at 02:32 PM

Split a CSV file an save in an internal table

1667 Views

Hii Experts,

I'm trying to read an internal table to an other internal table. My intention is to save the values row by row.

Could anyone explain me what is wrong with my code below?

SPLIT lv_string AT cl_abap_char_utilities=>CR_LF INTO TABLE lt_lines.

  LOOP AT lt_lines INTO lv_lines.
       SPLIT lv_lines at ';' into  Table lt_bp .
       MOVE-CORRESPONDING  ls_bpnr to ls_bpnrw.
      Append ls_bpnrw to lt_bpnrw

  ENDLOOP.

Best regards,

John