<?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 Run external program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-external-program/m-p/12447234#M1999171</link>
    <description>&lt;P&gt;I'm using SAP B1, v10.00.120 PL2, with Coresuite customizations.&lt;/P&gt;
  &lt;P&gt;I'd like to run an MS Access procedure, passing an UDF value as parameter. The help file suggests to use an Easy Function (like SQLQuery) with EXEC xp_cmdshell. Once enabled the above, by default it's OFF, I configured this command:&lt;/P&gt;
  &lt;P&gt;SQLQuery("QCT|EXEC xp_cmdshell 'MSACCESS.EXE c:\Sviluppo\QCT\QCT1000.mdb ;$[$COR_G_903.QCT.0]';")&lt;/P&gt;
  &lt;P&gt;msaccess.exe is the runtime, QCT1000.mdb is my procedure, $[$COR_G_903.QCT.0] is the UDF placeholder&lt;/P&gt;
  &lt;P&gt;It does NOT work and I can't sort it out. The command is OK, I can run it directly from Windows, once I replaced the parameter with a proper value.&lt;/P&gt;
  &lt;P&gt; I can't find any alternative, due to my limited knowledge. &lt;/P&gt;</description>
    <pubDate>Fri, 30 Jul 2021 07:02:57 GMT</pubDate>
    <dc:creator>former_member651578</dc:creator>
    <dc:date>2021-07-30T07:02:57Z</dc:date>
    <item>
      <title>Run external program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-external-program/m-p/12447234#M1999171</link>
      <description>&lt;P&gt;I'm using SAP B1, v10.00.120 PL2, with Coresuite customizations.&lt;/P&gt;
  &lt;P&gt;I'd like to run an MS Access procedure, passing an UDF value as parameter. The help file suggests to use an Easy Function (like SQLQuery) with EXEC xp_cmdshell. Once enabled the above, by default it's OFF, I configured this command:&lt;/P&gt;
  &lt;P&gt;SQLQuery("QCT|EXEC xp_cmdshell 'MSACCESS.EXE c:\Sviluppo\QCT\QCT1000.mdb ;$[$COR_G_903.QCT.0]';")&lt;/P&gt;
  &lt;P&gt;msaccess.exe is the runtime, QCT1000.mdb is my procedure, $[$COR_G_903.QCT.0] is the UDF placeholder&lt;/P&gt;
  &lt;P&gt;It does NOT work and I can't sort it out. The command is OK, I can run it directly from Windows, once I replaced the parameter with a proper value.&lt;/P&gt;
  &lt;P&gt; I can't find any alternative, due to my limited knowledge. &lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 07:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-external-program/m-p/12447234#M1999171</guid>
      <dc:creator>former_member651578</dc:creator>
      <dc:date>2021-07-30T07:02:57Z</dc:date>
    </item>
  </channel>
</rss>

