<?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: authority object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818023#M1782199</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of some kind of validation, usually the best practice is to create configuration table along with a simple program for filling the entries. Then when you need to validate something in any of your programs you can just declare you configuration table, e.g. :&lt;/P&gt;&lt;P&gt;TABLES: zconf1.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and then do an 'empty' select:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SELECT SINGLE * FROM zconf1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WHERE some condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;IF sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entry exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entry doesn't exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Vladimir&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 21:41:50 GMT</pubDate>
    <dc:creator>vladimir_erakovic</dc:creator>
    <dc:date>2013-10-28T21:41:50Z</dc:date>
    <item>
      <title>authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818020#M1782196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, &lt;/P&gt;&lt;P&gt;I need to do a validation of some users (like this)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF SY-UNAME = 'ES1234' AND SY-UNAME = 'FR2345' AND [......] " lots of users&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ADD 1 TO CONT.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; MESSATE S34(ZHR) TYPE 'I'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The quantity of users are a lot to write &lt;EM&gt;'IF SY-UNAME = ''&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I don't know if I can use a rol or something like this.&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Ana.&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1904/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 17:58:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818020#M1782196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T17:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818021#M1782197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think you should hard code the user ids. Can they be put into a configuration type of table and retrieved in the program and loaded into a range table?&amp;nbsp; Then you can use "If sy-uname in r_uname....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:09:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818021#M1782197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T18:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818022#M1782198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Never hard code checks on user IDs. Please explain more about the rationale for this check, otherwise it is not possible to recommend a good solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 21:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818022#M1782198</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2013-10-28T21:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818023#M1782199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of some kind of validation, usually the best practice is to create configuration table along with a simple program for filling the entries. Then when you need to validate something in any of your programs you can just declare you configuration table, e.g. :&lt;/P&gt;&lt;P&gt;TABLES: zconf1.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and then do an 'empty' select:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SELECT SINGLE * FROM zconf1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WHERE some condition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;IF sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entry exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Entry doesn't exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Vladimir&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 21:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818023#M1782199</guid>
      <dc:creator>vladimir_erakovic</dc:creator>
      <dc:date>2013-10-28T21:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818024#M1782200</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;In this case, I recommend you use user group(Tab Groups in SU01).&lt;/P&gt;&lt;P&gt;Groups can be maintained in SUGR.&lt;/P&gt;&lt;P&gt;The user's group information is stored in table USGRP_USER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 02:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818024#M1782200</guid>
      <dc:creator>JimRadiantExplorer</dc:creator>
      <dc:date>2013-10-29T02:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818025#M1782201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all the user fall into a single role, then you can use authorization object which can be assigned to the ROLE.. And in your program you can check that authorization object's value and write your code accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c?QuickLink=index&amp;amp;overridelayout=true&amp;amp;5003637386464"&gt;http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c?QuickLink=index&amp;amp;overridelayout=true&amp;amp;5003637386464&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 05:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818025#M1782201</guid>
      <dc:creator>Ajit_K_Panda</dc:creator>
      <dc:date>2013-10-29T05:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818026#M1782202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the users in question are only technical users (developers and other geeks), who want to see some technical background of the program, I would recommend a log-point or even break-point with checkpoint ID. Users can subscribe to the checkpoint ID using transaction SAAB.Only when they activated the checkpoint for themselves, the data will be logged at the log-point, and only then the system will stop at a "break-point id ..." statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abencheckpoints.htm" title="http://help.sap.com/abapdocu_702/en/abencheckpoints.htm"&gt;http://help.sap.com/abapdocu_702/en/abencheckpoints.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 06:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818026#M1782202</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2013-10-29T06:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: authority object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818027#M1782203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ajit &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1925/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;. I have do it a new role with all users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I used the function module 'CRM_ROLES_OF_USER_GET' , in the report to validate the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CRM_ROLES_OF_USER_GET'&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USER_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = SY-UNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROLES_OF_USER&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = T_ROLES&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NO_ROLES_AVAILABLE = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OTHERS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Ana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 17:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-object/m-p/9818027#M1782203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-30T17:18:56Z</dc:date>
    </item>
  </channel>
</rss>

