<?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: External Command in SM69 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110097#M440865</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;Can we execute shell script .sh through external command. If yes than pls share some examples it would be great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Jun 2010 09:13:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-26T09:13:43Z</dc:date>
    <item>
      <title>External Command in SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110092#M440860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have created command zcmd in SM69 to run a .BAT file for encryption. &lt;/P&gt;&lt;P&gt;How to set the "operating system command" and "Parameters for operating system command" ?&lt;/P&gt;&lt;P&gt;Any example will be appreciated greatly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 01:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110092#M440860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T01:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: External Command in SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110093#M440861</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 usualy use FM  'SXPG_COMMAND_EXECUTE' to execute sm69 comands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is and example for 'rm' comand (delete):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created a external comand in sm69 , named Z_DELETE with operating system HP-UX, type customer and Operating System command 'rm'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in my report, i executed FM this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: PARAM LIKE SXPGCOLIST-PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;param = '//dir1/dir2/file.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SXPG_COMMAND_EXECUTE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            COMMANDNAME                   = 'Z_DELETE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        OPERATINGSYSTEM               = SY-OPSYS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TARGETSYSTEM                  = SY-HOST&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        STDOUT                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        STDERR                        = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TERMINATIONWAIT               = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        TRACE                         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          ADDITIONAL_PARAMETERS         = PARAM&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            STATUS                        = STATUS&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            EXEC_PROTOCOL                 = RESULTADO&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            NO_PERMISSION                 = 1&lt;/P&gt;&lt;P&gt;            COMMAND_NOT_FOUND             = 2&lt;/P&gt;&lt;P&gt;            PARAMETERS_TOO_LONG           = 3&lt;/P&gt;&lt;P&gt;            SECURITY_RISK                 = 4&lt;/P&gt;&lt;P&gt;            WRONG_CHECK_CALL_INTERFACE    = 5&lt;/P&gt;&lt;P&gt;            PROGRAM_START_ERROR           = 6&lt;/P&gt;&lt;P&gt;            PROGRAM_TERMINATION_ERROR     = 7&lt;/P&gt;&lt;P&gt;            X_ERROR                       = 8&lt;/P&gt;&lt;P&gt;            PARAMETER_EXPECTED            = 9&lt;/P&gt;&lt;P&gt;            TOO_MANY_PARAMETERS           = 10&lt;/P&gt;&lt;P&gt;            ILLEGAL_COMMAND               = 11&lt;/P&gt;&lt;P&gt;            WRONG_ASYNCHRONOUS_PARAMETERS = 12&lt;/P&gt;&lt;P&gt;            CANT_ENQ_TBTCO_ENTRY          = 13&lt;/P&gt;&lt;P&gt;            JOBCOUNT_GENERATION_ERROR     = 14&lt;/P&gt;&lt;P&gt;            OTHERS                        = 15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 15:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110093#M440861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: External Command in SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110094#M440862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this link;&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, 18 Apr 2007 15:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110094#M440862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T15:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: External Command in SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110095#M440863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rosa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good days!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, my OS is Window NT... so I can't test the example that u give me.&lt;/P&gt;&lt;P&gt;Do u have any others examples or documentation related to SM69?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hikaruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 01:46:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110095#M440863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T01:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: External Command in SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110096#M440864</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;sorry but all the external commands i have done are for HP-UX systems. So all the examples are related to that !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f2c505211d189550000e829fbbd/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f2c505211d189550000e829fbbd/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2007 11:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110096#M440864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-19T11:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: External Command in SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110097#M440865</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;Can we execute shell script .sh through external command. If yes than pls share some examples it would be great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Jun 2010 09:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110097#M440865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-26T09:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: External Command in SM69</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110098#M440866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ritesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can execute shell script through external command defined in SM69.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First create test1.sh file under /home directory and then create a external command in SM69 with following details:&lt;/P&gt;&lt;P&gt;Command name : ZT (your choice)&lt;/P&gt;&lt;P&gt;Op System : Linux&lt;/P&gt;&lt;P&gt;External program : sh&lt;/P&gt;&lt;P&gt;parameters of external program : /home/test1.sh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 15:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-command-in-sm69/m-p/2110098#M440866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-18T15:35:49Z</dc:date>
    </item>
  </channel>
</rss>

