<?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 SXPG_COMMAND_EXECUTE issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142014#M1513592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have this issue in client server.One of the batch job is frequently failing while executing this function module SXPG_COMMAND_EXECUTE with error as command_not_found.This error occurs frequently on a particular application server but not all the times it fails but we find some job failures 2 to 3 times a day,as this batch job is running every 15min.Please find the sample code below and advice.Many thanks in advance.&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                   = 'ZZ_YP_MKDIR'&lt;/P&gt;&lt;P&gt;            additional_parameters         = w_command&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            exec_protocol                 = i_command_results&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;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT i_command_results.&lt;/P&gt;&lt;P&gt;      WRITE: / i_command_results-length,&lt;/P&gt;&lt;P&gt;               i_command_results-message.&lt;/P&gt;&lt;P&gt;      IF i_command_results-message &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;        w_error = 'X'.                                      "AN14112002&lt;/P&gt;&lt;P&gt;        MESSAGE i179(zv) WITH i_command_results-message&lt;/P&gt;&lt;P&gt;                              v_char_seqno.&lt;/P&gt;&lt;P&gt;        "'Make Directory failed'&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Aug 2010 11:56:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-04T11:56:53Z</dc:date>
    <item>
      <title>SXPG_COMMAND_EXECUTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142014#M1513592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have this issue in client server.One of the batch job is frequently failing while executing this function module SXPG_COMMAND_EXECUTE with error as command_not_found.This error occurs frequently on a particular application server but not all the times it fails but we find some job failures 2 to 3 times a day,as this batch job is running every 15min.Please find the sample code below and advice.Many thanks in advance.&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                   = 'ZZ_YP_MKDIR'&lt;/P&gt;&lt;P&gt;            additional_parameters         = w_command&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            exec_protocol                 = i_command_results&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;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    LOOP AT i_command_results.&lt;/P&gt;&lt;P&gt;      WRITE: / i_command_results-length,&lt;/P&gt;&lt;P&gt;               i_command_results-message.&lt;/P&gt;&lt;P&gt;      IF i_command_results-message &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt;        w_error = 'X'.                                      "AN14112002&lt;/P&gt;&lt;P&gt;        MESSAGE i179(zv) WITH i_command_results-message&lt;/P&gt;&lt;P&gt;                              v_char_seqno.&lt;/P&gt;&lt;P&gt;        "'Make Directory failed'&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 11:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142014#M1513592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-04T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142015#M1513593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swathv	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That function is used for calling Unix scripts on the application server,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify a unix script as a command on transaction SM69&lt;/P&gt;&lt;P&gt;and than you can call this command with function 'SXPG_COMMAND_EXECUTE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you find this command in SM69 and related script,&lt;/P&gt;&lt;P&gt;and learn what is it used for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you are using more than 1 application server,&lt;/P&gt;&lt;P&gt;and script file exist on a server but doesn't exist on other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 12:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142015#M1513593</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-04T12:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142016#M1513594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is the command 'ZZ_YP_MKDIR' defined &amp;amp; what is the value passed to 'w_command' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 12:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142016#M1513594</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-04T12:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142017#M1513595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in SM49 if command you trying execute thru FM exists, may be something might have got changed recently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 13:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142017#M1513595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-04T13:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142018#M1513596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, you're right more than 1application server is used and the script file exists on all the server.Let me mention that not all the time its failing on this server, only sometimes.Pls advice what needs to be checked with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 13:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142018#M1513596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-04T13:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142019#M1513597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you said "This error occurs frequently on a particular application server but not all the times.."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it occurs randomly&lt;/P&gt;&lt;P&gt;It seems like a file accessibility problem for that application server and sometimes only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify which server the Job runs on with transaction SM37.&lt;/P&gt;&lt;P&gt;Just choose your job in the list, click menu item Job &amp;gt; Change&lt;/P&gt;&lt;P&gt;and fill field "Exec.Target" with a problem-free server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bulent Balci on Aug 4, 2010 3:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 13:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-issue/m-p/7142019#M1513597</guid>
      <dc:creator>bbalci</dc:creator>
      <dc:date>2010-08-04T13:38:34Z</dc:date>
    </item>
  </channel>
</rss>

