<?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: PF Status in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076610#M1505375</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 the Start of Selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from agr_users (agr roles table is there)  into wa where (role = your role that you want to check) where( username) = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subr ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message type 'I' with text-001 ( Where text-001) is " you dont have the authorisation to run this Program ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jun 2010 10:58:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-28T10:58:29Z</dc:date>
    <item>
      <title>PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076608#M1505373</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;My report contains one "Reprocess IDOC" Button.But this functionality should be restricted to some user.Only some users should be able to reprocess the idoc those having perticular role.So how should i use this restriction in my report or is there any authorization related change?Please help me out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 10:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076608#M1505373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076609#M1505374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    In INITIALIZATION event, add a check for the authorization,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AUTHORITY-CHECK OBJECT 'ZOBJECT''
                          ID 'ACTVT' FIELD '02'
                          ID 'AUTH' FIELD sy-uname.

  IF sy-subrc NE 0.
    MESSAGE e999 WITH text-010.
    EXIT.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click F1 on AUTHORITY-CHECK for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bala krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 10:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076609#M1505374</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2010-06-28T10:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076610#M1505375</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 the Start of Selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from agr_users (agr roles table is there)  into wa where (role = your role that you want to check) where( username) = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If sy-subr ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message type 'I' with text-001 ( Where text-001) is " you dont have the authorisation to run this Program ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 10:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076610#M1505375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: PF Status</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076611#M1505376</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;the suggestion of creating your own authorisation object is a good one, but I think you only want the button excluded from your PF-STATUS when the user has no autotisation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do so check whether the user has authorisation. If not, add the function to the exlusion table and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'ZZZZ' EXCLUDING lt_excude_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 10:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status/m-p/7076611#M1505376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-28T10:58:39Z</dc:date>
    </item>
  </channel>
</rss>

