<?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: Authorization Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115440#M739764</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;Try the following code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*************************AUHTORITY CHECK IMPLEMENTED************************
INITIALIZATION.

  AUTHORITY-CHECK OBJECT 'ZAOBJECT'
            ID 'TCODE' FIELD 'ZTCODE'
            ID 'ACTVT' FIELD '16'.
  IF sy-subrc NE 0.
    MESSAGE 'NO authorisation found' TYPE 'E' .
  ENDIF.

*************************AUHTORITY CHECK IMPLEMENTED ***********************

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before add this part in your code cretaed authority object'ZAOBJECT'&lt;/P&gt;&lt;P&gt;Where add the activity field 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debjani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2007 11:22:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-04T11:22:55Z</dc:date>
    <item>
      <title>Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115438#M739762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      My requirement is as such that a ZFB03 transaction should take me to Autual FB03 for Authorized users.A simple call transaction 'FB03'  in the program of transaction ZFB03,doesn't do standard Authorization checks of the FB03.Is there any way to perform Standard Authorization Checks in this Z program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 11:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115438#M739762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T11:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115439#M739763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.  Debug, or look at the code of FB03, and see what authorisation checks it makes.  Then put these into your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also check S_TCODE for FB03 access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( I'm assuming you know how to use AUTHORITY-CHECK ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 11:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115439#M739763</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-04T11:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115440#M739764</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;Try the following code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*************************AUHTORITY CHECK IMPLEMENTED************************
INITIALIZATION.

  AUTHORITY-CHECK OBJECT 'ZAOBJECT'
            ID 'TCODE' FIELD 'ZTCODE'
            ID 'ACTVT' FIELD '16'.
  IF sy-subrc NE 0.
    MESSAGE 'NO authorisation found' TYPE 'E' .
  ENDIF.

*************************AUHTORITY CHECK IMPLEMENTED ***********************

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before add this part in your code cretaed authority object'ZAOBJECT'&lt;/P&gt;&lt;P&gt;Where add the activity field 16.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Debjani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 11:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115440#M739764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T11:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115441#M739765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;       Will this FM 'AUTHORITY_CHECK_TCODE'  will be helpful before &lt;/P&gt;&lt;P&gt;       Call Transaction 'FB03'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 12:16:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115441#M739765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T12:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115442#M739766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.  In fact it is advised.  From the documenation of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;This function module checks all authorizations as at the start of a transaction, that is, the authorization object S_TCODE and authorization objects that were stored when defining the transaction using SE93. It should be called before a CALL TRANSACTION....&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 12:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115442#M739766</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2007-12-04T12:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115443#M739767</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_check_auth_iwerk .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--Constant for t code, no tcode hence value = '&lt;/STRONG&gt;' (all)&lt;/P&gt;&lt;P&gt;  CONSTANTS: lc_tcd LIKE tstc-tcode VALUE '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Table for all the plants in selection screen. This&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; table will be used for authority check.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: BEGIN OF li_plant OCCURS 0,&lt;/P&gt;&lt;P&gt;          iwerk LIKE t001w-werks,&lt;/P&gt;&lt;P&gt;        END OF li_plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Select query to pick plant from table t001w&lt;/P&gt;&lt;P&gt;  SELECT werks                                "Plant&lt;/P&gt;&lt;P&gt;         INTO TABLE li_plant&lt;/P&gt;&lt;P&gt;         FROM t001w&lt;/P&gt;&lt;P&gt;         WHERE werks IN s_iwerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT li_plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT 'I_SWERK'&lt;/P&gt;&lt;P&gt;             ID 'TCD'   FIELD lc_tcd&lt;/P&gt;&lt;P&gt;             ID 'SWERK' FIELD li_plant-iwerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Check SUBRC&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;*--No Authorization for Plant&lt;/P&gt;&lt;P&gt;      MESSAGE e016 WITH li_plant-iwerk.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.                   "loop at li_plant&lt;/P&gt;&lt;P&gt;ENDFORM.                     "sub_check_auth_iwerk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 12:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check/m-p/3115443#M739767</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-12-04T12:24:49Z</dc:date>
    </item>
  </channel>
</rss>

