<?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: SXPG_COMMAND_EXECUTE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899115#M935726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the final status of the execution of the external command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the include RSXPGDEF is called in your program, there are the following possible values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value 'O': The external command was started and successfully run.&lt;/P&gt;&lt;P&gt;Value 'F': Error; the external command was not executed.&lt;/P&gt;&lt;P&gt;Value 'E': Error, the external command was terminated with an error.&lt;/P&gt;&lt;P&gt;Value 'S': The external command was terminated due to an operating system message.&lt;/P&gt;&lt;P&gt;Value 'C': The external command was terminated in an unknown way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not use RSXPGDEF, only the following values can be delivered back:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value 'O': The external command was started and successfully run.&lt;/P&gt;&lt;P&gt;Value 'E': Error, the external command was not executed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my experience with this FM:&lt;/P&gt;&lt;P&gt;A command executed with using this FM is successful when &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATUS = 'O'  ( letter O as 'O'range)&lt;/P&gt;&lt;P&gt;EXITCODE = 0 ( zero)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other exitcodes which may returned have different and can vary from 0 to 255. But success is achieved means command executed successfully if EXITCODE is 0 (zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jun 2008 01:54:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-04T01:54:27Z</dc:date>
    <item>
      <title>SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899112#M935723</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;I'm activating this FM with a decryption exe file and I keep on getting subrc = 0 but the process is not being activated.&lt;/P&gt;&lt;P&gt;The export parameters are:&lt;/P&gt;&lt;P&gt;status = E&lt;/P&gt;&lt;P&gt;exitcode = 2&lt;/P&gt;&lt;P&gt;What is that mean ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 09:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899112#M935723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T09:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899113#M935724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;SXPG_COMMAND_EXECUTE: Check Authorization for and Execute an External Command &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this function module to check a useru2019s authorization to run a particular external command and then carry out the command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like SXPG_COMMAND_CHECK, this function module checks that the user is authorized to execute the command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the arguments specified in ADDITIONAL_PARAMETERS&lt;/P&gt;&lt;P&gt;on the target host system, as identified by OPERATINGSYSTEM and TARGETSYSTEM.&lt;/P&gt;&lt;P&gt;If any R/3 profile parameter has been inserted in the portion of the command stored in the database, then the value of this parameter is substituted into the command. If an R/3 application server is active on the target system (TARGETSYSTEM), then the profile parameter values are read from the profile in effect on that system. No parameter substitution is made in ADDITIONAL_PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After substitution, the command is checked for the presence of "dangerous" characters, such as the semicolon ; on UNIX systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an additional "safety" function module has been specified in the definition of the command, then this is called as well in the course of processing. This function module can prevent execution of the command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the authorization checks complete successfully, then the command is run on the target host system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above STATUS:&lt;/P&gt;&lt;P&gt;Returns the final status of the execution of the external command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Value u2018Ou2019: The external command was started and ran to end successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;· Value u2018Eu2019: An error occurred; the external command was not run successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION u2018SXPG_COMMAND_EXECUTEu2019&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;COMMANDNAME =  " 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 R/3 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 &lt;/P&gt;&lt;P&gt;" security check &lt;/P&gt;&lt;P&gt;PROGRAM_START_ERROR " Error while starting program &lt;/P&gt;&lt;P&gt;PROGRAM_TERMINATION_ERROR "Error while requesting final &lt;/P&gt;&lt;P&gt;" status of program &lt;/P&gt;&lt;P&gt;X_ERROR " Reserved &lt;/P&gt;&lt;P&gt;PARAMETER_EXPECTED " Required parameter not specified &lt;/P&gt;&lt;P&gt;TOO_MANY_PARAMETERS " User arguments not allowed by &lt;/P&gt;&lt;P&gt;" supplied in call &lt;/P&gt;&lt;P&gt;ILLEGAL_COMMAND " Command not legitimately defined &lt;/P&gt;&lt;P&gt;WRONG_ASYNCHRONOUS_PARAMETERS " Reserved for future &lt;/P&gt;&lt;P&gt;" use &lt;/P&gt;&lt;P&gt;CAT_ENQ_TBTCO_ENTRY " Reserved for future use &lt;/P&gt;&lt;P&gt;JOBCOUNT_GENERATION_ERROR " Reserved for future use&lt;/P&gt;&lt;P&gt;OTHERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/fa/0971fb543b11d1898e0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/fa/0971fb543b11d1898e0000e8322d00/content.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 09:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899113#M935724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T09:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899114#M935725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The check FM works fine and returns OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this an authorization problem for sure ? Is this basis issue ? Maybe missing parameter ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In sm69 it works fine with the same parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's urgent, please help ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Rebeka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 21:54:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899114#M935725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T21:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_COMMAND_EXECUTE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899115#M935726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns the final status of the execution of the external command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the include RSXPGDEF is called in your program, there are the following possible values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value 'O': The external command was started and successfully run.&lt;/P&gt;&lt;P&gt;Value 'F': Error; the external command was not executed.&lt;/P&gt;&lt;P&gt;Value 'E': Error, the external command was terminated with an error.&lt;/P&gt;&lt;P&gt;Value 'S': The external command was terminated due to an operating system message.&lt;/P&gt;&lt;P&gt;Value 'C': The external command was terminated in an unknown way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not use RSXPGDEF, only the following values can be delivered back:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Value 'O': The external command was started and successfully run.&lt;/P&gt;&lt;P&gt;Value 'E': Error, the external command was not executed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my experience with this FM:&lt;/P&gt;&lt;P&gt;A command executed with using this FM is successful when &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATUS = 'O'  ( letter O as 'O'range)&lt;/P&gt;&lt;P&gt;EXITCODE = 0 ( zero)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other exitcodes which may returned have different and can vary from 0 to 255. But success is achieved means command executed successfully if EXITCODE is 0 (zero).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 01:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-command-execute/m-p/3899115#M935726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-04T01:54:27Z</dc:date>
    </item>
  </channel>
</rss>

