<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Function for reading from serial port in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152401#M1514777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;registration worked perfect!&lt;/P&gt;&lt;P&gt;fm works great just trying to see how I can make it wait for data and then report back&lt;/P&gt;&lt;P&gt;Frans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 22:54:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-02T22:54:06Z</dc:date>
    <item>
      <title>Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152395#M1514771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;We are trying to read data from the serial port with the following function we got from internet.&lt;/P&gt;&lt;P&gt;The problem is when creating the object with the sentence CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.&lt;/P&gt;&lt;P&gt;This returns a sy-subrc = 2 and shows the exception NO_CREATE_OBJECT.&lt;/P&gt;&lt;P&gt;We already copied the file MSCOMM32.OCX in c:\windows\system32 and we successfuly registered it, with regsvr32.exe.&lt;/P&gt;&lt;P&gt;We tried it with Windows XP and Vista.&lt;/P&gt;&lt;P&gt;Anybody has any idea?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZSERIALCOM.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Interfase local&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(MODE) TYPE  I DEFAULT 0&lt;/P&gt;&lt;P&gt;*"     REFERENCE(COMMPORT) TYPE  I DEFAULT 1&lt;/P&gt;&lt;P&gt;*"     REFERENCE(SETTINGS) TYPE  C DEFAULT '2400,N,8,1'&lt;/P&gt;&lt;P&gt;*"     REFERENCE(OUTPUT) TYPE  C OPTIONAL&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(INPUT) TYPE  C&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NO_CREATE_OBJECT&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;  TYPE-POOLS: sabc.&lt;/P&gt;&lt;P&gt;  INCLUDE ole2incl.&lt;/P&gt;&lt;P&gt;  PERFORM init.&lt;/P&gt;&lt;P&gt;  PERFORM open_port USING commport settings.&lt;/P&gt;&lt;P&gt;  IF mode = 0.&lt;/P&gt;&lt;P&gt;    PERFORM read_port&lt;/P&gt;&lt;P&gt;    CHANGING input.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  IF mode = 1.&lt;/P&gt;&lt;P&gt;    PERFORM write_port&lt;/P&gt;&lt;P&gt;    USING output&lt;/P&gt;&lt;P&gt;    CHANGING input.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  PERFORM final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: o_obj TYPE ole2_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form Init&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM init.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;wa_repid LIKE sy-repid.&lt;/P&gt;&lt;P&gt;wa_repid = sy-repid.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'AUTHORITY_CHECK_OLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program = wa_repid&lt;/P&gt;&lt;P&gt;activity = sabc_act_call&lt;/P&gt;&lt;P&gt;application = 'MSCOMMLib.MSComm.1'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;no_authority = 1&lt;/P&gt;&lt;P&gt;activity_unknown = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;RAISE no_create_object.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM. " Init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM open_port *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;........ *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; COMMPORT *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; SETTINGS *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM open_port USING commport settings.&lt;/P&gt;&lt;P&gt;SET PROPERTY OF o_obj 'CommPort' = commport.&lt;/P&gt;&lt;P&gt;SET PROPERTY OF o_obj 'Settings' = settings.&lt;/P&gt;&lt;P&gt;SET PROPERTY OF o_obj 'InputLen' = 0.&lt;/P&gt;&lt;P&gt;SET PROPERTY OF o_obj 'PortOpen' = 1.&lt;/P&gt;&lt;P&gt;ENDFORM. "open_port&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM read_port *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;........ *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; INPUT *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM read_port&lt;/P&gt;&lt;P&gt;CHANGING input.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;wa_buffer TYPE i.&lt;/P&gt;&lt;P&gt;DO 10 TIMES.&lt;/P&gt;&lt;P&gt;GET PROPERTY OF o_obj 'InBufferCount' = wa_buffer.&lt;/P&gt;&lt;P&gt;IF wa_buffer &amp;gt; 0.&lt;/P&gt;&lt;P&gt;GET PROPERTY OF o_obj 'Input' = input.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDFORM. " read_port&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FORM write_port *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;........ *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; OUTPUT *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM write_port&lt;/P&gt;&lt;P&gt;USING output&lt;/P&gt;&lt;P&gt;CHANGING input.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;wa_buffer TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PROPERTY OF o_obj 'Output' = output.&lt;/P&gt;&lt;P&gt;DO 10 TIMES.&lt;/P&gt;&lt;P&gt;GET PROPERTY OF o_obj 'InBufferCount' = wa_buffer.&lt;/P&gt;&lt;P&gt;IF wa_buffer &amp;gt; 0.&lt;/P&gt;&lt;P&gt;GET PROPERTY OF o_obj 'Input' = input.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form final&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt; p1 text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;-- p2 text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM final.&lt;/P&gt;&lt;P&gt;SET PROPERTY OF o_obj 'PortOpen' = 0.&lt;/P&gt;&lt;P&gt;FREE OBJECT o_obj.&lt;/P&gt;&lt;P&gt;ENDFORM. " finalbligw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Aug 2010 00:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152395#M1514771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-22T00:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152396#M1514772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you get any idea about how to go about. I am having the same problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2011 10:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152396#M1514772</guid>
      <dc:creator>farihakazi</dc:creator>
      <dc:date>2011-03-04T10:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152397#M1514773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm having the same problem, did you found any solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 14:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152397#M1514773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-24T14:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152398#M1514774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI kholoud.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can use a program developed in Java or .net to read a serial port. &lt;/P&gt;&lt;P&gt;After you should use SAP Connectors to send information between this program and SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Java Connector-&amp;gt;   &lt;A href="http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b4/3f9e64bff38c4f9a19635f57eb4248/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b4/3f9e64bff38c4f9a19635f57eb4248/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;.NET Connector-&amp;gt;   &lt;A href="http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fe/37c22b75e6154e8c67917bed8c70df/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fe/37c22b75e6154e8c67917bed8c70df/frameset.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manuel H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 15:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152398#M1514774</guid>
      <dc:creator>manuelhildemaro_ramossanc</dc:creator>
      <dc:date>2011-04-14T15:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152399#M1514775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was worked with is FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this FM worked below Conditions Only&lt;/P&gt;&lt;P&gt;1. MSCOMM32.OCX file Copy  to user system " C:\Windows\System\" or system32 &lt;/P&gt;&lt;P&gt;   if u r working with 64 bit OS you  paste it in WOW32 folder&lt;/P&gt;&lt;P&gt;2. execute regsvr32 MSCOMM32.OCX it given Successfully registered Message box&lt;/P&gt;&lt;P&gt;3.Now Active this MSCOMM32.OCX with Licence Key is like&lt;/P&gt;&lt;P&gt;       - Open RUN execute : regedit&lt;/P&gt;&lt;P&gt;      - Goo u201CHKEY_CLASSES_ROOT\Licenses\u201D&lt;/P&gt;&lt;P&gt;      - create new key (Folder) name with '4250E830-6AC2-11cf-8ADB-00AA00C00905'&lt;/P&gt;&lt;P&gt;      - Give the default VALUE:  kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun&lt;/P&gt;&lt;P&gt;4  Restart The System&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Run Your FM it works when Serial port Have the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Vijay Reddy.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 09:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152399#M1514775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T09:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152400#M1514776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was worked with is FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this FM worked below Conditions Only&lt;/P&gt;&lt;P&gt;1. MSCOMM32.OCX file Copy to user system " C:\Windows\System\" or system32&lt;/P&gt;&lt;P&gt;if u r working with 64 bit OS you paste it in WOW32 folder&lt;/P&gt;&lt;P&gt;2. execute regsvr32 MSCOMM32.OCX it given Successfully registered Message box&lt;/P&gt;&lt;P&gt;3.Now Active this MSCOMM32.OCX with Licence Key is like&lt;/P&gt;&lt;P&gt;- Open RUN execute : regedit&lt;/P&gt;&lt;P&gt;- Goo u201CHKEY_CLASSES_ROOT\Licenses\u201D&lt;/P&gt;&lt;P&gt;- create new key (Folder) name with '4250E830-6AC2-11cf-8ADB-00AA00C00905'&lt;/P&gt;&lt;P&gt;- Give the default VALUE: kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun&lt;/P&gt;&lt;P&gt;4 Restart The System&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then Run Your FM it works when Serial port Have the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Vijay Reddy.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 09:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152400#M1514776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-18T09:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152401#M1514777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;registration worked perfect!&lt;/P&gt;&lt;P&gt;fm works great just trying to see how I can make it wait for data and then report back&lt;/P&gt;&lt;P&gt;Frans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 22:54:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152401#M1514777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T22:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152402#M1514778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friend, &lt;/P&gt;&lt;P&gt;The problem is when creating the object with the sentence CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.&lt;/P&gt;&lt;P&gt;This returns a sy-subrc = 2 and shows the exception NO_CREATE_OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you find the solution of the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 07:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152402#M1514778</guid>
      <dc:creator>muhammad_sohail</dc:creator>
      <dc:date>2012-11-17T07:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152403#M1514779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friend, &lt;/P&gt;&lt;P&gt;The problem is when creating the object with the sentence CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.&lt;/P&gt;&lt;P&gt;This returns a sy-subrc = 2 and shows the exception NO_CREATE_OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you find the solution of the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 07:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152403#M1514779</guid>
      <dc:creator>muhammad_sohail</dc:creator>
      <dc:date>2012-11-17T07:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152404#M1514780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friend, &lt;/P&gt;&lt;P&gt;The problem is when creating the object with the sentence CREATE OBJECT o_obj '"MSCOMMLib.MSComm.1"'.&lt;/P&gt;&lt;P&gt;This returns a sy-subrc = 2 and shows the exception NO_CREATE_OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you find the solution of the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2012 07:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152404#M1514780</guid>
      <dc:creator>muhammad_sohail</dc:creator>
      <dc:date>2012-11-17T07:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152405#M1514781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on same object.I usethe same thing.I am not getting errors but not getting values either.&lt;/P&gt;&lt;P&gt;Intel(R) ICH10D LPC Interface Controller - 3A1A this is the COMM port driver.I have one doubt&lt;/P&gt;&lt;P&gt;(SETTINGS) TYPE&amp;nbsp; C DEFAULT '2400,N,8,1'these values change.Please lte me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 07:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152405#M1514781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-27T07:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152406#M1514782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on same object.I usethe same thing.I am not getting errors but not getting values either.&lt;/P&gt;&lt;P&gt;Intel(R) ICH10D LPC Interface Controller - 3A1A this is the COMM port driver.I have one doubt&lt;/P&gt;&lt;P&gt;(SETTINGS) TYPE&amp;nbsp; C DEFAULT '2400,N,8,1'these values change.Please lte me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 07:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152406#M1514782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-27T07:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152407#M1514783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on same object.I usethe same thing.I am not getting errors but not getting values either.&lt;/P&gt;&lt;P&gt;Intel(R) ICH10D LPC Interface Controller - 3A1A this is the COMM port driver.I have one doubt&lt;/P&gt;&lt;P&gt;(SETTINGS) TYPE&amp;nbsp; C DEFAULT '2400,N,8,1'these values change.Please lte me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 07:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152407#M1514783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-27T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152408#M1514784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on same object.I usethe same thing.I am not getting errors but not getting values either.&lt;/P&gt;&lt;P&gt;Intel(R) ICH10D LPC Interface Controller - 3A1A this is the COMM port driver.I have one doubt&lt;/P&gt;&lt;P&gt;(SETTINGS) TYPE&amp;nbsp; C DEFAULT '2400,N,8,1'these values change.Please lte me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 09:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152408#M1514784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-27T09:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152409#M1514785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have worked according the following link &lt;A _jive_internal="true" href="https://answers.sap.com/thread/1688977"&gt;http://scn.sap.com/thread/1688977&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But in program&amp;nbsp;&amp;nbsp;&amp;nbsp; SET PROPERTY OF o_obj 'PortOpen' = 1. I am getting sy-subrc = 3.I have all ports open.firewall Off.I am using COMM1 port.&lt;/P&gt;&lt;P&gt;passed following&amp;nbsp; parameters&amp;nbsp; &lt;SPAN class="L0S32"&gt;9600&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;N&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;8&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;/SPAN&gt;.Please let me guide from here.urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Sridhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 09:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152409#M1514785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-30T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152410#M1514786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have worked according the following link &lt;A _jive_internal="true" href="https://answers.sap.com/thread/1688977"&gt;http://scn.sap.com/thread/1688977&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But in program&amp;nbsp;&amp;nbsp;&amp;nbsp; SET PROPERTY OF o_obj 'PortOpen' = 1. I am getting sy-subrc = 3.I have all ports open.firewall Off.I am using COMM1 port.&lt;/P&gt;&lt;P&gt;passed following&amp;nbsp; parameters&amp;nbsp; &lt;SPAN class="L0S32"&gt;9600&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;N&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;8&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1&lt;/SPAN&gt;&lt;/SPAN&gt;.Please let me guide from here.urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Sridhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 09:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152410#M1514786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-30T09:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152411#M1514787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same way as mentioned here. Everything works ok, but it is not returning any data. The FM returns nothing.Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Thamil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 15:55:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152411#M1514787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-29T15:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152412#M1514788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Nov 2013 07:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152412#M1514788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-09T07:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152413#M1514789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I have developed the FM and done the settings as per the below link&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="88631" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Read COMM port using ABAP w/o third party software " href="https://community.sap.com/" modifiedtitle="true" title="Read COMM port using ABAP w/o third party software "&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I executed the FM independently I was able to get the weight from the weigh bridge,but when I use the FM in my program I am not able to get the value from the weighbridge.the value is coming as blank.any suggestion is appreciated ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Vivek &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152413#M1514789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-15T10:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Function for reading from serial port</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152414#M1514790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Hi ,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;I want to read value form weigh bridge through COMM port. I have developed the FM and done the setting as mentioned in the below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;A _jive_internal="true" data-containerid="73425" data-containertype="37" data-objectid="88631" data-objecttype="38" href="https://answers.sap.com/people/firoz.ashraf2/blog/2013/07/10/read-comm-port-using-abap-wo-third-party-software" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Read COMM port using ABAP w/o third party software&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;but while executing the FM independently I am able to get the value from the COMM port,but when I call the FM from a program I am not able to get the output value from the FM.I am calling the FM from the report program.please find the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;report test.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;data &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;: &lt;/SPAN&gt;lv_input &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FUNCTION &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'ZFM_WEIGHINTERFACE'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;MODE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COMMPORT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SETTINGS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'1200,N,8,1'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;OUTPUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;''&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;INPUT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;lv_input&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;EXCEPTIONS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO_CREATE_OBJECT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;IF &lt;/SPAN&gt;SY&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;SUBRC &amp;lt;&amp;gt; &lt;SPAN class="L0S32" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S31" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;* Implement suitable error handling here&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;if I execute the FM independently the output is getting perfectly.but while calling from a program i am facing the issue..&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;any suggestion is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;Vivek&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 11:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-for-reading-from-serial-port/m-p/7152414#M1514790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-12-15T11:54:44Z</dc:date>
    </item>
  </channel>
</rss>

