<?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: execute unix script from abap. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187549#M759164</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;  Can we call a shell script to do operations outside SAP system using SM69 transaction..&lt;/P&gt;&lt;P&gt; I have to archive files out side the SAP system from one folder to another which are mapped to APP server using NFS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chaitu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Aug 2010 11:08:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-03T11:08:10Z</dc:date>
    <item>
      <title>execute unix script from abap.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187545#M759160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;I have a abap report which generate  a text file in&amp;lt;b&amp;gt; /usr/tmp/&amp;lt;/b&amp;gt;  directory . Now i have a unix script   which encript the text file.  I want to this from abap report. How I can do this . and in which path  I should keep this unix script   Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 11:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187545#M759160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: execute unix script from abap.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187546#M759161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.  You should work with your basis/unix team to determine the path of where to store the UNIX script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  Use transaction SM69 to create an external command that points to your UNIX Script.  (If you don't have access, your basis team may have to help with this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.  In your abap program, use function module SXPG_COMMAND_EXECUTE to call the command you cretaed in SM69.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 12:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187546#M759161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T12:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: execute unix script from abap.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187547#M759162</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; try the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_sfile(60) lower case&lt;/P&gt;&lt;P&gt;"File to be moved&lt;/P&gt;&lt;P&gt;"Eg : /home/in/SFILE1.txt&lt;/P&gt;&lt;P&gt;p_dfile(60) lower case.&lt;/P&gt;&lt;P&gt;"File's Destination&lt;/P&gt;&lt;P&gt;"Eg: /home/archive/SFILE1.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : t_btcxpm&lt;/P&gt;&lt;P&gt;like btcxpm occurs 0,&lt;/P&gt;&lt;P&gt;p_addparam &lt;/P&gt;&lt;P&gt;like sxpgcolist-parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate &lt;/P&gt;&lt;P&gt;'/home/ABAP/scripts/Archive_file.sh'&lt;/P&gt;&lt;P&gt;p_sfile&lt;/P&gt;&lt;P&gt;p_dfile&lt;/P&gt;&lt;P&gt;into p_addparam separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh t_btcxpm. clear t_btcxpm.&lt;/P&gt;&lt;P&gt;call function 'SXPG_CALL_SYSTEM'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;commandname = 'ZSHELL'&lt;/P&gt;&lt;P&gt;additional_parameters = p_addparam&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;exec_protocol = t_btcxpm&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 = 0.&lt;/P&gt;&lt;P&gt;write : / &lt;/P&gt;&lt;P&gt;'File',p_sfile,'moved to',p_dfile.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write : / 'Error Occured'.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if found helpful&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chandra Sekhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 12:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187547#M759162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T12:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: execute unix script from abap.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187548#M759163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I   have maintain the unix script  in SM69 .&lt;/P&gt;&lt;P&gt;  type = customer&lt;/P&gt;&lt;P&gt; command name = ZENC&lt;/P&gt;&lt;P&gt;  operating system = UNIX&lt;/P&gt;&lt;P&gt;  external program = enc.sh&lt;/P&gt;&lt;P&gt;  parameters        = eft.txt eftdo eftdo&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in abap script  I am using function SXPG_COMMAND_EXECUTE.&lt;/P&gt;&lt;P&gt;my unix script enc.sh  contains the following lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo "hello"&lt;/P&gt;&lt;P&gt;echo $1 $2 $3&lt;/P&gt;&lt;P&gt;java  -jar Encryptor.jar $1 $2 $3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now while runing the abap program  is  throwing error message.&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;eft.txt eftdo eftdc&lt;/P&gt;&lt;P&gt;The jar file is not found: Encryptor.jar &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;Mys basis person is not sure in which path we should kept this java utility .&lt;/P&gt;&lt;P&gt;At present I have placed my &amp;lt;b&amp;gt;enc.sh and encriptor.jar &amp;lt;/b&amp;gt; utility  in usr/tmp/ directory.&lt;/P&gt;&lt;P&gt;Please suggest ..&lt;/P&gt;&lt;P&gt;Regasrds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 05:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187548#M759163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T05:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: execute unix script from abap.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187549#M759164</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;  Can we call a shell script to do operations outside SAP system using SM69 transaction..&lt;/P&gt;&lt;P&gt; I have to archive files out side the SAP system from one folder to another which are mapped to APP server using NFS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chaitu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Aug 2010 11:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-unix-script-from-abap/m-p/3187549#M759164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-03T11:08:10Z</dc:date>
    </item>
  </channel>
</rss>

