on 12-02-2008 10:52 AM
Hi...
Can you please tell how to convert the input file to the hexadecimal format?
Thanks
Leela
HI Leela
What exactly is the requirement you have
If you are trying to get file in XI as hexadecimal then you need to do it outside XI. Either use an adapter module and use code like this
char[] chars = foo.toCharArray();
StringBuffer output = new StringBuffer();
for(int i = 0; i < chars.length; i++){
output.append(Integer.toHexString((int)chars<i>));
}
You can use Unix script as OS command as well to do this for you.
Another way can be if your requirement is with SAP ABAP system then you can let the file pass to R/3 and in ABAP use the CL_ABAP_FILE_UTILITIES to achieve this
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please check the URL for converting text file to Hexa decimal format file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leela,
Do you want to view the hex values for an input file to help you debug parsing issues (like line feeds,
carriage returns, encodings etc.), or are you looking to actually convert the payload to hex for some
reason as part of a map in XI? If you just want to see the hex valuesu2026
If you have access to Unix, you may have the od command:
od u2013xc payload.file
On windows I typically use a text editor capable of displaying the text in hex. Many to choose fromu2026
Thanks,
-Russ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.