<?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 with Queries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376585#M184506</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a very good utility, but I need some users could execute queries with some values only. Otherwise, authorization object S_QUERY is very useful to avoid modifications of users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2006 14:01:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-16T14:01:59Z</dc:date>
    <item>
      <title>Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376580#M184501</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;I have a Query created and I want that a user can execute it but only for a selected centers of the company. However, other users have to be able to execute the query without limitations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that? (if it's possible)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 13:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376580#M184501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376581#M184502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that this is possible using authorizations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 13:43:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376581#M184502</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-16T13:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376582#M184503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea to do that? A program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 13:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376582#M184503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376583#M184504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Authorizations&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The authorization object S_QUERY should be used to give proper authorizations to the user for a query. This authorization object has a field named ACTVT which can take values 02 for Change, 23 for Maintain and 67 for Translate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This value determines whether the user can create and modify the query. The possible authorizations in the object are as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_QUERY_ALL          Change, maintain and translate query &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;S_QUERY_UPD         Change and Translate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though the general concept of an ABAP query is moderately difficult, the results and the long term use of the ABAP query is worth the effort.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Just double click on the Object ZOBJECT..&lt;/P&gt;&lt;P&gt;AND ALSO CHECK THESE TRANSACTIONS..&lt;/P&gt;&lt;P&gt;SU21 - for authorizations objects..&lt;/P&gt;&lt;P&gt;SU53-- checking the authorizations values.. &lt;/P&gt;&lt;P&gt;u have enter the respective fields while creating the authorization for the fields in su21..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Using SU21 u can create Authorisation Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 13:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376583#M184504</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-05-16T13:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376584#M184505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know whether is going to work or note, but its worth trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Select the field in SQ02 for that query.&lt;/P&gt;&lt;P&gt;2. Select CODE button at the application toolbar.&lt;/P&gt;&lt;P&gt;3. Use the coding section 'AT SELECTION SCREEN OUTPUT'.&lt;/P&gt;&lt;P&gt;4. Enter the code for authority check&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK &amp;lt;OBJECTNAME&amp;gt; VALUES &amp;lt;F1&amp;gt; = &amp;lt;P1&amp;gt;.&lt;/P&gt;&lt;P&gt;if no authorization then delete those corresponding records from that table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 13:58:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376584#M184505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T13:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376585#M184506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a very good utility, but I need some users could execute queries with some values only. Otherwise, authorization object S_QUERY is very useful to avoid modifications of users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:01:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376585#M184506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T14:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376586#M184507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sharath kumar R,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try it. It seems to be a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2006 14:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376586#M184507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-16T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization with Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376587#M184508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I dont know whether is going to work or note, but its worth trying.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; 1. Select the field in SQ02 for that query.&lt;/P&gt;&lt;P&gt;&amp;gt; 2. Select CODE button at the application toolbar.&lt;/P&gt;&lt;P&gt;&amp;gt; 3. Use the coding section 'AT SELECTION SCREEN OUTPUT'.&lt;/P&gt;&lt;P&gt;&amp;gt; 4. Enter the code for authority check&lt;/P&gt;&lt;P&gt;&amp;gt; AUTHORITY-CHECK &amp;lt;OBJECTNAME&amp;gt; VALUES &amp;lt;F1&amp;gt; = &amp;lt;P1&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;gt; if no authorization then delete those corresponding records from that table.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Hope that helps.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dear sharat kumar r,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm stuck at point 4.) of your list. i'm not an abaper but stuck with trying to get a query 'secure'. could you please advice how to phrase point 4? this is what i did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT 'L_LGNUM'
         ID 'LGNUM' FIELD LTAP-LGNUM
         ID 'LGTYP' FIELD DUMMY.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE 'No authorization' TYPE 'E'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obviously the LTAP-LGNUM bit is totally wrong. first: it's a range, not a single value ... second: i don't know how to 'formulate' the &amp;lt;P1&amp;gt; bit of your instruction. everything else i did according to your description except this little part. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 15:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-with-queries/m-p/1376587#M184508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T15:40:07Z</dc:date>
    </item>
  </channel>
</rss>

