<?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 on pushbutton .. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248493#M1014047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this u need to use AUTHORITY_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need an authorization object which will have authorization fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.see for authorization to be imposed on a user, u need an authorization object. U can use existing ones in ur system or create a new one use tcode SU21. And u can take help from basis guy in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Once u have the authorication object goto ur program and press the PATTERN button there u will see the AUTHORITY_CHECK option select it and put ur authorization object system will generate the code. Then pass the values and perform validation using SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0. Successfull&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4. Unsuccessfull&lt;/P&gt;&lt;P&gt;SY-SUBRC = 8. Authorization field not specified completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont want to use any authorization field put DUMMY in front of it. Like this DUMMY not like this 'DUMMY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2008 05:33:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-06T05:33:28Z</dc:date>
    <item>
      <title>Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248492#M1014046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends , i made a  screen by which user can enter  data in the table .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want  that 'CHANGE' and 'DELETE'  pushbutton only responde   to only Authorized user  for it  and for the rest of the user it simply show a message  " You are Not authorised  to change the record"  .&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>Wed, 06 Aug 2008 05:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248492#M1014046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T05:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248493#M1014047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for this u need to use AUTHORITY_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u need an authorization object which will have authorization fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.see for authorization to be imposed on a user, u need an authorization object. U can use existing ones in ur system or create a new one use tcode SU21. And u can take help from basis guy in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Once u have the authorication object goto ur program and press the PATTERN button there u will see the AUTHORITY_CHECK option select it and put ur authorization object system will generate the code. Then pass the values and perform validation using SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0. Successfull&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4. Unsuccessfull&lt;/P&gt;&lt;P&gt;SY-SUBRC = 8. Authorization field not specified completely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u dont want to use any authorization field put DUMMY in front of it. Like this DUMMY not like this 'DUMMY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248493#M1014047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T05:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248494#M1014048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ram Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function code of the push button, check for the authorization.&lt;/P&gt;&lt;P&gt;use a funtion module to check teh username&lt;/P&gt;&lt;P&gt;give an error message if the user name is incorrect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248494#M1014048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T05:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248495#M1014049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I hope the below link will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6873e07211d2acb80000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6873e07211d2acb80000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khushbu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248495#M1014049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T05:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248496#M1014050</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;when user clicks on push button write down the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AUTHORITY-CHECK OBJECT 'XYZ'&lt;/P&gt;&lt;P&gt;                   ID 'F1' FIELD l_c_zd&lt;/P&gt;&lt;P&gt;                   ID 'F2' FIELD l_tcode&lt;/P&gt;&lt;P&gt;                   ID 'F3' FIELD p_mawerk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that check for sy-subrc i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;throw a message saying that no authorization.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code 'XYZ' represnets an authorization object.&lt;/P&gt;&lt;P&gt;create an authiorization object for the fields u want. for example F1, F2 etc.&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;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 05:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248496#M1014050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T05:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248497#M1014051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Venket &lt;/P&gt;&lt;P&gt;Your answer is helpful but not to clear that i want. plz give me the suitable example like how to create the Authoriztion object and etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram Shanker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 06:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248497#M1014051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T06:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248498#M1014052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;M'am&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given link is helpful, but it is not clear that how to done this job. plz give me suitable answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ram Shanker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 06:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248498#M1014052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T06:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248499#M1014053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to create an authorization object double click on the object or else go to the transaction code SU21 and click on create icon and enter some name  and then create it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 06:46:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248499#M1014053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T06:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization on pushbutton ..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248500#M1014054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ram Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to the following thread about creating an authorization object.&lt;/P&gt;&lt;P&gt;Hope it meets your requirement.&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="5609374"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2008 11:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-on-pushbutton/m-p/4248500#M1014054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-06T11:00:30Z</dc:date>
    </item>
  </channel>
</rss>

