HEX, 'WS_DOWNLOAD' and R/3 47

Question:
Hi,
I have a trouble with downloading HEX chars with FM 'WS_DOWNLOAD' in R/3 47. It occurs a short dump, because SAPLGRAP program is defined as unicode program. If I try to use the FM 'GUI_Download' the CR and LF are downloaded in the file as characters 0D0A.
Could you advise me how to solve the problem.
Thank you
Answer:
Hi,
I solved my problem.
I used 'GUI_DOWNLOAD'. There is a parameter WRITE_LF. If it is set at the end of the line is inserted CR/LF.
There is a trick: the last field of the downloaded table should be a field with 1 char.
data: begin of tab occurs 0,
        data(25) type c,
        dat type c,
      end of tab.
 tab-data = '123'.
 append tab.
CALL FUNCTION 'WS_DOWNLOAD'
  EXPORTING
    FILENAME                      = 'C:\text6.txt'
  TABLES
    data_tab                      = tab.
Answer:
Sorry for the wromg example:
data: begin of tab occurs 0,
        data(25) type c,
        dat type c,
      end of tab.
 tab-data = '123'.
 append tab.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    filename                      = 'C:\text6.txt'
    WRITE_LF                      = 'X'
  tables
    data_tab                      = tab.

More Articles:

counter for order lines and item lines?
REPORT PAINTER?
LSMW Purchasing Inforecords -No logical path specified error?
Use search-help to fill other fields automatically?
Transaction to explode the menu paths?
Extending VBAK and it's associated BAPI's?