07-04-2014 11:38 AM
Hello everybody,
I have worked with the function module presented here:
It is working fine, I am able to write to the serial port.
The only problem is that i need to send a hexadecimal string on the serial port, and the function module uses a property of MSCOMM ActiveX Control that sends only characters.
An example:
I want to send the following hex values on the serial port: 01 24 56. I created an XSTRING in ABAP and has the value 012456, which is ok, but the serial port receives the following hex values: 30 31 32 34 35 36, which are the converted ASCII values for the components of the string sent from ABAP.
I need to send hex strings (and not ASCII characters) because the communication protocol with the device I am using requires special hex characters (with values under 20H)
Is there a way to send hex strings to the serial port directly from ABAP without involving third-party software?
Thanks in advance,
Stefan
07-09-2014 7:30 AM
The problem was solved by converting the XSTRING to STRING using the CL_ABAP_CONV_IN_CE class, as someone suggested in a reply(which I can't see anymore), and then send the converted string, but this apparently works only on ECC 6.0 systems.
07-04-2014 1:38 PM
07-09-2014 7:30 AM
The problem was solved by converting the XSTRING to STRING using the CL_ABAP_CONV_IN_CE class, as someone suggested in a reply(which I can't see anymore), and then send the converted string, but this apparently works only on ECC 6.0 systems.
07-09-2014 7:36 AM
I wrote this reply, but the moderator deleted my post. I do not know why ....
Otherwise it is nise to hear, that you could solve your issue.
Best regards.
Alexander
07-09-2014 7:40 AM
07-09-2014 7:46 AM