<?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: authorisation checks in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348693#M1231715</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;Refer below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7091767"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2009 05:59:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-06T05:59:30Z</dc:date>
    <item>
      <title>authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348690#M1231712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello frnds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a a document number and listbox on selection screen. There are 5 vales in listbox ( create, save, cancel, park, post), my program works according to the vale selected in listbox.&lt;/P&gt;&lt;P&gt;Now i have to add authorisation check in it, means if some user does not have the role to cancel/create it then it shuld give the message ' you are not authorised to cancel/create it' and for other values in listbox.&lt;/P&gt;&lt;P&gt;In other words i have to give authorisation according to roles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest how can i do it???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348690#M1231712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348691#M1231713</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;Use the AUthrization object..&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'S_TCODE' ID 'TCD' FIELD 'ZPPUTR05'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348691#M1231713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348692#M1231714</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 following actions are subject to authorization checks that are performed before the start of a program or table maintenance and which the SAP applications cannot avoid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Starting SAP transactions (authorization object S_TCODE)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;starting reports (authorization object S_PROGRAM)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling RFC function modules (authorization object S_RFC)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Table maintenance with generic tools (S_TABU_DIS)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The authorization objects S_TCODE, S_PROGRAM, S_RFC, and S_TABU_DIS are standard SAP provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: wa_tstc type tstc.
parameters: p_tcode type tcode.
authority-check object 'Z_TCODE'
id 'ACTVT' field '03' " read access
id 'ZTCODE' field p_tcode. " actual value
if sy-subrc eq 0. " check authorization
* fetch record
select single *
from tstc
into wa_tstc
where tcode eq p_tcode.
write:/ wa_tstc-tcode,
wa_tstc-pgmna,
wa_tstc-dypno,
wa_tstc-menue,
wa_tstc-cinfo,
wa_tstc-arbgb.
else.
* bad authorization
write:/ 'Bad Authorization'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348692#M1231714</guid>
      <dc:creator>former_member632729</dc:creator>
      <dc:date>2009-03-06T05:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348693#M1231715</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;Refer below link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7091767"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 05:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348693#M1231715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T05:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348694#M1231716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can you please che this link it's having same requirement&lt;/P&gt;&lt;P&gt;it would be helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6930575"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Durga.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 06:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348694#M1231716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T06:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348695#M1231717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello dear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user would be having access to the Transaction but that would be specific to values in listbox.&lt;/P&gt;&lt;P&gt;values in listbox are:&lt;/P&gt;&lt;P&gt;created, save, cancelled, park and post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all users will not be having authorisation to created, save, cancelled, park and post. the document number.&lt;/P&gt;&lt;P&gt;i need to check authorisation not per transation wise but according to vaules in listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 06:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348695#M1231717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T06:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348696#M1231718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   Just see hoe we are doing authority check for company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONSTANTS : l_c_object TYPE char10 VALUE 'F_BKPF_BUK',&lt;/P&gt;&lt;P&gt;                      l_c_actvt_03 TYPE char2 VALUE '03'.&lt;/P&gt;&lt;P&gt;IF NOT s_bukrs  IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT bukrs&lt;/P&gt;&lt;P&gt;     FROM t001&lt;/P&gt;&lt;P&gt;     INTO TABLE l_i_t001&lt;/P&gt;&lt;P&gt;     WHERE bukrs IN s_bukrs.&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      LOOP AT l_i_t001 INTO l_wa_bukrs.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Authorization Check&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        AUTHORITY-CHECK OBJECT l_c_object&lt;/P&gt;&lt;P&gt;           ID 'BUKRS' FIELD l_wa_bukrs-bukrs&lt;/P&gt;&lt;P&gt;           ID 'ACTVT' FIELD l_c_actvt_03.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Authorization Fail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          MESSAGE i085 WITH l_wa_bukrs. "Authorization failed for Company Code &amp;amp;&lt;/P&gt;&lt;P&gt;          LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;        ENDIF. "sy-subrc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    ENDIF.    "sy-subrc&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; Like this you can implement  authority check in your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asit Purbey.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 06:10:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348696#M1231718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T06:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348697#M1231719</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;&lt;/P&gt;&lt;P&gt;check below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/authorization_checks.html" target="test_blank"&gt;http://www.sapmaterial.com/authorization_checks.html&lt;/A&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;Regards,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 06:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348697#M1231719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T06:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: authorisation checks</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348698#M1231720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anjali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will not have standard authorization object for your custom requireement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can achive your requirement by creating a Z table which stores a user and related operation he can do like create/; save/...etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can add this check in your program to check the table entry and accordingly restirct user for processing the transaction else flag error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 06:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorisation-checks/m-p/5348698#M1231720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T06:19:26Z</dc:date>
    </item>
  </channel>
</rss>

