Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Getting junk data in the output file in UNIX server due to UNICODE error.

Hi All,

I am working on an Upgradation project from 4.7 to mySAP ERP 2005.

IN 4.7 we are using

OPEN DATASET lv_filename FOR OUTPUT IN BINARY MODE. and getting the file as required.

In ECC 6.0 for the same OPEN DATASET statement ,the output file in unix server has the junk data having the characters like #<##d9{y#+G9###T>j(##^# #K## #q### #####.

Pls help me in this issue to proceed further .



Former Member

Then it´s expected the output not to be the same.

In my understanding you have two issues here:

1. exporting data from 4.7 non-unicode

If you export Latin-1 and Chinese data out of an MDMP system using the "default" with the same target file, your chinese data is corrupted neverless, even if the file import can be done technically.

2. export data from ECC 6.0 Unicode

The data seems to be corrupt

Check Note 752835 - Usage of the file interfaces in Unicode systems

It´s no more as easy as "open dataset" and you´re done....

If you use BINARY, the data is written from the memory to the disk. If the system is a big endian system, the data is writte in big endian and vice versa.

I have one idea left, you can try to use

open dataset for output in binary mode non-unicode

This will, however, corrupt your chinese data.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question