Hello,
I am trying to save the information of some invoices in a file in a unix server and wenn I copy the file with the transaction CG3Y and open it with the notepad, then I see extrange characters (new line character) at the end of each line and they are displayed one after another.
Could anybody tell me, how could I save the file in text mode, to openning it with the notepad wihout having extrange symbols (new line character)?
-
CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
EXPORTING
logical_path = 'ZINVOICE_FR'
file_name = lv_file_name
IMPORTING
file_name_with_path = lv_file
EXCEPTIONS
path_not_found = 1
missing_parameter = 2
operating_system_not_found = 3
file_system_not_found = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
OPEN DATASET lv_file FOR APPENDING IN TEXT MODE ENCODING default.
LOOP AT it_invoice_file INTO ls_invoice_file.
TRANSFER ls_invoice_file TO lv_file.
ENDLOOP.
CLOSE DATASET lv_file.