on 02-24-2006 8:00 AM
Hi all,
We are using XI 3.0 SP 10 and I have a scenario where I only need to retrieve a file (via FTP) and deliver it to a file share inhouse. There is no need for any mappings etc. But the file Iam retrieving is in EBCDIC and I would need to convert this into ASCII when delivering to fileshare. I have set up the communication channels and this works fine. But what would be the easiest way to convert the EBCDIC file to ASCII?
Regards,
Fredrik
Hi Fredrik,
There is an alternate way of acehiving the same using a java program in the operatingsystem command option of File adapter.
Steps:
1. Write a java program to read EBCDIC file and convert into ASCII file(Using codepages).
2.Create a jar for the above program and store it in a server directory.
3.Write one shell script/batch file call the java program and send command line parameters as filenames.
4.In XI File adapter -Operating system command use the Shellscript/Batch file name (Complete path)and give %F for filenames
Eg. /usr/sap/serverdir/convert.sh %F %F
For more details refer the following link:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">XI File adapter</a>
Regards,
Ananth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fredrik,
you should be able to do this by using the parameter file.encoding. You can find further info under
http://help.sap.com/saphelp_erp2005/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm
and in note 821267
Hope this helps you,
Regards, Jaime
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.