<?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: Wild card &amp;quot;*&amp;quot; usage in the authorization role in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403871#M1547136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is a custom Authority object, and i have debugged the code the value is being passed as entered on the screen to the Authority-check statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Should it matter if i do not have any activities defined in the Auth Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Nov 2010 14:50:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-12T14:50:07Z</dc:date>
    <item>
      <title>Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403867#M1547132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am an ABAP consultant(not a security pro, so please put up with any incorrect wordings), and working on a requirement where i need to check if the user has access to particular values entered on a screen field. For example if the text entered on the field is ABCDEFG&lt;STRONG&gt;US&lt;/STRONG&gt;, i want to check on the last two characters to see if user has access to enter values ending with US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i create an authorization object...etc, and in the role i enter &lt;STRONG&gt;US as the value,  but now when i run through the code using AUTHORITY-CHECK against the authority object. The authorization passes for all the values i enter, ex: ABCDEFG&lt;/STRONG&gt;UK* - this should have failed as i have maintained *US.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: but when i maintain the value as ???????US in the role, it works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the help and pointers, towards this would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403867#M1547132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T14:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403868#M1547133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can maintain it as *US which doesn't restrict on the length of the value. However, if you enter with ? marks, it takes the specific characters. What is the issue when you give *US?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403868#M1547133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403869#M1547134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i maintain *US in the role anything that ends with US must only pass the check, i expect(or atleast think) that when a user enters HHHHHHHUK, the authority check should fail as the last two characters are not US? But it doesn't, the authority check passes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403869#M1547134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403870#M1547135</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;Then the issue is with the code. Debug it to identify the root cause. *US should work as expected. Is the authorization object which you have used is a custom object?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403870#M1547135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T14:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403871#M1547136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is a custom Authority object, and i have debugged the code the value is being passed as entered on the screen to the Authority-check statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Should it matter if i do not have any activities defined in the Auth Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403871#M1547136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T14:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403872#M1547137</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 don't think it looks for the activity. Lets make a trail and error. Try including ACTVT with 03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 14:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403872#M1547137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T14:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403873#M1547138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="noformat"&gt;The authority-check is not the same as a search help, as the value is already known and the system needs to go looking for the first authorization field value which satifies it for that object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="noformat"&gt;Therefore, you can wildcard a prefix (e.g. US*) but you cannot mask a suffix (e.g. *US or *US*).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="noformat"&gt;As the authorization field starts with a *, the check is successfull and sy-subrc is set to 0. It does not matter what you maintain after the *.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 19:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403873#M1547138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T19:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403874#M1547139</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;as Julius wrote the authorization check is bit different and it won't work as you need. Everything after first occurrence of * is ignored. As a workaround you can always replace * with #. So you will maintain value like #US in your roles and just before authorization check you will  amend string. I would suggest to write a simple function module as a wrapper and use it for authorization check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 21:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403874#M1547139</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-11-12T21:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403875#M1547140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;So you will maintain value like #US in your roles and just before authorization check you will amend string.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ever tried this and used it in production?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the value sent to the AUTHORITY-CHECK is easy but very intrusive to the data in the program which might be used else where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the value at runtime which the AUTHORITY-CHECK expects to find is a different ball game (also in performance).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done some experimental stuff with this in sandboxes using STATICS in a wrapper for fixed lengths but cannot recommend it at all. I cannot see it ever flying in an AUTHORITY-CHECK statement construct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also completely unauditable to any authorization analysis tool...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hang on a second... if SPRO can do this then we can as well --&amp;gt; I think we have a winner here!  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 21:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403875#M1547140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-12T21:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403876#M1547141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I haven't. It was just an idea and I didn't think too much about it. I agree that it's not compatible with any tool which is big disadvantage. I though about FM which would take value, copy it into local variable and perform some changes such as replacing * with # and then calling standard authorization object. But it has also some limitations. For example if you maintain #US and #AUS then you can just simple check for #S because authorization check will fail. Overall, workaround with too many disadvantages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I doubt that value pre-processing have any measurable impact on performance. Everything is memory and usually, DB is bottle neck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 02:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403876#M1547141</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-11-13T02:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wild card "*" usage in the authorization role</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403877#M1547142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or just use custom table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maintain users and values they are authorized to.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not good idea............ just my 2 cents &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 12:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wild-card-quot-quot-usage-in-the-authorization-role/m-p/7403877#M1547142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T12:34:09Z</dc:date>
    </item>
  </channel>
</rss>

