<?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: GZIP and External command. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gzip-and-external-command/m-p/7785736#M1585912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi, kindly check the following  example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Command name : ZTEST
Operating system command : cmd /c
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;

v_dir_input = 'cmd /c c:\winzip\wzzip.exe -password  g:\test1.zip g:\test.pdf'.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
  EXPORTING
    commandname                   = c_extcom
    additional_parameters         = v_dir_input
    operatingsystem               = c_oper
  TABLES
    exec_protocol                 = t_result
  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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2011 09:28:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-04T09:28:58Z</dc:date>
    <item>
      <title>GZIP and External command.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gzip-and-external-command/m-p/7785735#M1585911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem might seem simple but I have tried for a couple of days now to make researches on that matter and it still doesn't work, no matter what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to make, with SM69, two external commands. One was using the command "mv" which is working very well and the other must be a "gzip" with a parameter "-c" and, in a module function, with the function "SXPG_COMMAND_EXECUTE_LONG", I have to send the path and the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So since I am not able to make it work in the module function I'm creating, I am working to make it work on SM69. So here what I have entered so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operating System Command: gzip&lt;/P&gt;&lt;P&gt;Parameters for operating sytem command: -c&lt;/P&gt;&lt;P&gt;Additional parameters: path/file.txt &amp;gt; newpath/file.txt.gz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though, the only thing I am receiving is no change at all and I'm receiving  u2039  È ®J as a message. The Exit code is at 1 and the exit status is E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know it means there is something wrong but all my researches lead me to do it that way so I'm not sure where I am going wrong and how to make it work appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am open to questions if you have any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gzip-and-external-command/m-p/7785735#M1585911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-31T12:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: GZIP and External command.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gzip-and-external-command/m-p/7785736#M1585912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi, kindly check the following  example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Command name : ZTEST
Operating system command : cmd /c
&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;

v_dir_input = 'cmd /c c:\winzip\wzzip.exe -password  g:\test1.zip g:\test.pdf'.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
  EXPORTING
    commandname                   = c_extcom
    additional_parameters         = v_dir_input
    operatingsystem               = c_oper
  TABLES
    exec_protocol                 = t_result
  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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 09:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gzip-and-external-command/m-p/7785736#M1585912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-04T09:28:58Z</dc:date>
    </item>
  </channel>
</rss>

