Skip to Content
0
Former Member
Jan 19, 2011 at 08:40 AM

CR LF at end of XML file?

214 Views

Hi there,

I having a problem with the XML file in AL11. When I view the saved file in a hex editor , I'm seeing extra bytes at the end

0D 0A

Is it possible to save the file without having these extra bytes? the XML is already in UTF-8 format

I'm basically trying to save my XML(UTF-8) for encrpytion.

  OPEN DATASET v_file_sa IN TEXT MODE FOR OUTPUT ENCODING UTF-8.
*  OPEN DATASET v_file_sa TYPE 'string' for OUTPUT in TEXT MODE ENCODING DEFAULT.

  ev_filename = v_file_sa.

  IF sy-subrc = 0.
    TRANSFER im_xmlstring TO v_file_sa.
    CLOSE DATASET v_file_sa.
  ENDIF.

Any ideas on how to remove the CR LF?