on 02-02-2005 5:30 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.