<?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 OBJECT PROBLEM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838455#M1317554</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 am displaying the code which i am using in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK PAR1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PARAMETERS: P_WERKS LIKE ZPR_DET-WERKS.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: P_WERKS FOR ZPR_DET-WERKS,&lt;/P&gt;&lt;P&gt;                BUDAT   FOR ZPR_DET-BUDAT,&lt;/P&gt;&lt;P&gt;                VERAN   FOR CRHD-VERAN,&lt;/P&gt;&lt;P&gt;                KTSCH   FOR ZPR_DET-KTSCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK PAR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZPLANT1'&lt;/P&gt;&lt;P&gt; ID 'WERKS' FIELD P_WERKS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE E045(ZMSG) WITH P_WERKS."-LOW P_WERKS-HIGH.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jun 2009 12:21:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-23T12:21:30Z</dc:date>
    <item>
      <title>AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838440#M1317539</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 had added a Authorization Object on basis of Plant in my report and it is giving the problem that instead of displaying the Plant it is displaying as &lt;STRONG&gt;IEQPlant 1&lt;/STRONG&gt;. i had taken plant as a selection screen instead of parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell provide me guidelines how to display the Plant name only instead of IEQPlant Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZPLANT1'&lt;/P&gt;&lt;P&gt; ID 'WERKS' FIELD P_WERKS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE E045(ZMSG) WITH P_WERKS.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838440#M1317539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838441#M1317540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If its the message you are talking about then instead of  P_WERKS use P_WERKS-LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:39:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838441#M1317540</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-06-23T11:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838442#M1317541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Incase of select options you will have to first fetch all the plants from T001W which the user has put in the select option into an internal table.&lt;/P&gt;&lt;P&gt;This is because user can enter multiple plants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a select option you cannot jut compare the low and high values because select-options can have complex selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then LOOP on this internal table and for each value check the authority object and then give the error message accordingly for the incorret plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats the way how you should do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankur Parab on Jun 23, 2009 5:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:40:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838442#M1317541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838443#M1317542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please see the sample code below that I used to have the same functionality in one of my programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*---Authorization for Company code entered by the users.
*---This code will restrict users to see data for company
*---codes which they are not authorized to.
*---Select all the company codes based upon selection entered by the
*---user
DATA: li_bukrs TYPE TABLE OF bukrs,
       lwa_bukrs TYPE bukrs,
       lv_flag TYPE c.


 SELECT bukrs
   FROM t001
   INTO TABLE li_bukrs
  WHERE bukrs IN bukrs.
 IF sy-subrc EQ 0.
*---Clear Screen variable for Company code
   CLEAR bukrs.
   REFRESH bukrs.
*---Filter and prepare Select options for Company code table to be
*---passed to query. Table will only have values of company codes he is
*---authorized to for display.
   LOOP AT li_bukrs INTO lwa_bukrs.
     AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
                       ID 'BUKRS' FIELD lwa_bukrs
                       ID 'ACTVT' FIELD '03'.
     IF sy-subrc = 0.
       bukrs-sign = 'I'.
       bukrs-option = 'EQ'.
       bukrs-low = lwa_bukrs.
       bukrs-high = space.
       APPEND bukrs.
     ELSE.
       lv_flag = 'X'.
     ENDIF.
   ENDLOOP.
*---Give warning message to the user in case he is not authorized to see
*---data for all the company codes that he has entered.
   IF lv_flag = 'X'.
     MESSAGE ID 'ZF_MSS_FNG' TYPE 'W' NUMBER '015'.
   ENDIF.
 ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838443#M1317542</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-06-23T11:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838444#M1317543</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;yes,i had checked in the debuug mode it is storing the data Plant Name in LOW and there is a field called OPTION and SIGN i.e. I and EQ . It is coming as IEQDACF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me guidelines how to solve this problem as i want to hav only DACF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838444#M1317543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838445#M1317544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
AUTHORITY-CHECK OBJECT 'ZPLANT1'
ID 'WERKS' FIELD P_WERKS.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
MESSAGE E045(ZMSG) WITH P_WERKS-LOW. "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:45:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838445#M1317544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838446#M1317545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this logic instead of directly passing the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  SELECT-OPTIONS:  S_WERKS FOR PA0001-WERKS , "Personnel Area
                   S_BTRTL FOR PA0001-BTRTL , "Personnel Subarea
                   S_PERSG FOR PA0001-PERSG , "Employee Group
                   S_PERSK FOR PA0001-PERSK . "Employee Subgroup

  DATA: h_werks LIKE t500p OCCURS 0 WITH HEADER LINE ,
            h_funkt LIKE t591a OCCURS 0 WITH HEADER LINE .

AT SELECTION-SCREEN.
  
  REFRESH :h_werks[] , h_funkt .
  CLEAR :h_werks , h_funkt .
  SELECT * FROM t500p INTO TABLE h_werks WHERE persa IN s_werks .
  SELECT * FROM t591a INTO TABLE h_funkt WHERE infty = '0034' AND subty IN s_funkt.

  LOOP AT h_werks .
    LOOP AT h_funkt .
      AUTHORITY-CHECK OBJECT 'Z_HR_AUTH'
               ID 'PERSA' FIELD h_werks-persa
               ID 'FUNKT' FIELD h_funkt-subty.
      IF sy-subrc NE 0.
        MESSAGE e001(zhrrep) WITH h_werks-persa h_funkt-subty .
      ENDIF.
    ENDLOOP.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:48:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838446#M1317545</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-06-23T11:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838447#M1317546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY Like this..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZPLANT1'&lt;/P&gt;&lt;P&gt;ID 'WERKS' FIELD P_WERKS&lt;/P&gt;&lt;P&gt;IF SY-SUBRC eq 0.&lt;/P&gt;&lt;P&gt;MESSAGE E005(zmsg) WITH P_WERKS-LOW.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838447#M1317546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838448#M1317547</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 had tried as you had said and it is working fine but if a user specify the range of plant near 5 or 6 ,does it going to create a problem or not?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 11:56:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838448#M1317547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T11:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838449#M1317548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then.. follow what Gutham said...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838449#M1317548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838450#M1317549</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 had tried as you had said and it is working fine but if a user specify the range of plant near 5 or 6 ,it is displaying the low value only not the high ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZPLANT1'&lt;/P&gt;&lt;P&gt;ID 'WERKS' FIELD P_WERKS&lt;/P&gt;&lt;P&gt;IF SY-SUBRC eq 0.&lt;/P&gt;&lt;P&gt;MESSAGE E005(zmsg) WITH P_WERKS-LOW.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i remove the low from p_werks it is again defining it as a IBTMMCODACF.&lt;/P&gt;&lt;P&gt;Please provide me guidelines as  i am able to display it as MMCODACF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838450#M1317549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838451#M1317550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY SOMETHING LIKE FOLLOWING&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data lv_werks
Select WERKS FROM T001W INTO LV_WERKS
      WHERE WERKS IN P_WERKS.
     AUTHORITY-CHECK OBJECT 'ZPLANT1'
                         ID 'WERKS' FIELD LV_WERKS.
      IF SY-SUBRC &amp;lt;&amp;gt; 0.
             MESSAGE E045(ZMSG) WITH LV_WERKS.
       ENDIF.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838451#M1317550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838452#M1317551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : BEGIN OF itab OCCURS 0,
        werks TYPE werks_d,
       END OF itab.

SELECT werks INTO TABLE itab FROM &amp;lt;table&amp;gt;
       WHERE werks IN p_werks.

  LOOP AT itab.
    AUTHORITY-CHECK OBJECT 'ZPLANT1'
    ID 'WERKS' FIELD itab-werks.
    IF sy-subrc EQ 0.
      MESSAGE e005(zmsg) WITH itab-werks.
    ENDIF.
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838452#M1317551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838453#M1317552</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 had tried as you had said but it is not working.Please provide me guidelines to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838453#M1317552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838454#M1317553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;POST YOUR CODE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838454#M1317553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838455#M1317554</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 am displaying the code which i am using in the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK PAR1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PARAMETERS: P_WERKS LIKE ZPR_DET-WERKS.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: P_WERKS FOR ZPR_DET-WERKS,&lt;/P&gt;&lt;P&gt;                BUDAT   FOR ZPR_DET-BUDAT,&lt;/P&gt;&lt;P&gt;                VERAN   FOR CRHD-VERAN,&lt;/P&gt;&lt;P&gt;                KTSCH   FOR ZPR_DET-KTSCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK PAR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZPLANT1'&lt;/P&gt;&lt;P&gt; ID 'WERKS' FIELD P_WERKS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE E045(ZMSG) WITH P_WERKS."-LOW P_WERKS-HIGH.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838455#M1317554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838456#M1317555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems you dint check later post... please do changes according to that and come back to us in case any problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838456#M1317555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838457#M1317556</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;Ankur Parab, Jaideep Sharma, Gautham Vangaveti, GTREN and Perez C (second attempt) have all given you the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you follow their code the program will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:25:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838457#M1317556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838458#M1317557</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;The following code:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing the value to the i.e. range 1 to 6. i checked in the debug mode it is giving the problem that &lt;/P&gt;&lt;P&gt;it storing the lot of values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA : BEGIN OF itab1 OCCURS 0,
        werks TYPE werks_d,
       END OF itab1.

SELECT werks INTO TABLE itab1 FROM ZPR_DET
       WHERE werks IN p_werks.

  LOOP AT itab1.
    AUTHORITY-CHECK OBJECT 'ZPLANT1'
    ID 'WERKS' FIELD itab1-werks.
    IF sy-subrc EQ 0.
      MESSAGE e005(zmsg) WITH itab1-werks.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ricx .s on Jun 23, 2009 2:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838458#M1317557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: AUTHORIZATION OBJECT PROBLEM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838459#M1317558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of i_werks occurs 0,&lt;/P&gt;&lt;P&gt;         werks like t001w-werks,&lt;/P&gt;&lt;P&gt;         End of i_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK PAR1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PARAMETERS: P_WERKS LIKE ZPR_DET-WERKS.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: P_WERKS FOR ZPR_DET-WERKS,&lt;/P&gt;&lt;P&gt;BUDAT FOR ZPR_DET-BUDAT,&lt;/P&gt;&lt;P&gt;VERAN FOR CRHD-VERAN,&lt;/P&gt;&lt;P&gt;KTSCH FOR ZPR_DET-KTSCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK PAR1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select werks into i_werks from t001w where werks IN P_WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at i_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AUTHORITY-CHECK OBJECT 'ZPLANT1'&lt;/P&gt;&lt;P&gt;ID 'WERKS' FIELD I_WERKS-WERKS.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;MESSAGE E045(ZMSG) WITH I_WERKS-WERKS.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 12:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-object-problem/m-p/5838459#M1317558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T12:33:46Z</dc:date>
    </item>
  </channel>
</rss>

