<?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 Error in FM: SXPG_COMMAND_EXECUTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477572#M1651972</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 FM: SXPG_COMMAND_EXECUTE to encrypt file for appication server but i am getting below errors:&lt;/P&gt;&lt;P&gt;- Can't exec external program (Unknown error)&lt;/P&gt;&lt;P&gt;- WaitForSingleObject failedwith %d (No such device or address)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below parameter passing into FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_addparam = 'C:\usr\sap\DIE\SYS\src\ABC.txt'.  ( Appication server TXT file path Name)&lt;/P&gt;&lt;P&gt;w_finalencrpt = 'C:\Desktop1\abc1.txt'. (local drive path name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_status = space (No value).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_exitparam = space (No value).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE w_addparam w_finalencrpt&lt;/P&gt;&lt;P&gt;INTO l_encrtpt_ap SEPARATED BY space.&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                = 'ZIFI_ENCRYPT'&lt;/P&gt;&lt;P&gt;    additional_parameters      = l_encrtpt_ap&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    status                     = w_status&lt;/P&gt;&lt;P&gt;    exitcode                   = w_exitparam&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    exec_protocol              = t_exec_protocol&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;    OTHERS                     = 12.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 12:57:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-10T12:57:08Z</dc:date>
    <item>
      <title>Error in FM: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477572#M1651972</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 FM: SXPG_COMMAND_EXECUTE to encrypt file for appication server but i am getting below errors:&lt;/P&gt;&lt;P&gt;- Can't exec external program (Unknown error)&lt;/P&gt;&lt;P&gt;- WaitForSingleObject failedwith %d (No such device or address)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest me on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below parameter passing into FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_addparam = 'C:\usr\sap\DIE\SYS\src\ABC.txt'.  ( Appication server TXT file path Name)&lt;/P&gt;&lt;P&gt;w_finalencrpt = 'C:\Desktop1\abc1.txt'. (local drive path name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_status = space (No value).&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;w_exitparam = space (No value).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE w_addparam w_finalencrpt&lt;/P&gt;&lt;P&gt;INTO l_encrtpt_ap SEPARATED BY space.&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                = 'ZIFI_ENCRYPT'&lt;/P&gt;&lt;P&gt;    additional_parameters      = l_encrtpt_ap&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    status                     = w_status&lt;/P&gt;&lt;P&gt;    exitcode                   = w_exitparam&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    exec_protocol              = t_exec_protocol&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;    OTHERS                     = 12.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 12:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477572#M1651972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T12:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error in FM: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477573#M1651973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if ZIFI_ENCRYPT is available in SM69 ( External OS command).You can try executing from SM69 with the prameters you have specified in additional parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script ZIFI_ENCRYPT  should be present in the application server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 13:07:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477573#M1651973</guid>
      <dc:creator>mithun_shetty4</dc:creator>
      <dc:date>2012-01-10T13:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error in FM: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477574#M1651974</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 can see the details maintained in SM69 as below:&lt;/P&gt;&lt;P&gt;Command Name: ZIFI_ENCRYPT&lt;/P&gt;&lt;P&gt;OS: Windows NT&lt;/P&gt;&lt;P&gt;Name of external program: C:\usr\sap\DIE\SYS\src\ABC.txt&lt;/P&gt;&lt;P&gt;Parameter of external program: &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to maintain script at application server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 13:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477574#M1651974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error in FM: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477575#M1651975</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;"C:\usr\sap\DIE\SYS\src\ABC.txt" doesn't sound like an executable program for me &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Marcin Cholewczuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 13:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477575#M1651975</guid>
      <dc:creator>marcin_cholewczuk</dc:creator>
      <dc:date>2012-01-10T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in FM: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477576#M1651976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to get the log from the called system, like in the following sample&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;      REFRESH lt_protocol.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname           = lv_command
          additional_parameters = lv_parameters
        IMPORTING
          exitcode              = lv_exitcode
        TABLES
          exec_protocol         = lt_protocol.
      IF exitcode NE 0.
        cl_db6_backend=&amp;gt;set_attribute( id = cl_db6_backend=&amp;gt;id_caller
                                      value  = cl_db6_backend=&amp;gt;val_caller_cockpit ).
        CALL FUNCTION 'DB6_SHOW_SXPG_ERROR'
          EXPORTING
            command       = lv_command
            PARAMETERS    = lv_parameters
            server        = sy-host
            return_code   = sy-subrc
            exitcode      = exitcode
          TABLES
            exec_protocol = lt_protocol
          EXCEPTIONS
            OTHERS        = 0.
      ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 14:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-fm-sxpg-command-execute/m-p/8477576#M1651976</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2012-01-10T14:56:08Z</dc:date>
    </item>
  </channel>
</rss>

