<?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 FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872130#M1138993</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 am using the below Function Module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_ap = '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox'&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_LS'      &lt;/P&gt;&lt;P&gt;           additional_parameters         = gv_ap       &lt;/P&gt;&lt;P&gt;      TABLES                                           &lt;/P&gt;&lt;P&gt;           exec_protocol                 = t_fich      &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;with this folder '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox' return the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/nfs/ficheiros/FicheiroExtraccaoSIF/outbox&lt;/STRONG&gt; not found and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;External program terminated with exit code 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i map other directory the function return the files and folders that directory have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;Eduardo Paiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2008 16:47:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-26T16:47:18Z</dc:date>
    <item>
      <title>FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872130#M1138993</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 am using the below Function Module &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_ap = '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox'&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_LS'      &lt;/P&gt;&lt;P&gt;           additional_parameters         = gv_ap       &lt;/P&gt;&lt;P&gt;      TABLES                                           &lt;/P&gt;&lt;P&gt;           exec_protocol                 = t_fich      &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;with this folder '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox' return the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/nfs/ficheiros/FicheiroExtraccaoSIF/outbox&lt;/STRONG&gt; not found and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;External program terminated with exit code 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i map other directory the function return the files and folders that directory have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone could help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;P&gt;Eduardo Paiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 16:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872130#M1138993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T16:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872131#M1138994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check do you have read access to this directory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 17:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872131#M1138994</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-11-26T17:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872132#M1138995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in SM69 if Z_LS command exists. Looks from the return code that there is no definition of the command..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Aman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2008 18:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872132#M1138995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-26T18:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872133#M1138996</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;Yes i have read access to this directory and the command 'Z_LS' exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Eduardo Paiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2008 18:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-sxpg-command-execute-external-program-terminated-with-exit-code-2/m-p/4872133#M1138996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-09T18:07:43Z</dc:date>
    </item>
  </channel>
</rss>

