<?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: about function :SXPG_CALL_SYSTEM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-function-sxpg-call-system/m-p/2511700#M568067</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 out the link below it might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fa/096c67543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fa/096c67543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/Articles/SAP_Mail_UNIX.asp" target="test_blank"&gt;http://www.thespot4sap.com/Articles/SAP_Mail_UNIX.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://naxos.bsz-bw.de/rekla/show.php?mode=source&amp;amp;eid=uni_0_10811073-1kap" target="test_blank"&gt;http://naxos.bsz-bw.de/rekla/show.php?mode=source&amp;amp;eid=uni_0_10811073-1kap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/sapfans/alex.htm" target="test_blank"&gt;http://www.sapfans.com/sapfans/alex.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;please reward points if the information is helpful to you&lt;/STRONG&gt;****************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 03:38:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T03:38:41Z</dc:date>
    <item>
      <title>about function :SXPG_CALL_SYSTEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-function-sxpg-call-system/m-p/2511699#M568066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,dear all:&lt;/P&gt;&lt;P&gt;     I want to call an external program of a windonws 2003 system using  function SXPG_CALL_SYSTEM,can you give me some advice,notes or give me some example about it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 03:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-function-sxpg-call-system/m-p/2511699#M568066</guid>
      <dc:creator>former_member866724</dc:creator>
      <dc:date>2007-07-11T03:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: about function :SXPG_CALL_SYSTEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-function-sxpg-call-system/m-p/2511700#M568067</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 out the link below it might help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fa/096c67543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fa/096c67543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/Articles/SAP_Mail_UNIX.asp" target="test_blank"&gt;http://www.thespot4sap.com/Articles/SAP_Mail_UNIX.asp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://naxos.bsz-bw.de/rekla/show.php?mode=source&amp;amp;eid=uni_0_10811073-1kap" target="test_blank"&gt;http://naxos.bsz-bw.de/rekla/show.php?mode=source&amp;amp;eid=uni_0_10811073-1kap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/sapfans/alex.htm" target="test_blank"&gt;http://www.sapfans.com/sapfans/alex.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;please reward points if the information is helpful to you&lt;/STRONG&gt;****************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 03:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-function-sxpg-call-system/m-p/2511700#M568067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T03:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: about function :SXPG_CALL_SYSTEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-function-sxpg-call-system/m-p/2511701#M568068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the documentation of the FM in SE37...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************&lt;/P&gt;&lt;P&gt;FU SXPG_CALL_SYSTEM&lt;/P&gt;&lt;P&gt;___________________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute an External Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SXPG_CALL_SYSTEM: Execute External Command (Express Method)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this function module, you can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Check a user's authorization to execute a command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Execute the command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To determine the system on which the command should be executed, the&lt;/P&gt;&lt;P&gt;function module uses by default the current host system and the current&lt;/P&gt;&lt;P&gt;operating system type of the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the function module is RFC-capable, you can use the RFC interface&lt;/P&gt;&lt;P&gt;(Remote Function Call Interface) to run the function module in a&lt;/P&gt;&lt;P&gt;different SAP application server. The external command is then&lt;/P&gt;&lt;P&gt;accordingly executed in the host system of the other SAP server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SXPG_CALL_SYSTEM uses the following rules to determine which variant of&lt;/P&gt;&lt;P&gt;a command is used for the execution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o If a command with the same operating system type as the one in the&lt;/P&gt;&lt;P&gt;sytem field SY-OPSYS exists, this definition is used for the&lt;/P&gt;&lt;P&gt;execution of the command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o If the first check fails, the syntax group for SY-OPSYS is determined. A syntax group is an SAP construct that groups operating&lt;/P&gt;&lt;P&gt;systems that use the same syntax for commands and filenames. If a&lt;/P&gt;&lt;P&gt;command whose operating system type matches the determined syntax&lt;/P&gt;&lt;P&gt;group, this definition of the command is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o If no matching definition is found for the syntax group, the&lt;/P&gt;&lt;P&gt;function module searches for a definition with the operating system&lt;/P&gt;&lt;P&gt;type ANYOS (executable in all supported operating systems). This&lt;/P&gt;&lt;P&gt;definition is then used, if found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Otherwise, the exception COMMAND_NOT_FOUND is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;se&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION SXPG_CALL_SYSTEM&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;COMMANDNAME = &amp;lt;SAP command name&amp;gt; DEFAULT '*'&lt;/P&gt;&lt;P&gt;ADDITIONAL_PARAMETERS = &amp;lt;Argument string&amp;gt; default &amp;lt;space&amp;gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;STATUS = &amp;lt;Exit status of command&amp;gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;EXEC_PROTOCOL = &amp;lt;Log&amp;gt; In structure BTCXPM. Can&lt;/P&gt;&lt;P&gt;contain STDOUT, STDERR&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NO_PERMISSION Command rejected by User exit auth.&lt;/P&gt;&lt;P&gt;check&lt;/P&gt;&lt;P&gt;COMMAND_NOT_FOUND Command not defined in SAP database&lt;/P&gt;&lt;P&gt;PARAMETERS_TOO_LONG Complete parameter string exceeds&lt;/P&gt;&lt;P&gt;128 characters&lt;/P&gt;&lt;P&gt;SECURITY_RISK Security check failed&lt;/P&gt;&lt;P&gt;WRONG_CHECK_CALL_INTERFACE Problem with function&lt;/P&gt;&lt;P&gt;module for additional security&lt;/P&gt;&lt;P&gt;check&lt;/P&gt;&lt;P&gt;PROGRAM_START_ERROR Error while starting program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;==============&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This command can be edited in Tx SM69 and executed in Tx SM49. Just have a look in one of these transactions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;look here : &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="789838"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 03:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-function-sxpg-call-system/m-p/2511701#M568068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T03:47:42Z</dc:date>
    </item>
  </channel>
</rss>

