on 09-19-2019 1:11 AM
read XML file from FTP using FTP_SERVER_TO_R3 getting # character in text content data
Hi.
It seems two bytes for character.
I suggest you put the content of g_t_xml_tab in an xstring field (cv_string).
After that convert this content in a string field (lv_xml_string)
Finally create your file.
Hope to help
CALL METHOD cl_abap_conv_in_ce=>create
EXPORTING
input = cv_string "(Xstring variable WITH XML)
RECEIVING
conv = lr_conv.
CALL METHOD lr_conv->read
IMPORTING
data = lv_xml_string. "(String variable WITH XML ENCODING UTF-8)
* Write new file using UTF-8 encoding
OPEN DATASET f_filen FOR OUTPUT IN TEXT MODE ENCODING UTF-8 IGNORING CONVERSION ERRORS.
CHECK sy-subrc EQ 0.
TRANSFER lv_xml_string TO f_filen.
CLOSE DATASET f_filen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.