<?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: to execute from ABAP code an external Unix program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-execute-from-abap-code-an-external-unix-program/m-p/3426541#M822864</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;&lt;/P&gt;&lt;P&gt;There are different ways to this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) OPEN DATASET &amp;lt;file&amp;gt; FOR OUTPUT 'unix command' &lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;file&amp;gt; &lt;/P&gt;&lt;P&gt;This command executes the unix command and writes the output into &amp;lt;file&amp;gt; &lt;/P&gt;&lt;P&gt;Look into OSS Note 9391. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) or try the following program but unfortunately the command CALL SYSTEM is &lt;/P&gt;&lt;P&gt;not supported by SAP. If you are on R/3 2.1 - 2.2x you can get some idea's from the program SAPMSOS0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZUNIXCOM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: U_COMMAND(200). &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table for system messages &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF RT OCCURS 100 , &lt;/P&gt;&lt;P&gt;LINE(100) , &lt;/P&gt;&lt;P&gt;END OF RT . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'unix command' to U_COMMAND . &lt;/P&gt;&lt;P&gt;REFRESH RT. &lt;/P&gt;&lt;P&gt;CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND &lt;/P&gt;&lt;P&gt;ID 'TAB' FIELD RT-&lt;STRONG&gt;SYS&lt;/STRONG&gt; . &lt;/P&gt;&lt;P&gt;LOOP AT RT. &lt;/P&gt;&lt;P&gt;WRITE : / RT-LINE . &lt;/P&gt;&lt;P&gt;ENDLOOP.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if found helpfull..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chandra Sekhar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Feb 2008 09:00:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-24T09:00:29Z</dc:date>
    <item>
      <title>to execute from ABAP code an external Unix program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-execute-from-abap-code-an-external-unix-program/m-p/3426540#M822863</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 would like to know how to execute from ABAP code an external Unix program and check for a return code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 07:08:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-execute-from-abap-code-an-external-unix-program/m-p/3426540#M822863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T07:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: to execute from ABAP code an external Unix program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/to-execute-from-abap-code-an-external-unix-program/m-p/3426541#M822864</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;&lt;/P&gt;&lt;P&gt;There are different ways to this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) OPEN DATASET &amp;lt;file&amp;gt; FOR OUTPUT 'unix command' &lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;file&amp;gt; &lt;/P&gt;&lt;P&gt;This command executes the unix command and writes the output into &amp;lt;file&amp;gt; &lt;/P&gt;&lt;P&gt;Look into OSS Note 9391. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) or try the following program but unfortunately the command CALL SYSTEM is &lt;/P&gt;&lt;P&gt;not supported by SAP. If you are on R/3 2.1 - 2.2x you can get some idea's from the program SAPMSOS0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZUNIXCOM . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: U_COMMAND(200). &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table for system messages &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF RT OCCURS 100 , &lt;/P&gt;&lt;P&gt;LINE(100) , &lt;/P&gt;&lt;P&gt;END OF RT . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'unix command' to U_COMMAND . &lt;/P&gt;&lt;P&gt;REFRESH RT. &lt;/P&gt;&lt;P&gt;CALL 'SYSTEM' ID 'COMMAND' FIELD U_COMMAND &lt;/P&gt;&lt;P&gt;ID 'TAB' FIELD RT-&lt;STRONG&gt;SYS&lt;/STRONG&gt; . &lt;/P&gt;&lt;P&gt;LOOP AT RT. &lt;/P&gt;&lt;P&gt;WRITE : / RT-LINE . &lt;/P&gt;&lt;P&gt;ENDLOOP.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward Points if found helpfull..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cheers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Chandra Sekhar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2008 09:00:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/to-execute-from-abap-code-an-external-unix-program/m-p/3426541#M822864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-24T09:00:29Z</dc:date>
    </item>
  </channel>
</rss>

