<?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: How to run an OS command from ABAP? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372828#M1040503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Predefined command&lt;/P&gt;&lt;P&gt;- SM69 - Describe command (if not already) [Maintaining External Commands|http://help.sap.com/erp2005_ehp_03/helpdata/EN/c4/3a607b505211d189550000e829fbbd/frameset.htm]&lt;/P&gt;&lt;P&gt;- SM49 - Execute them [Executing External Command|http://help.sap.com/erp2005_ehp_03/helpdata/EN/c4/3a606e505211d189550000e829fbbd/frameset.htm] or Execute in program thru FM [SXPG_COMMAND_EXECUTE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=sxpg_command_execute&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]&lt;/P&gt;&lt;P&gt;Dynamic command&lt;/P&gt;&lt;P&gt;- SM49 or use FM [SXPG_CALL_SYSTEM|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=sxpg_call_system&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]&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, 21 Aug 2008 11:40:53 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2008-08-21T11:40:53Z</dc:date>
    <item>
      <title>How to run an OS command from ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372824#M1040499</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;is it possible to run an OS command from ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Olian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372824#M1040499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to run an OS command from ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372825#M1040500</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;Please check the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechies.com/execute-os-command-on-the-server/" target="test_blank"&gt;http://www.saptechies.com/execute-os-command-on-the-server/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372825#M1040500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to run an OS command from ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372826#M1040501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is possible to run an OS command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all create the external command in SM69 transaction and use function module SXPG_COMMAND_EXECUTE to execute the command programmatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Bobbala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372826#M1040501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to run an OS command from ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372827#M1040502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create External Command in SM69 .&lt;/P&gt;&lt;P&gt;you can call them using the SAP delivered FM  SXPG_COMMAND_EXECUTE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372827#M1040502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to run an OS command from ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372828#M1040503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Predefined command&lt;/P&gt;&lt;P&gt;- SM69 - Describe command (if not already) [Maintaining External Commands|http://help.sap.com/erp2005_ehp_03/helpdata/EN/c4/3a607b505211d189550000e829fbbd/frameset.htm]&lt;/P&gt;&lt;P&gt;- SM49 - Execute them [Executing External Command|http://help.sap.com/erp2005_ehp_03/helpdata/EN/c4/3a606e505211d189550000e829fbbd/frameset.htm] or Execute in program thru FM [SXPG_COMMAND_EXECUTE|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=sxpg_command_execute&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]&lt;/P&gt;&lt;P&gt;Dynamic command&lt;/P&gt;&lt;P&gt;- SM49 or use FM [SXPG_CALL_SYSTEM|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&amp;amp;query=sxpg_call_system&amp;amp;adv=false&amp;amp;sortby=cm_rnd_rankvalue]&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, 21 Aug 2008 11:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372828#M1040503</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-08-21T11:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to run an OS command from ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372829#M1040504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your OS is unix you can do this also ...&lt;/P&gt;&lt;P&gt;input your unix command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZUNIX line-size 400
                no standard page heading.
 
 
parameters : unixcom like   rlgrap-filename.   
 
 
data: begin of tabl occurs 500,
        line(400),
      end of tabl.
 
data: lines type i.
  
*----------------------------------------------------------------------
 
start-of-selection.
  refresh tabl.
 
  call 'SYSTEM' id 'COMMAND' field unixcom
                id 'TAB'     field tabl[].
 
 "if the files are different then you will some content in tabl
 "Loop the tabl and write the results.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372829#M1040504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run an OS command from ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372830#M1040505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to suggest my opinion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I think it is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible through a function module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SXPG_CALL_SYSTEM&lt;/STRONG&gt; - Run an External Command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggested Reference for know about passing the parameters to the function module as well as its details,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SAP HELP Library - Standard Reference for SXPG_CALL_SYSTEM:  Run an External Command (Express Method)|http://help.sap.com/saphelp_nw04/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SXPG_COMMAND_CHECK&lt;/STRONG&gt; - Check whether the user is authorized to execute the specified command on the target host system with the specified arguments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SXPG_COMMAND_EXECUTE&lt;/STRONG&gt; - Check a useru2019s authorization to use a command, as in &lt;STRONG&gt;SXPG_COMMAND_CHECK&lt;/STRONG&gt;.  If the authorization check is successful, then execute the command on the target host system.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggested Reference,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[SAP HELP Library - Standard Reference - Programming Techniques|http://help.sap.com/saphelp_nw04/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works out well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harsh Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Dave on Aug 21, 2008 5:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-run-an-os-command-from-abap/m-p/4372830#M1040505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:57:16Z</dc:date>
    </item>
  </channel>
</rss>

