cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer to Unix file

Former Member
0 Kudos

It gives me trash in the output file.

Table Zzz has data types, and decimals..and it gives me trash in that types.

Output file:

SNSNNEDE00 {{{{{{

Example:

DATA itab LIKE Zzz OCCURS 0 WITH HEADER LINE.

...

OPEN DATASET fich_out FOR OUTPUT IN TEXT MODE.

ENDIF.

LOOP AT itab.

TRANSFER itab TO fich_out.

ENDLOOP.

CLOSE DATASET fich_out.

How can i resolve this.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you are opening the file in text mode, your itab fields have to be character type fields. So define another itab with fields of character type with lengths defined as per your output requirements.

You have understand that if you have floating, decimal fields, currency or quantity fields in your itab, they are know to SAP only, once you try to download such records, converting them into character form needs to happen.

Did you try the binary mode with your 'open dataset' statement?

Srinivas