<?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: SM69-Can't exec external program ( External program terminated with ecode1) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622639#M1440668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would ask your Basis team to replicate the call to the script with the source and target directories, but make the call at operating system level rather than through SAP.  This will define where the permission issue is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 08:00:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-04T08:00:57Z</dc:date>
    <item>
      <title>SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622634#M1440663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Client requirement is to Move File from Presentation Server to Application Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing UNIX script on AIX OS via SM69.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting the  following error:&lt;/P&gt;&lt;P&gt;Can't exec external program (No such file or directory)&lt;/P&gt;&lt;P&gt;External program terminated with exit code 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also getting same error with FM-SXPG_COMMAND_EXECUTE .&lt;/P&gt;&lt;P&gt;Below is the code..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: l_exitcode type btcxpgexit,
        l_parms type btcxpgpar,
        l_status type btcxpgstat.
data: lt_protocol type standard table of btcxpm,
        l_protocol type btcxpm.

concatenate 'C:\Venkat1\PARBIND.BMP'
                      'D:\Venkat2\PARBIND.BMP'
                      into l_parms
                      separated by space.

* External command:
* - Unix - mv
call function 'SXPG_COMMAND_EXECUTE'
  exporting
    commandname                   = 'Z_MV'
    additional_parameters         = l_parms
  importing
    status                        = l_status
    exitcode                      = l_exitcode
  tables
    exec_protocol                 = lt_protocol
  exceptions
    no_permission                 = 1
    command_not_found             = 2
    parameters_too_long           = 3
    security_risk                 = 4
    wrong_check_call_interface    = 5
    program_start_error           = 6
    program_termination_error     = 7
    x_error                       = 8
    parameter_expected            = 9
    too_many_parameters           = 10
    illegal_command               = 11
    wrong_asynchronous_parameters = 12
    cant_enq_tbtco_entry          = 13
    jobcount_generation_error     = 14
    others                        = 15.
if sy-subrc ne 0

endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one guide what is the cause of error....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 13:31:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622634#M1440663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T13:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622635#M1440664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;exception value 1, you can see on the call to SXPG_COMMAND_EXECUTE, means no permission to perform the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will attempt to move the file using the SAP system user id, which probably does not have authorisation to read/write to the required directories.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 15:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622635#M1440664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622636#M1440665</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 have checked all the Authorizations are given.&lt;/P&gt;&lt;P&gt;But still I am not able to find the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think some BASIS Settings are required but unable to find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 06:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622636#M1440665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T06:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622637#M1440666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you checked you have execute permission on the Z_MV script ?  Again it will be the SAP system user for the instance that will be trying to invoke the script.  Usually &amp;lt;SID&amp;gt;adm.  Where &amp;lt;SID&amp;gt; is  system id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 07:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622637#M1440666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T07:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622638#M1440667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got execute persmisson on the Z_MV script.&lt;/P&gt;&lt;P&gt;But Error is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 07:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622638#M1440667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T07:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622639#M1440668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would ask your Basis team to replicate the call to the script with the source and target directories, but make the call at operating system level rather than through SAP.  This will define where the permission issue is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 08:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622639#M1440668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T08:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622640#M1440669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;But still Basis Consultants are telling it is correct from there side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to move files from Presentaion Server to Application Server in Background Processing.&lt;/P&gt;&lt;P&gt;I have used &lt;STRONG&gt;CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_COPY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It is working fine in Foreground but in Background Proceesing, it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u provide any solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Arbind&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 08:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622640#M1440669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T08:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: SM69-Can't exec external program ( External program terminated with ecode1)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622641#M1440670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Running in background is always going to cause probelms, as you have no presentation server if no dialogue user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 08:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm69-can-t-exec-external-program-external-program-terminated-with-ecode1/m-p/6622641#M1440670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T08:22:51Z</dc:date>
    </item>
  </channel>
</rss>

