<?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 Check for non database fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535210#M244210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a custom auth object  in tx Su21, add field ACTVT and values 02 and 03 to the auth object.&lt;/P&gt;&lt;P&gt;02 for change, and 03 for display only&lt;/P&gt;&lt;P&gt;and try the following example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data gv_disp type c.
Parameters: p_cbox1 type c as checkbox modif id C1,
            p_cbox2 type c as checkbox modif id C1.

initialization.

  authority-check object 'ZCUSOBJ'
           id 'ACTVT' field '02'.
  if sy-subrc ne 0.
    gv_disp = 'X'.
  endif.

at selection-screen output.
  loop at screen.
    if gv_disp eq 'X'.
      if screen-group1 eq 'C1'.
        screen-input = '0'.
        modify screen.
      endif.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sridhar K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2006 14:57:26 GMT</pubDate>
    <dc:creator>sridhar_k1</dc:creator>
    <dc:date>2006-09-01T14:57:26Z</dc:date>
    <item>
      <title>Authorization Check for non database fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535208#M244208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two checkboxes in the selection screen, if these are checked accidentally the std database table will be updated. To avoid this issue, we have to display these two checkboxes in the selection screen for only authorized users. These two fields are not from the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to proceed with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 14:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535208#M244208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check for non database fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535209#M244209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use AT SELECTION-SCREEN OUTPUT event for displaying the two checkboxes for authorized users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 14:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535209#M244209</guid>
      <dc:creator>Lakshmant1</dc:creator>
      <dc:date>2006-09-01T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check for non database fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535210#M244210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a custom auth object  in tx Su21, add field ACTVT and values 02 and 03 to the auth object.&lt;/P&gt;&lt;P&gt;02 for change, and 03 for display only&lt;/P&gt;&lt;P&gt;and try the following example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data gv_disp type c.
Parameters: p_cbox1 type c as checkbox modif id C1,
            p_cbox2 type c as checkbox modif id C1.

initialization.

  authority-check object 'ZCUSOBJ'
           id 'ACTVT' field '02'.
  if sy-subrc ne 0.
    gv_disp = 'X'.
  endif.

at selection-screen output.
  loop at screen.
    if gv_disp eq 'X'.
      if screen-group1 eq 'C1'.
        screen-input = '0'.
        modify screen.
      endif.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sridhar K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 14:57:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535210#M244210</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-09-01T14:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check for non database fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535211#M244211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   program attributes use authorization group&lt;/P&gt;&lt;P&gt;   for executing your program.&lt;/P&gt;&lt;P&gt;   or&lt;/P&gt;&lt;P&gt;   assign Tcode for your report and &lt;/P&gt;&lt;P&gt;   initialization event&lt;/P&gt;&lt;P&gt;   AUTHORITY-CHECK OBJECT 'S_TCODE'&lt;/P&gt;&lt;P&gt;   ID 'TCD' FIELD 'ZSPM'.&lt;/P&gt;&lt;P&gt;    where ZSPM is ur tcode for report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 16:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535211#M244211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T16:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Check for non database fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535212#M244212</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;First decide the condition you are going to incorporate for display of check boxes but definately authorization check should be in incorporated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the correct authorization obejct and incorporate it at AT SELECTION-SCREEN OUTPUT event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare the check boxes with option of invisible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If users passes through authorization, modify fields ACTIVE and VISIBLE in screen table so that the check boxes are visible in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2006 01:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-check-for-non-database-fields/m-p/1535212#M244212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-02T01:35:34Z</dc:date>
    </item>
  </channel>
</rss>

