<?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: How to define command for SXPG_COMMAND_EXECUTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499474#M231527</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; You need to creat a UNIX command in tcode SM49.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Command like calling a Shell script as shown below&lt;/P&gt;&lt;P&gt; /usr/sap/trans/bin/zprinter_utilities/zprinter_display_queue.ksh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Once you have created a command you can use the FM and trigger the unix command from ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;P&gt; If it helps dont forget to mark points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2006 10:45:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-23T10:45:12Z</dc:date>
    <item>
      <title>How to define command for SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499471#M231524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;anyone can help to to create command to be executed by SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a directory (MKDIR command)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Salvatore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499471#M231524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to define command for SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499472#M231525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could see a program at &lt;A href="http://www.iconet-ltd.co.uk/sap/abap/sxpg.txt" target="test_blank"&gt;http://www.iconet-ltd.co.uk/sap/abap/sxpg.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499472#M231525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to define command for SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499473#M231526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but also that program is based on 'Y_REMOVE' command... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know how to create it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Salvatore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499473#M231526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to define command for SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499474#M231527</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; You need to creat a UNIX command in tcode SM49.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Command like calling a Shell script as shown below&lt;/P&gt;&lt;P&gt; /usr/sap/trans/bin/zprinter_utilities/zprinter_display_queue.ksh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Once you have created a command you can use the FM and trigger the unix command from ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;P&gt; If it helps dont forget to mark points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499474#M231527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T10:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to define command for SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499475#M231528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Salvatore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can give you an example for a command (transaction SM49) which execute an ftp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Command name = 'Z_FTP'&lt;/P&gt;&lt;P&gt;- OS command   = cmd /C ftp&lt;/P&gt;&lt;P&gt;- Parameters   = -i -n -s:?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does this command? It reads a script from the application server and execute the ftp commands written in this script. The script template could look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*open &amp;lt;FTPHOST&amp;gt;
*user &amp;lt;FTPUSR&amp;gt; &amp;lt;FTPPWD&amp;gt;
*cd &amp;lt;FTPHDIR&amp;gt;
*binary
*lcd &amp;lt;OSDIR&amp;gt;
*get &amp;lt;FILENAME&amp;gt;
*delete &amp;lt;FILENAME&amp;gt;                                            &amp;lt;del&amp;gt;
*bye&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I could help you with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: The ftp parameters are based on a Windows OS system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 10:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499475#M231528</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-08-23T10:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to define command for SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499476#M231529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can  define the command for each operating system using transactions SM69 (You can test it with SM49) and then call it using SXPG_COMMAND_EXECUTE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 11:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499476#M231529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T11:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to define command for SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499477#M231530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SM69 transaction.&lt;/P&gt;&lt;P&gt;Choose from menu. Edit-&amp;gt;Create.&lt;/P&gt;&lt;P&gt;Give a name for your command and give the actual unix command and the parameters to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would help you better.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/c4/3a8023505211d189550000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/c4/3a8023505211d189550000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 11:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-define-command-for-sxpg-command-execute/m-p/1499477#M231530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T11:22:36Z</dc:date>
    </item>
  </channel>
</rss>

