Skip to Content
0
Former Member
Oct 17, 2012 at 08:52 AM

csv file umlaute (cl_abap_char_utilities=>cr_lf)

405 Views

Hi guys,

im uploading a csv file.

But after the upload and splitting the file i have instead of a Ö,Ü,Ä a # in lt_data table.

Here is the part of the coding:

lo_nd_upload = wd_context->get_child_node( name = wd_this->wdctx_upload ).
lo_el_upload = lo_nd_upload->get_element( ).
lo_el_upload->get_static_attributes( IMPORTING static_attributes = ls_upload_node ).

REFRESH lt_bapiret2.

CALL FUNCTION 'LXE_COMMON_XSTRING_TO_STRING'
EXPORTING
in_xstring = ls_upload_node-content
IMPORTING
ex_string = ls_data
EXCEPTIONS
error = 1
OTHERS = 2.

IF sy-subrc <> 0.

ELSE.


SPLIT ls_data AT cl_abap_char_utilities=>cr_lf INTO TABLE lt_data.

THX