<?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: Autharizations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575234#M860588</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;GO to tcode pfcg in that you may have maintained the role&lt;/P&gt;&lt;P&gt;add this transaction ZPP_001 only in user AB1 &amp;amp; AB2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  ZPP_002  for users AB3 &amp;#150; AB10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2008 10:16:55 GMT</pubDate>
    <dc:creator>dhruv_shah3</dc:creator>
    <dc:date>2008-03-27T10:16:55Z</dc:date>
    <item>
      <title>Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575233#M860587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have main program and I called another separate programs from them&lt;/P&gt;&lt;P&gt;Like follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mail Program with T Code ZPPAB&lt;/P&gt;&lt;P&gt;ZPP_Main&lt;/P&gt;&lt;P&gt;	Submit ZPP_001&lt;/P&gt;&lt;P&gt;	Submit ZPP_002&lt;/P&gt;&lt;P&gt;	Submit ZPP_003&lt;/P&gt;&lt;P&gt;Submit ZPP_004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another special program part in main program (its run with execute button)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is &lt;/P&gt;&lt;P&gt;I want to handle authorization for each program. Like&lt;/P&gt;&lt;P&gt; ZPP_001 program can run only user AB1 &amp;amp; AB2&lt;/P&gt;&lt;P&gt; ZPP_002 program can run only user AB3 &amp;#150; AB10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And can run that special part with another user group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I set authorization to achieve my target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please describe in detail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575233#M860587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T10:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575234#M860588</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;GO to tcode pfcg in that you may have maintained the role&lt;/P&gt;&lt;P&gt;add this transaction ZPP_001 only in user AB1 &amp;amp; AB2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and  ZPP_002  for users AB3 &amp;#150; AB10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575234#M860588</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-27T10:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575235#M860589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Dear I want to assigning auth to separate programs (functions)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:39:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575235#M860589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T10:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575236#M860590</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;So if you want to provide the authorizations in the program only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use the Authority check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 10:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575236#M860590</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-27T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575237#M860591</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;U can use the FM AUTHORITY_CHECK for this.&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575237#M860591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T11:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575238#M860592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please describe how can i use Authority Check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 11:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575238#M860592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575239#M860593</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;check the sample code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM AUTHORIZATION.

** AUTHORIZATION VERIFICATION
  SELECT * FROM T001 WHERE BUKRS IN SBUKRS.

    AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
                ID 'BUKRS' FIELD T001-BUKRS
                ID 'ACTVT' FIELD '03'.

    IF SY-SUBRC EQ 0.
      BUKRS-SIGN = 'I'.
      BUKRS-OPTION = 'EQ'.
      BUKRS-LOW = T001-BUKRS.
      APPEND BUKRS.
      CLEAR BUKRS.
    ELSE.
      AFLAG = 'X'.
    ENDIF.
  ENDSELECT.

  IF AFLAG = 'X'.
    MESSAGE I004(ZMSG) WITH 'Output will get strict to the'
          'Authorisation of Company Level'.
  ENDIF.

  IF BUKRS[] IS INITIAL.
    MESSAGE I004(ZMSG) WITH 'Company Code Authorization not found'.
    STOP.
  ENDIF.


ENDFORM.                    " authorization&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;~&lt;SUB&gt;Lakshmiraj&lt;/SUB&gt;~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 12:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575239#M860593</guid>
      <dc:creator>abapdeveloper20</dc:creator>
      <dc:date>2008-03-27T12:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575240#M860594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dear&lt;/P&gt;&lt;P&gt;but this is for table check isn't it?&lt;/P&gt;&lt;P&gt;how i use it for program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 12:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575240#M860594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575241#M860595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;check with this code for authorization.it may help u.&lt;/P&gt;&lt;P&gt;In general different users will be given different authorizations based on their role in the orgn.&lt;/P&gt;&lt;P&gt;We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.&lt;/P&gt;&lt;P&gt;USe SUIM and SU21 T codes for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means you have to allocate an authorization object in the definition of the transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;program an AUTHORITY-CHECK. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT &amp;lt;authorization object&amp;gt; &lt;/P&gt;&lt;P&gt;ID &amp;lt;authority field 1&amp;gt; FIELD &amp;lt;field value 1&amp;gt;. &lt;/P&gt;&lt;P&gt;ID &amp;lt;authority field 2&amp;gt; FIELD &amp;lt;field value 2&amp;gt;. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;ID &amp;lt;authority-field n&amp;gt; FIELD &amp;lt;field value n&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OBJECT parameter specifies the authorization object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ID parameter specifies an authorization field (in the authorization object). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FIELD parameter specifies a value for the authorization field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You program the authorization check using the ABAP statement AUTHORITY-CHECK.&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'S_TRVL_BKS' &lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02' &lt;/P&gt;&lt;P&gt;ID 'CUSTTYPE' FIELD 'B'. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;MESSAGE E... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'S_TRVL_BKS' is a auth. object&lt;/P&gt;&lt;P&gt;ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This Authorization concept is somewhat linked with BASIS people.&lt;/P&gt;&lt;P&gt;As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.&lt;/P&gt;&lt;P&gt;Take the help of the basis Guy and create and use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-SUBRC values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4              User has no authorization in the SAP System for&lt;/P&gt;&lt;P&gt;               such an action. If necessary, change the user&lt;/P&gt;&lt;P&gt;               master record.&lt;/P&gt;&lt;P&gt;8              Too many parameters (fields, values). Maximum&lt;/P&gt;&lt;P&gt;               allowed is 10.&lt;/P&gt;&lt;P&gt;12             Specified object not maintained in the user&lt;/P&gt;&lt;P&gt;               master record.&lt;/P&gt;&lt;P&gt;16             No profile entered in the user master record.&lt;/P&gt;&lt;P&gt;24             The field names of the check call do not match&lt;/P&gt;&lt;P&gt;               those of an authorization. Either the&lt;/P&gt;&lt;P&gt;               authorization or the call is incorrect.&lt;/P&gt;&lt;P&gt;28             Incorrect structure for user master record.&lt;/P&gt;&lt;P&gt;32             Incorrect structure for user master record.&lt;/P&gt;&lt;P&gt;36             Incorrect structure for user master record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regards,&lt;/P&gt;&lt;P&gt;Sravani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 12:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575241#M860595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-27T12:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Autharizations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575242#M860596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sravani &amp;amp; Friends &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I can Manage.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 06:43:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/autharizations/m-p/3575242#M860596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-28T06:43:26Z</dc:date>
    </item>
  </channel>
</rss>

