Reading data from mscomm in ABAP
问题 I'm trying to read data sent from serial port via MSCOMM32 object. What I got was ## . First I convert hex into string and send to COMM port: DATA : xSTX TYPE xstring VALUE '02'. DATA : sSTX TYPE string. CALL FUNCTION 'HR_KR_XSTRING_TO_STRING' EXPORTING in_xstring = xSTX IMPORTING out_string = sSTX. "this value is now # but still understood by the device SET PROPERTY OF O_OBJ 'Output' = sSTX . And then the machine attached to serial port will give a response. I read the data using this code