<?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: PF-STATUS: Get function codes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status-get-function-codes/m-p/3864770#M928883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your answer. It was so fast and clear, really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JORGE ROJAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 20:57:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T20:57:49Z</dc:date>
    <item>
      <title>PF-STATUS: Get function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status-get-function-codes/m-p/3864768#M928881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi forum,&lt;/P&gt;&lt;P&gt;I'm programming with dynpros, and I have to include an Authority Check in order to control access to my application. Well, the auth check setup includes a function codes blocking, i. e., gray-coloured texts and deactivated function for the menu bar elements. My question is, how can I get the function codes in a dynpro? I tried with method &lt;STRONG&gt;if_wb_program~wb_manager-&amp;gt;get_status&lt;/STRONG&gt;, but it generates an error. May be any execution environment. &lt;/P&gt;&lt;P&gt;Does exist any FM, Method, or table reading in order to get the function codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My target is set &lt;STRONG&gt;PF-STATUS&lt;/STRONG&gt;, and fill the table &lt;STRONG&gt;g_ti_excl_fcodes&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET PF-STATUS p_status EXCLUDING g_ti_excl_fcodes.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JORGE ROJAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 23:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status-get-function-codes/m-p/3864768#M928881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T23:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: PF-STATUS: Get function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status-get-function-codes/m-p/3864769#M928882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data:
    l_is_allowed        type sap_bool,
    lt_exclude_fcode    like rsmpe-func occurs 10,
    ls_function_list    like rsmpe_funl,
    lt_function_list    like rsmpe_funl occurs 10.
*
* Read in the functions defined in the PF-STATUS
*
  call function 'RS_CUA_GET_STATUS_FUNCTIONS'
    exporting
      language      = sy-langu
      program       = gc_this_program  "set a constant somewhere
      status        = '0300_UPDATE'    "GUI status name
    tables
      function_list = lt_function_list
    exceptions
      others        = 1.

  if not sy-subrc is initial.
    exit.  "... internal error!
  endif.
*
* Then do your exclude logic e.g.
*
  loop at lt_function_list into ls_function_list.

    perform some_business_rule  "your code...
      using
        ls_function_list-fcode
      changing
        l_is_allowed.  "X or space = sap_bool

    if l_is_allowed = gc_is_false.  "space
      append ls_function_list-fcode to lt_exclude_fcode.
    endif.

  endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 03:02:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status-get-function-codes/m-p/3864769#M928882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T03:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: PF-STATUS: Get function codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status-get-function-codes/m-p/3864770#M928883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your answer. It was so fast and clear, really.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JORGE ROJAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 20:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pf-status-get-function-codes/m-p/3864770#M928883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T20:57:49Z</dc:date>
    </item>
  </channel>
</rss>

