<?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: Build screen menu dynamically during program flow in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133982#M988633</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;Try the following code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UNAME = '&amp;lt;username&amp;gt;'.&lt;/P&gt;&lt;P&gt;    SET PF-STATUS '&amp;lt;MENU1&amp;gt;'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;    SET PF-STATUS '&amp;lt;MENU2&amp;gt;'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 11:19:42 GMT</pubDate>
    <dc:creator>former_member787646</dc:creator>
    <dc:date>2008-07-07T11:19:42Z</dc:date>
    <item>
      <title>Build screen menu dynamically during program flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133979#M988630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got such situation that I have to determine menu bar apperance according user priveleges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example one user will see on the menu bar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEM1&lt;/P&gt;&lt;P&gt;|____subitem1 &lt;/P&gt;&lt;P&gt;|____subitem2&lt;/P&gt;&lt;P&gt;|____subitem3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst other user would see :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITEM1&lt;/P&gt;&lt;P&gt;|____subitem1 &lt;/P&gt;&lt;P&gt;|____subitem3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do You know some way to determine menu structure in ABAP code? Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:06:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133979#M988630</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Build screen menu dynamically during program flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133980#M988631</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;  Create 2 pf-statuses with your required menu items and call the appropriate one based on your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;cond1&amp;gt;.&lt;/P&gt;&lt;P&gt;Set pf-status 'STATUS1'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'STATUS2'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133980#M988631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Build screen menu dynamically during program flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133981#M988632</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;while setting the menu use &lt;/P&gt;&lt;P&gt;excl_tab is an internal table should contain the function codes of the buttons which you want to disable for that particular user.&lt;/P&gt;&lt;P&gt;set pf-status 'MENU' excluding excl_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see example below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA fcode TYPE TABLE OF sy-ucomm. 
... 
MODULE status_0100 OUTPUT. 
  APPEND 'CHANGE'  TO fcode. 
  APPEND 'SAVE' TO fcode. 
  SET PF-STATUS 'STATUS_0100' EXCLUDING fcode. 
ENDMODULE. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133981#M988632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Build screen menu dynamically during program flow</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133982#M988633</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;Try the following code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-UNAME = '&amp;lt;username&amp;gt;'.&lt;/P&gt;&lt;P&gt;    SET PF-STATUS '&amp;lt;MENU1&amp;gt;'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;    SET PF-STATUS '&amp;lt;MENU2&amp;gt;'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/build-screen-menu-dynamically-during-program-flow/m-p/4133982#M988633</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-07-07T11:19:42Z</dc:date>
    </item>
  </channel>
</rss>

