<?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: menu painter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507304#M843554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create Menu painter by 2 ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to tcode - SE41 give the program name and below that give the status name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eX: ZPROGRAM&lt;/P&gt;&lt;P&gt;Status name : TEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click create button where u ll find a screen where u can see MENU BAR, APPLICATION TOOL BAR, FUNCTION KEYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you click on menu bar here u can give wht are the functions u want to assagin in menu bar in MENU BAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;llly if u cllick on the application tool bar where u can give your own function key and u can give the icon name for ur function key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX; for enter  u give function key as ENTER&lt;/P&gt;&lt;P&gt;double click on that it asks for ICON name search icon name and assgin u can see the icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if u click on function keys u ll see standard tool bar where all the icons are already displayed just u need to give the function key for tha icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if you are using module pool progarm. in module PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In place of test u can give any name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on that u ll go directly to menu painter screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose if u given ENTER as function key. u can use this key in ur program as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case Sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 'ENTER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;source code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;hope this will help you&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sunil kairam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sunil kairam on Mar 1, 2008 6:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Mar 2008 12:49:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-01T12:49:15Z</dc:date>
    <item>
      <title>menu painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507302#M843552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all&lt;/P&gt;&lt;P&gt;how to create menu?&lt;/P&gt;&lt;P&gt;plz help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: VARUN RAJULE on Mar 1, 2008 12:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 11:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507302#M843552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: menu painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507303#M843553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set pf-status 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write short desc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then write....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for menu painter goto tcode se51.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: venkat  appikonda on Mar 1, 2008 12:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 11:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507303#M843553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T11:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: menu painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507304#M843554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Varun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create Menu painter by 2 ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to tcode - SE41 give the program name and below that give the status name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eX: ZPROGRAM&lt;/P&gt;&lt;P&gt;Status name : TEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click create button where u ll find a screen where u can see MENU BAR, APPLICATION TOOL BAR, FUNCTION KEYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you click on menu bar here u can give wht are the functions u want to assagin in menu bar in MENU BAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;llly if u cllick on the application tool bar where u can give your own function key and u can give the icon name for ur function key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX; for enter  u give function key as ENTER&lt;/P&gt;&lt;P&gt;double click on that it asks for ICON name search icon name and assgin u can see the icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if u click on function keys u ll see standard tool bar where all the icons are already displayed just u need to give the function key for tha icon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if you are using module pool progarm. in module PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In place of test u can give any name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;double click on that u ll go directly to menu painter screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose if u given ENTER as function key. u can use this key in ur program as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case Sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 'ENTER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;source code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;hope this will help you&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sunil kairam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sunil kairam on Mar 1, 2008 6:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 12:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507304#M843554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T12:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: menu painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507305#M843555</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;SET PF-STATUS 'STATUS'.&lt;/P&gt;&lt;P&gt;STATUS should be in caps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define it into the module pool program and double click and Press SAVE, select YES. and It will take you into the Menu painter screen, where you can define your own gui related fields. Actually SE41 is the Tcode to change or display the Menus. but it should not allow you to create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points is usefull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 13:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507305#M843555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T13:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: menu painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507306#M843556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/a3/5fc53796421e38e10000009b38f842/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/a3/5fc53796421e38e10000009b38f842/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to SE41-&amp;gt; Program Name -&amp;gt; Give PF Status(ZTEST) name &lt;/P&gt;&lt;P&gt;I think your requirement it to create Application Tool bar.&lt;/P&gt;&lt;P&gt;Expand the node Application Tool Bar -&amp;gt; give the desired name for *&lt;STRONG&gt;Function Code(ZSTATUS)&lt;/STRONG&gt;* and double click on it. It will ask for Functional Type- leave it blank. Give some text in the Functional texts and Info Text. If you want to a icon to be displayed then select the icon from the dropdown. In the program you need to write code for this Function Code .&lt;/P&gt;&lt;P&gt;Ex. SET-PF Status 'ZTEST'.&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'ZSTATUS'.&lt;/P&gt;&lt;P&gt;call transaction 'VA01'.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h2&amp;gt;STATUS ICON&amp;lt;/h2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status icon is used in screens to indicate visually about the status of the&lt;/P&gt;&lt;P&gt;program.Before the status icon can be used ,it should be placed on the&lt;/P&gt;&lt;P&gt;screen,it is a type of screen element.&lt;/P&gt;&lt;P&gt;To use the status icon we have to write some abap code and also to&lt;/P&gt;&lt;P&gt;change icons whenever required in the program. First step is to create&lt;/P&gt;&lt;P&gt;a variable of type ICONS-TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. DATA: status TYPE ICONS-TEXT.&lt;/P&gt;&lt;P&gt;The name of the variable in the abap program should be same as that&lt;/P&gt;&lt;P&gt;of in the screen.&lt;/P&gt;&lt;P&gt;Declaring it merely wont show anything , we have to use the function module ICON_CREATE to fill it with the required icon, generally PBO of the screen is used for this purpose. There are 3 parameters to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ICON_CREATE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;NAME = 'icon name'&lt;/P&gt;&lt;P&gt;TEXT = 'text to be displayed'&lt;/P&gt;&lt;P&gt;INFO = 'tooltip text'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here name can be anything like ICON_RED_LIGHT,ICON_GREEN_LIGHT etc. Infact any icon can be shown that exists but we should adhere to SAP&lt;/P&gt;&lt;P&gt;recommended style guidelines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h2&amp;gt;CONTEXT MENU&amp;lt;/h2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Context menu can be used in relation with the various screen elements&lt;/P&gt;&lt;P&gt;like I/O fields, subscreen,group box,table control but not with push buttons,radio,check buttons.&lt;/P&gt;&lt;P&gt;It can be used to show related options when the user right clicks on the screen elements. It is a type of status. SAP automatically creates a default context menu for dialog statuses consisting of all the function codes available.&lt;/P&gt;&lt;P&gt;We can create a context menu statically using the menu painter(SE41)&lt;/P&gt;&lt;P&gt;or dynamically by using the methods of the global class CL_CTMENU.&lt;/P&gt;&lt;P&gt;All context menus are objects of this global class.&lt;/P&gt;&lt;P&gt;There are number of methods which can be used to create and modify context menu dynamically . These are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD_GUI_STATUS&lt;/P&gt;&lt;P&gt;This method is used to load a static context menu already defined using&lt;/P&gt;&lt;P&gt;menu painter.The exporting parameters are PROGRAM ,STATUS and MENU. Where MENU indicates the menu to which the context menu will be attached .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADD_FUNCTION&lt;/P&gt;&lt;P&gt;This method adds a function code to the menu ,The exporting parameters are FCODE and TEXT. These are used to specify the function code and the corresponding text in the men.&lt;/P&gt;&lt;P&gt;ADD_MENU&lt;/P&gt;&lt;P&gt;This method adds a context menu to another one.&lt;/P&gt;&lt;P&gt;ADD_SEPARATOR&lt;/P&gt;&lt;P&gt;This method adds a separator line.&lt;/P&gt;&lt;P&gt;ADD_SUBMENU&lt;/P&gt;&lt;P&gt;This method adds a menu to another one as a sub menu the exporting parameters are MENU and the TEXT that will be displayed.&lt;/P&gt;&lt;P&gt;HIDE_FUNCTIONS&lt;/P&gt;&lt;P&gt;SHOW_FUNCTIONS&lt;/P&gt;&lt;P&gt;DISABLE_FUNCTIONS&lt;/P&gt;&lt;P&gt;ENABLE_FUNCTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These functions are used to modify the context menu by hiding,enabling etc them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET_DEFAULT_FUNCTION&lt;/P&gt;&lt;P&gt;This method will mark a particular menu item as the default one ,the corresponding function code is passed as an exporting parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The context menu should be linked to the screen element in the screen painte(SE51) by specifying an ID which is known as CONTEXT in the context menu field.&lt;/P&gt;&lt;P&gt;We can specify the same context for different screen elements or different context for different elements.&lt;/P&gt;&lt;P&gt;For each context specified in the screen painter a special call back&lt;/P&gt;&lt;P&gt;subroutine is used in the abap program. the syntax of this special routine&lt;/P&gt;&lt;P&gt;is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ON_CTLMENU_context USING menu TYPE REF TO CL_CTMENU&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDFORM&lt;/P&gt;&lt;P&gt;This subroutine can be used to modify or load or create a context menu at runtime when the user right clicks the screen element.&lt;/P&gt;&lt;P&gt;In the above subroutine the context is the context assigned to the screen element and menu is the menu object that was passed to this call back routine which is initially blank, we have to use methods of the class as stated above to create a working menu or load an existing static context menu previously build in the menu painter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. To load an existing context menu&lt;/P&gt;&lt;P&gt;FORM on_ctmenu_text USING menu TYPE REF TO cl_ctmenu.&lt;/P&gt;&lt;P&gt;CALL METHOD menu-&amp;gt;load_gui_status&lt;/P&gt;&lt;P&gt;EXPORTING program = prog&lt;/P&gt;&lt;P&gt;status = 'CON_MENU'&lt;/P&gt;&lt;P&gt;menu = menu .&lt;/P&gt;&lt;P&gt;CALL METHOD menu-&amp;gt;set_default_function&lt;/P&gt;&lt;P&gt;EXPORTING fcode = 'list'.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. CREATING A NEW CONTEXT MENU DYNAMICALLY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM on_ctmenu_text USING menu TYPE REF TO cl_ctmenu.&lt;/P&gt;&lt;P&gt;DATA new_menu TYPE REF TO cl_ctmenu.&lt;/P&gt;&lt;P&gt;CREATE OBJECT new_menu.&lt;/P&gt;&lt;P&gt;CALL METHOD new_menu-&amp;gt;add_function&lt;/P&gt;&lt;P&gt;EXPORTING fcode = 'list'&lt;/P&gt;&lt;P&gt;text = text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD new_menu-&amp;gt;add_function&lt;/P&gt;&lt;P&gt;EXPORTING fcode = 'add'&lt;/P&gt;&lt;P&gt;text = text-002. CALL METHOD new_menu-&amp;gt;add_function&lt;/P&gt;&lt;P&gt;EXPORTING fcode = 'delete'&lt;/P&gt;&lt;P&gt;text = text-003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD new_menu-&amp;gt;add_submenu&lt;/P&gt;&lt;P&gt;EXPORTING menu = new_menu&lt;/P&gt;&lt;P&gt;text = text-005.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP program should check for the OK_CODE field to find out whichmenu item was selected by the user. Selecting a function code will trigger a PAI while right clicking will not trigger the PAI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN KEYWORDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen language is used to create Screen Flow Logic, It is similar to ABAP but with limited functionality .Only certain keywords can be used&lt;/P&gt;&lt;P&gt;and these are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS&lt;/P&gt;&lt;P&gt;MODULE&lt;/P&gt;&lt;P&gt;FIELD&lt;/P&gt;&lt;P&gt;ON &lt;/P&gt;&lt;P&gt;LOOP&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;CHAIN&lt;/P&gt;&lt;P&gt;ENDCHAIN&lt;/P&gt;&lt;P&gt;CALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN EVENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Flow Logic serves as the cotainer for screen processing blocks.There are four events processing block supported out of which&lt;/P&gt;&lt;P&gt;FIRST two are automatically inserted when we create a new screen. The 4 events are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event is fired just before the screen is displayed .&lt;/P&gt;&lt;P&gt;e.g. MODULE LOAD_STATUS_1000 .&lt;/P&gt;&lt;P&gt;PROCESSS AFTER INPUT&lt;/P&gt;&lt;P&gt;This event is fired when user selects a function code or presses enter key&lt;/P&gt;&lt;P&gt;e.g. MODULE USER_COMMAND_1000 .&lt;/P&gt;&lt;P&gt;PROCESS ON HELP-REQUEST&lt;/P&gt;&lt;P&gt;This event is fired when the user presses F1 key.&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST&lt;/P&gt;&lt;P&gt;This event is fired when the user presses F4 key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These events are triggered by the runtime environment.The ABAP&lt;/P&gt;&lt;P&gt;program serves as the container for the processing blocks associated with&lt;/P&gt;&lt;P&gt;these events.Each processing block in ABAP starts with the keyword MODULE .&lt;/P&gt;&lt;P&gt;PBO modules have OUTPUT keyword attached to them while for remaining 3 events there associated modules have INPUT keyword attached to them in the ABAP program.&lt;/P&gt;&lt;P&gt;e.g. MODULE LOAD_STATUS_1000 OUTPUT.&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_1000 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE name AT EXIT-COMMAND &lt;/P&gt;&lt;P&gt;The specified module is called when the user selects a function code of type E like BACK,EXIT and CANCEL in PAI all other dialog modules are bypassed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI STATUS &amp;amp; TITLE&lt;/P&gt;&lt;P&gt;SET PF-STATUS status OF PROGRAM prog EXCLUDING f statement is used&lt;/P&gt;&lt;P&gt;to set the status of a ABAP program.The status provides user interface.It consists&lt;/P&gt;&lt;P&gt;of standard toolbar,application toolbar and menu.When ever the user selects a function the function code is placed in the OK_CODE field and structure SYST-UCOMM. The status is set in PBO event.&lt;/P&gt;&lt;P&gt;The title is set using &lt;/P&gt;&lt;P&gt;SET TITLEBAR title OF PROGRAM program WITH p1 p2&lt;/P&gt;&lt;P&gt;where the values for p1 p2 can be specified at run time. Menu Painter (SE41) is used to create GUI status and titlebar.&lt;/P&gt;&lt;P&gt;SCREEN FIelds &amp;amp; OK_CODE&lt;/P&gt;&lt;P&gt;Screen fields are fields in the working memory of the screen ,these are attached &lt;/P&gt;&lt;P&gt;to the screen elements.There contents are passed to similarly named fields in abap program during PAI and viceversa in PBO. &lt;/P&gt;&lt;P&gt;OK_CODEeld is a 20 char field which is found in every screen , it stores the function code selected by the user.It's contents are same as that of SY_UCOMM.It is a screen element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 13:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507306#M843556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: menu painter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507307#M843557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 17:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/menu-painter/m-p/3507307#M843557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T17:51:32Z</dc:date>
    </item>
  </channel>
</rss>

