Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP 4.6c LSMW issues with UTF-8 files uploads

Former Member
0 Kudos

Hi,

I am using SAP 4.6c and SAP GUI 7.2. Currently I have a requirement to upload the material master data into SAP system using LSMW.

I faced an issue when the material description is in Chines the input file is UTF-8 format. After I read data, I display the read data I see that the value for material description is not correct.

I tried to load the same file in SAP ECC6 system, it works perfectly. Therefore, I am searching for sap notes to fix the issues but still don't find any note yet.

So I really need your help to point out what's exactly the issue is and any suggestion to fix this issues.

Thank you so much in advance.

Hung

6 REPLIES 6

JL23
Active Contributor
0 Kudos

What is your input file? is a text file on your local PC?

or is it in a directory on the application server?

How was it created?

What definition do you have in LSMW step Specify files?

Former Member
0 Kudos

Hi Jurgen,

My input is tab delimited text format(UTF - 8). It's on my local PC.

I created it manually based on the data users sent to me.

in the step "Specify files", I define as below:

- Legacy data --> On the PC (frontend)

- browse to the file on my PC

- File contents: Data for one source structure (table)

- Separator: Tabular

- Codepage: ASCII

I can load the file to ECC 6.0 without any issues. But in 4.6c I see the data is not correct when I choose display read data for Chinese character.

Thanks,

Hung

JL23
Active Contributor
0 Kudos

Is your 46c a Unicode or MDMP system?

If it is an MDMP system, then you should login with the chinese language and execute your LSMW

However, I remember cases (from log ago) where chinese characters e.g. in the incoterm 2 field caused that all content  after that field got wrongly shifted by some places.  (my legacy data was in IDOCs). I had a report provided by SAP support to correct this.

Former Member
0 Kudos

Frankly speaking, I don't know if my 4.6c is Unicode or MDMP.

However, I tried to log on the system with Chinese language and I can see the text in Chinese but it's not the character in the file plus there are some unexpected characters like dot( . ) or '#'.

I am searching for a SAP notes to fix this issue but not yet find any suitable one.

I also did debugging and see that in 4.6c the system use FM 'WS_UPLOAD' to load the file from my PC to the system while in ECC 6.0 the system use FM 'GUI_UPLOAD' to do the same thing.

If you know any solutions please keep me posted!

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Hung,

4.6c systems do not support Unicode.

Therefore I think you need to provide the Chinese data based on Non-Unicode (SAP code page 8400).

And in addition you need to logon with language Chinese for uploading the data.

Best regards,

Nils Buerckel

Former Member
0 Kudos

Hi Nils,

Yes, the root cause is that 4.6c doesn't support Unicode.

Therefore, I would suggest users to use Non-Unicode format to upload data.

Thanks,