<?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 check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/4216215#M1007448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     It already helped me a bit, but can you guys tell me, if i pass any variable instead of the value will it work or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'XP_OM'&lt;/P&gt;&lt;P&gt;         ID 'VKORG' FIELD LV_VKORG&lt;/P&gt;&lt;P&gt;         ID 'ACTVT' FIELD '06'.&lt;/P&gt;&lt;P&gt;         IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;         perform AUTHORITY_ERROR_MSG.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code, i have one variable LV_VKORG which is having the value GR01, so will this code work or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2008 07:29:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-14T07:29:25Z</dc:date>
    <item>
      <title>Authority check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/4216213#M1007446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;             I am creating one authority object(YXC_OM) in a T-code , the authority should be users from sales org 'GR01' is only able to use the T-Code also i have to restrict the Activity to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create, Change and Display, Execute, Maintain, Confirm, Save, Delete, update , Enter, cancel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently i am using the following code. But it is giving me a dump, can somebody tell me what wrong thing i am doing?&lt;/P&gt;&lt;P&gt;I have never worked with authority object before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'YXC_OM'&lt;/P&gt;&lt;P&gt;       ID 'VKORG' FIELD 'GR01'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '01'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '02'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '03'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '06'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '16'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '21'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '31'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '32'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD '76'&lt;/P&gt;&lt;P&gt;       ID 'ACTVT' FIELD 'G7'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 05:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/4216213#M1007446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T05:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Authority check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/4216214#M1007447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At a time activity field can take only one value But u have specified multiple one at the same time thats why it is giving dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'YXC_OM'&lt;/P&gt;&lt;P&gt;ID 'VKORG' FIELD 'GR01'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Create, Change and Display, Execute, Maintain, Confirm, Save, Delete, update , Enter, cancel means all the access for the activity then u can put '*' for ACTVT. Like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'YXC_OM'&lt;/P&gt;&lt;P&gt;ID 'VKORG' FIELD 'GR01'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise u have to check one by one..like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'YXC_OM'&lt;/P&gt;&lt;P&gt;ID 'VKORG' FIELD 'GR01'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'YXC_OM'&lt;/P&gt;&lt;P&gt;ID 'VKORG' FIELD 'GR01'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;................&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'YXC_OM'&lt;/P&gt;&lt;P&gt;ID 'VKORG' FIELD 'GR01'&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD 'G7'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 06:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/4216214#M1007447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T06:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Authority check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/4216215#M1007448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     It already helped me a bit, but can you guys tell me, if i pass any variable instead of the value will it work or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'XP_OM'&lt;/P&gt;&lt;P&gt;         ID 'VKORG' FIELD LV_VKORG&lt;/P&gt;&lt;P&gt;         ID 'ACTVT' FIELD '06'.&lt;/P&gt;&lt;P&gt;         IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;         perform AUTHORITY_ERROR_MSG.&lt;/P&gt;&lt;P&gt;         ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code, i have one variable LV_VKORG which is having the value GR01, so will this code work or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2008 07:29:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/4216215#M1007448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-14T07:29:25Z</dc:date>
    </item>
  </channel>
</rss>

