<?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>Question Re: node rfc server issue being unreliable in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaa-p/14127132#M4916951</link>
    <description>Thanks for the reply. I appreciate it. I have already restarted sap and my node rfc server. I have even done soft and hard shut down on the SMGW. and at all of my tests I add the function in the code. when my server node rfc is off, there is always an entry in the logged on clients even when the server is off which has TP name of sapgw00. is this normal? even on soft or hard shut down it does not go away. then when I start my server, then four registered servers appear with the TP name 'IGS.NPL' appear. one external client with the TP name of 'node' appears. one remote gateway with the name 'sapdp00' appears. and one registered server with the TP name of my specified program_id which in this case is MYNODESERVER01 appears as well. Does this information help to detect the issue? I look forward to an answer from you again. thanks for your time</description>
    <pubDate>Fri, 13 Jun 2025 11:43:31 GMT</pubDate>
    <dc:creator>Shayan23</dc:creator>
    <dc:date>2025-06-13T11:43:31Z</dc:date>
    <item>
      <title>node rfc server issue being unreliable</title>
      <link>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaq-p/14122888</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I set up a node rfc server according to the official documentation.&amp;nbsp;&lt;A href="https://github.com/SAP-archive/node-rfc/blob/HEAD/doc/usage.md#nodejs-server-program-example" target="_blank"&gt;https://github.com/SAP-archive/node-rfc/blob/HEAD/doc/usage.md#nodejs-server-program-example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I set up the ini file, the rfc destination (which successfully passes the connection test), the&amp;nbsp;&lt;SPAN&gt;sec_info, and&amp;nbsp;reg_info.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm calling the Node.js RFC function from ABAP using a CALL FUNCTION ... DESTINATION statement.&lt;/P&gt;&lt;P&gt;The issue is sometimes it works and sometimes not. Once it executes the node js function I defined successfully then I restart the server again and then I get the error that the function module (name of the function) not found.&lt;BR /&gt;&lt;BR /&gt;I could not find a reasonable pattern that under what condition it works and under what condition it does not.&lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;&lt;P&gt;I can provide my full codes if needed.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/174007"&gt;@Srdjan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 13:28:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaq-p/14122888</guid>
      <dc:creator>Shayan23</dc:creator>
      <dc:date>2025-06-09T13:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: node rfc server issue being unreliable</title>
      <link>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaa-p/14127053#M4916921</link>
      <description>&lt;P&gt;Looks like you have two instances of the server running? One which has the required definition of the FM you call, and one that doesn't. The ABAP system then does "load balancing" and sometimes calls the correctly configured server program and sometimes the other one... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That is the only plausible explanation, because a server program simply does not "sometimes know the incoming FM and sometimes doesn't know it"...&lt;/P&gt;&lt;P&gt;Check "SMGW --&amp;gt; Logged on Clients" in order to see, how many registered server connections for the given Program ID (TP Name) exist.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 07:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaa-p/14127053#M4916921</guid>
      <dc:creator>Ulrich_Schmidt1</dc:creator>
      <dc:date>2025-06-16T07:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: node rfc server issue being unreliable</title>
      <link>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaa-p/14127132#M4916951</link>
      <description>Thanks for the reply. I appreciate it. I have already restarted sap and my node rfc server. I have even done soft and hard shut down on the SMGW. and at all of my tests I add the function in the code. when my server node rfc is off, there is always an entry in the logged on clients even when the server is off which has TP name of sapgw00. is this normal? even on soft or hard shut down it does not go away. then when I start my server, then four registered servers appear with the TP name 'IGS.NPL' appear. one external client with the TP name of 'node' appears. one remote gateway with the name 'sapdp00' appears. and one registered server with the TP name of my specified program_id which in this case is MYNODESERVER01 appears as well. Does this information help to detect the issue? I look forward to an answer from you again. thanks for your time</description>
      <pubDate>Fri, 13 Jun 2025 11:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaa-p/14127132#M4916951</guid>
      <dc:creator>Shayan23</dc:creator>
      <dc:date>2025-06-13T11:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: node rfc server issue being unreliable</title>
      <link>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaa-p/14127552#M4917007</link>
      <description>&lt;P&gt;Strange, looks fine so far.&lt;/P&gt;
&lt;P&gt;In this case, there must be something very wrong either in the Python wrapper around libsapnwrfc.so, or in your Python code itself. Try setting the environment variable RFC_TRACE=4, before starting the server program. Then we can see, what the program is doing.&lt;/P&gt;
&lt;P&gt;I have never used Python, but when doing it in C, I would do something like&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;RFC_ERROR_INFO errorInfo;
// Either manually created or obtained from ABAP DDIC:
RFC_FUNCTION_DESC_HANDLE myFuncDesc = ...;

RfcInstallServerFunction(cU("NPL"), myFuncDesc, handlerFunction, &amp;amp;errorInfo);&lt;/LI-CODE&gt;
&lt;P&gt;at the very beginning, and the function should be known for the runtime of the process. The only way to make it "unknown" again, is to call RfcInstallServerFunction a second time like this&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;RfcInstallServerFunction(cU("NPL"), myFuncDesc, NULL, &amp;amp;errorInfo);&lt;/LI-CODE&gt;
&lt;P&gt;If this is happening, we should see it in the RFC Trace.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 07:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/node-rfc-server-issue-being-unreliable/qaa-p/14127552#M4917007</guid>
      <dc:creator>Ulrich_Schmidt1</dc:creator>
      <dc:date>2025-06-15T07:29:41Z</dc:date>
    </item>
  </channel>
</rss>

