<?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 objects and screen elements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-objects-and-screen-elements/m-p/3186397#M758825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the PBO of that screen just do an authority-check on the authotization object (if there is no standard object you can use, you have to create a custom one). In case the authorization fails set the button to inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;authority-check object 'authorization object'&lt;/P&gt;&lt;P&gt;   ID 'object id name'&lt;/P&gt;&lt;P&gt;   field 'field value'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_subrc = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name eq 'field name of button'.&lt;/P&gt;&lt;P&gt;    if lv_subrc eq 0.&lt;/P&gt;&lt;P&gt;      screen-active = 1.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      screen-active = 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    modify screen.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do it,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2007 14:22:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-26T14:22:54Z</dc:date>
    <item>
      <title>Authorization objects and screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-objects-and-screen-elements/m-p/3186396#M758824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i would like to enable/disable a button on screen using authorization object.&lt;/P&gt;&lt;P&gt;haw this can be done.&lt;/P&gt;&lt;P&gt;please help....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 07:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-objects-and-screen-elements/m-p/3186396#M758824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T07:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization objects and screen elements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-objects-and-screen-elements/m-p/3186397#M758825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the PBO of that screen just do an authority-check on the authotization object (if there is no standard object you can use, you have to create a custom one). In case the authorization fails set the button to inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;authority-check object 'authorization object'&lt;/P&gt;&lt;P&gt;   ID 'object id name'&lt;/P&gt;&lt;P&gt;   field 'field value'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_subrc = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if screen-name eq 'field name of button'.&lt;/P&gt;&lt;P&gt;    if lv_subrc eq 0.&lt;/P&gt;&lt;P&gt;      screen-active = 1.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      screen-active = 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    modify screen.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do it,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2007 14:22:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/authorization-objects-and-screen-elements/m-p/3186397#M758825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-26T14:22:54Z</dc:date>
    </item>
  </channel>
</rss>

