<?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: authority-check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3101875#M736069</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;  Refer thsi code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_check_auth_iwerk                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This form checks authorization for plant.                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&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 07:34:21 GMT</pubDate>
    <dc:creator>former_member386202</dc:creator>
    <dc:date>2007-12-04T07:34:21Z</dc:date>
    <item>
      <title>authority-check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3101874#M736068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to check the authorisation for a particaular user in SU53 with the object that s not present in that particular server say for example development , but that authorisation object exists in production, since we dont have access to production server how do i simulate the case in development&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is when a particular user runs a report he no output is displayed for the report, then they suspected like it cud be a authorisation problem,and in SU53 for a particular authorisation object it s supposed to display three field values like workcenter plant and one more field for this particular user the workcenter is displaying a value which is not present in the system&lt;/P&gt;&lt;P&gt; then when we debugged the pgm there a autority-check made n the program for &lt;/P&gt;&lt;P&gt;for that authorisation object passing run time values for those fields, since i dont have access to pdction am not able to trace the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest s there any other way to check how is the values getting populated for the authorisation object&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 07:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3101874#M736068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T07:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3101875#M736069</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;  Refer thsi code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_check_auth_iwerk                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This form checks authorization for plant.                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&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 07:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3101875#M736069</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-12-04T07:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: authority-check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3101876#M736070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved by myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 22:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authority-check/m-p/3101876#M736070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T22:47:33Z</dc:date>
    </item>
  </channel>
</rss>

