<?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_CALL_SYSTEM execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-call-system-execution/m-p/7008087#M1496228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function module [SXPG_CALL_SYSTEM|http://help.sap.com/saphelp_nw70/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/frameset.htm] should already execute an authorization check. When you mention a return code 0 I'm assuming that you are talking about SY-SUBRC in ABAP (not OS level) and that you are not doing something obvious like setting all exceptions to 0 (e.g. OTHERS = 0)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's function module [SXPG_COMMAND_CHECK|http://help.sap.com/saphelp_nw70/helpdata/en/fa/097208543b11d1898e0000e8322d00/frameset.htm], which can be used just for carrying out the authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect your normal user doesn't have authorization for SM49, but I'd give this a try and see what happens. Also, you might want to check the system log (SM21) and the trace file &lt;EM&gt;dev_cp&lt;/EM&gt; (ST11, depending on your patch level you might need to activate trace via setting the TRACE parameter) and see if that gives you anything useful. In addition you could of course also try an authorization trace (ST01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's pretty much all I can think of right now. Maybe somebody else has some better ideas or you have some further details after doing some more checks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jun 2010 09:20:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-09T09:20:15Z</dc:date>
    <item>
      <title>SXPG_CALL_SYSTEM execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-call-system-execution/m-p/7008086#M1496227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help with SXPG_CALL_SYSTEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use it to in combination with unix commands TAR en GZIP.&lt;/P&gt;&lt;P&gt;Everything works when i'm logged in as an admin user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the commands don't do a thing when i'm logged in as a normal user.&lt;/P&gt;&lt;P&gt;The return code of the function is 0, so it  means the command is executed. But it hasn't done anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to get the 'no permission' exception (or any other) to verify that the commands aren't executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to check if the user can execute this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;P&gt;Merijn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 08:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-call-system-execution/m-p/7008086#M1496227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T08:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_CALL_SYSTEM execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-call-system-execution/m-p/7008087#M1496228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function module [SXPG_CALL_SYSTEM|http://help.sap.com/saphelp_nw70/helpdata/en/fa/0971ee543b11d1898e0000e8322d00/frameset.htm] should already execute an authorization check. When you mention a return code 0 I'm assuming that you are talking about SY-SUBRC in ABAP (not OS level) and that you are not doing something obvious like setting all exceptions to 0 (e.g. OTHERS = 0)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's function module [SXPG_COMMAND_CHECK|http://help.sap.com/saphelp_nw70/helpdata/en/fa/097208543b11d1898e0000e8322d00/frameset.htm], which can be used just for carrying out the authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect your normal user doesn't have authorization for SM49, but I'd give this a try and see what happens. Also, you might want to check the system log (SM21) and the trace file &lt;EM&gt;dev_cp&lt;/EM&gt; (ST11, depending on your patch level you might need to activate trace via setting the TRACE parameter) and see if that gives you anything useful. In addition you could of course also try an authorization trace (ST01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's pretty much all I can think of right now. Maybe somebody else has some better ideas or you have some further details after doing some more checks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 09:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-call-system-execution/m-p/7008087#M1496228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T09:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: SXPG_CALL_SYSTEM execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-call-system-execution/m-p/7008088#M1496229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my question really is why the function executes, gives sy-subrc = 0, but didn't do a thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the function seems to be executed perfectly, but nothing happened...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jun 2010 09:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sxpg-call-system-execution/m-p/7008088#M1496229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-09T09:38:15Z</dc:date>
    </item>
  </channel>
</rss>

