Application Development and Automation 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: 
Read only

IDOCs from Unicode system contain garbage characters

Former Member
0 Likes
1,146

Hi,

I am on SAP 4.7 unicode.

I have some chinese characters in my vendor data.

These chinese characters appear as dots in the IDOCS.

I have already checked the IDOC port as unicode .

Can anyone tell me what needs to be done ?

Thanks.

Hi,

I am on SAP 4.7 unicode.

I have some chinese characters in my vendor data.

These chinese characters appear as dots in the IDOCS.

I have already checked the IDOC port as unicode .

Can anyone tell me what needs to be done ?

Thanks.

6 REPLIES 6
Read only

Former Member
0 Likes
861

Hi Yupinto,

How are these IDOCs being created?

Are they inbound or outbound?

Are they being transferred via FTP?

Regards,

Chester

Read only

0 Likes
861

Hi Chester,

These IDOCs are created by running program RFFOEDI1.

These are outbound idocs. (from sap to ouside).

No they are not transferred via ftp. IDOC are created as a file in my local workstation.

Read only

0 Likes
861

Hi Yupinto,

Can you try writing the file to your application server and view the file with AL11.

If the file looks ok it may be your local operating system which cannot read the files.

Regards,

Chester

Read only

0 Likes
861

Hi Chester,

It's ok. I have solved the problem. For other's reference,

There is flag FLG_NO_REPLACE which must be set to X in CUSTOMER-FUNCTION '401'

which is a user exit. If this flag is set then then the chinese characters which are treated as unrecognizable characters will not be replaced with dots.

Once this flag is set, then the chinese characters appear correctly in the IDOC.

Yupinto

Read only

0 Likes
861

Hi Yupinto,

Thanks very much, for updating the thread with the solution. Sorry I could not be of any assistance.

Kindest Regards,

Chester

Read only

0 Likes
861

Hi Yupinto,

Thanks for updating the thread with solution. You have saved a ton of debugging time for me. Glad that I searched SDN before starting my debugging session. This solution worked for my case.

For others, Actual exit name of 401 customer function is -> EXIT_SAPLIEDP_401

CMOD exit is 'FEDI0003'.

Thanks,

Nachi.RM