<?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: SXPG_COMMAND_EXECUTE   FUNCTION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110358#M1185552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script qui copie un fichier en utilisant le protocole ssh&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Parametres Obligatoire:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $INTERFACE =&amp;gt; Interface&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $SOURCESID =&amp;gt; SID d'origine&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $TARGETSID =&amp;gt; SID de destination&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $AREA      =&amp;gt; Area&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $LOCAL_AREA      =&amp;gt; Nom de repertoire qui doit figurer dans le path de source entre "interfaces" et "outbound".&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $FILENAME  =&amp;gt; Filename (Could contain a wild card)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $LOCATION  =&amp;gt; Nom de repertoire qui doit figurer dans le path de destination entre "$TARGETSID" et "common" &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $DIRECTION =&amp;gt; inbound/outbound &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jan 2009 18:44:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-29T18:44:02Z</dc:date>
    <item>
      <title>SXPG_COMMAND_EXECUTE   FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110353#M1185547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi   Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I  have a problem to use this function :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The unix commande is copyoutbound  .&lt;/P&gt;&lt;P&gt;I want to copy a file automatically using reflection from a unix path to other unix path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But  it  doesn`t work in this test code.&lt;/P&gt;&lt;P&gt;Can someone help me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Soufiene&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST_SOU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: params             LIKE sxpgcolist-parameters.&lt;/P&gt;&lt;P&gt;DATA: return_code        LIKE btcxp3-exitstat.&lt;/P&gt;&lt;P&gt;DATA: unix_command       LIKE sxpgcolist-name.&lt;/P&gt;&lt;P&gt;DATA: dest               LIKE rfcdes-rfcdest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FILENAME1(128) TYPE C,&lt;/P&gt;&lt;P&gt;      FILENAME2(128) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: single_quote(1) TYPE c VALUE '"'.&lt;/P&gt;&lt;P&gt;DATA: quoted_subject(32) TYPE c.&lt;/P&gt;&lt;P&gt;DATA: convert_flag(1)    TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF tabl OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE btcxpm.   "Structure for Logging message from&lt;/P&gt;&lt;P&gt;DATA: END OF tabl.                  "external program to calling program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ICN LIKE ICON-ID,&lt;/P&gt;&lt;P&gt;      I_NEXT_DATE LIKE  SY-DATUM,&lt;/P&gt;&lt;P&gt;      I_COMP_DATE LIKE  SY-DATUM,&lt;/P&gt;&lt;P&gt;      T_EXEC      LIKE  SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      UNIX_COMMAND  = 'Z_HR_FILE_TRANSFER'.&lt;/P&gt;&lt;P&gt;      FILENAME1 = '/US/hrit-sdck/trsf0019.toc'.&lt;/P&gt;&lt;P&gt;      FILENAME2 = '/test/esc/inbound/done'.&lt;/P&gt;&lt;P&gt;      DEST = 'cib10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CONCATENATE FILENAME1 FILENAME2 INTO PARAMS SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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                   = unix_command&lt;/P&gt;&lt;P&gt;        destination                   = dest&lt;/P&gt;&lt;P&gt;        additional_parameters         = params&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        status                        = return_code&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        exec_protocol                 = tabl&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;    IF return_code NE 'O'.&lt;/P&gt;&lt;P&gt;       WRITE:/ 'UNIX status UNSUCCESSFUL TRANSFER RETURN CODE = ',return_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 17:36:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110353#M1185547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T17:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE   FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110354#M1185548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you have a look at what the command name Z_HR_FILE_TRANSFER stand for in UNIX by checking in SM69?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be it is not simply "cp" as your code is trying to use it as ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also what error / exception is it returning back to you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 17:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110354#M1185548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T17:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE   FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110355#M1185549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is how you can troubleshoot this problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Check the command in Sm69&lt;/P&gt;&lt;P&gt;2. See the sy-subrc value after the function call.&lt;/P&gt;&lt;P&gt;3. Check the entries in the table exec_"protocol = tabl" after the function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get the root casue from the above steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might get the solution as well &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; . Or else reply back once you find the root cause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 17:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110355#M1185549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T17:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE   FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110356#M1185550</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;The  ZHR_FILE_TRANSFERT  execute unix script copyoutbound file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statut code is blank .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 17:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110356#M1185550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T17:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE   FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110357#M1185551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you access the shell script? I can have a look at it and tell you what might be the issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may use AL11 to view the script, if that path where the script is,  is already configured there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else download the script from its directory using CG3Y and paste it here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 17:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110357#M1185551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T17:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE   FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110358#M1185552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script qui copie un fichier en utilisant le protocole ssh&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;OL&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;Parametres Obligatoire:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $INTERFACE =&amp;gt; Interface&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $SOURCESID =&amp;gt; SID d'origine&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $TARGETSID =&amp;gt; SID de destination&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $AREA      =&amp;gt; Area&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $LOCAL_AREA      =&amp;gt; Nom de repertoire qui doit figurer dans le path de source entre "interfaces" et "outbound".&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $FILENAME  =&amp;gt; Filename (Could contain a wild card)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $LOCATION  =&amp;gt; Nom de repertoire qui doit figurer dans le path de destination entre "$TARGETSID" et "common" &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ol"&gt;&lt;P&gt;      $DIRECTION =&amp;gt; inbound/outbound &lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;#&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jan 2009 18:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110358#M1185552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-29T18:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE   FUNCTION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110359#M1185553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution, i used a perl unix script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 19:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute-function/m-p/5110359#M1185553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-12T19:39:42Z</dc:date>
    </item>
  </channel>
</rss>

