Need to add new button in std program in std PF status.
Hello Gurus,
I have added a button +US4 in the GUI status E110 of Function group QEEM but it is not displaying in the QE51N transaction screen.
I have activated the function code and PF status as well, still this button is not displaying.
Can anybody please help me to display this button on the screen?
Hi Isha,
How did you change the the standard pf-status of the standard program. I am trying to add a function code in standard pf-status. But it is asking for the access code. Kindly tell me the process to add a component. thanks in advance.
Thanks & Regards,
Suresh
Similar Messages
-
How to add new button in Customized page....
Dear All,
I need to add new button to the page button bar in the UI page.I tried like this in the controller but still i can not get output:
OAPageButtonBarBean oapbb = (OAPageButtonBarBean)oawebbean.findIndexedChildRecursive("OrderPageButtons");
OAButtonBean cancelButton = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN,
null, "cancelButton");
cancelButton.setText("Cancel");
oapbb.addIndexedChild(cancelButton);
Is there anything i missedout?
TIAwhat you are doing incorrectly is
trying to get the handle to the OAPageButtonBarBean.
This is a named child of the parent bean(OAPageLayoutBean), and what you are trying to do is find it as a indexed child, this should give you a nullpointer excp in this line oapbb.addIndexedChild(cancelButton);
since the handle should be null.
to get the handle to OAPageButtonBarBean, use some like this
pageContext.getPageLayoutBean().getPageButtons();
and then add buttons to it.
Thanks
Tapash. -
Need to Add a button in ALV Tool Bar
Hi,
I have a requirement where in i need to add a button to a standard ALV report. Its using the class CL_GUI_ALV_GRID. There is a Badi for the report. The Report is co05n and the Badi is WORKORDER_INFOSYSTEM . I am getting the handle of
CL_GUI_ALV_GRID object reference before screen display. Any guidance on how to add new button now to that toolbar?
Any help will be rewarded.
Thank you.
regards,
Deepthi lakshmi.A.Dear Deepthi Lakshmi.A.,
Refer the standard program BCALV_GRID_05 Add a Self-Defined Button to the Toolbar.
PROGRAM BCALV_GRID_05.
Purpose:
~~~~~~~~
Demonstrate the creation of an own toolbar button.
To check program behavior
~~~~~~~~~~~~~~~~~~~~~~~~~
The report shows a list of flights of one airline.
Select one or more lines and press the 'Detail'-Button to popup
a dialog window with related bookings.
Essential steps (Search for '§')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.Apply steps for event handling for events TOOLBAR and
USER_COMMAND (see example for print events)
2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
INCLUDE .
Predefine a local class for event handling to allow the
declaration of a reference variable before the class is defined.
CLASS lcl_event_receiver DEFINITION DEFERRED.
DATA: ok_code LIKE sy-ucomm,
gt_sflight TYPE TABLE OF sflight,
gt_sbook TYPE TABLE OF sbook,
g_repid LIKE sy-repid,
g_max type i value 100,
gs_layout TYPE lvc_s_layo,
cont_on_main TYPE scrfname VALUE 'BCALVC_TOOLBAR_D100_C1',
cont_on_dialog TYPE scrfname VALUE 'BCALVC_TOOLBAR_D101_C1',
grid1 TYPE REF TO cl_gui_alv_grid,
grid2 TYPE REF TO cl_gui_alv_grid,
custom_container1 TYPE REF TO cl_gui_custom_container,
custom_container2 TYPE REF TO cl_gui_custom_container,
event_receiver TYPE REF TO lcl_event_receiver.
Set initial dynpro
SET SCREEN 100.
LOCAL CLASSES: Definition
*===============================================================
class lcl_event_receiver: local class to
define and handle own functions.
Definition:
~~~~~~~~~~~
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive,
handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
PRIVATE SECTION.
ENDCLASS.
lcl_event_receiver (Definition)
*===============================================================
LOCAL CLASSES: Implementation
*===============================================================
class lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
§ 2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
DATA: ls_toolbar TYPE stb_button.
E_OBJECT of event TOOLBAR is of type REF TO CL_ALV_EVENT_TOOLBAR_SET.
This class has got one attribute, namly MT_TOOLBAR, which
is a table of type TTB_BUTTON. One line of this table is
defined by the Structure STB_BUTTON (see data deklaration above).
A remark to the flag E_INTERACTIVE:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'e_interactive' is set, if this event is raised due to
the call of 'set_toolbar_interactive' by the user.
You can distinguish this way if the event was raised
by yourself or by ALV
(e.g. in method 'refresh_table_display').
An application of this feature is still unknown...
append a separator to normal toolbar
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
append an icon to show booking table
CLEAR ls_toolbar.
MOVE 'BOOKINGS' TO ls_toolbar-function.
MOVE icon_employee TO ls_toolbar-icon.
MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
MOVE 'Detail'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD.
METHOD handle_user_command.
§ 3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
DATA: lt_rows TYPE lvc_t_row.
CASE e_ucomm.
WHEN 'BOOKINGS'.
CALL METHOD grid1->get_selected_rows
IMPORTING et_index_rows = lt_rows.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
else.
perform show_booking_table tables lt_rows.
ENDIF.
ENDCASE.
ENDMETHOD. "handle_user_command
ENDCLASS.
lcl_event_receiver (Implementation)
*===================================================================
FORM EXIT_PROGRAM *
FORM exit_program.
The instance grid2 is freed not until the program exits from the
main screen.
(It is created only once during the first selection of SBOOK,
no matter how many times the second window is called).
CALL METHOD custom_container1->free.
IF not custom_container2 is initial.
CALL METHOD custom_container2->free.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
LEAVE PROGRAM.
ENDFORM.
*& Module PBO_100 OUTPUT
text
MODULE pbo_100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
g_repid = sy-repid.
IF custom_container1 is initial.
select data from table SFLIGHT
PERFORM select_table_sflight CHANGING gt_sflight.
create a custom container control for our ALV Control
CREATE OBJECT custom_container1
EXPORTING
container_name = cont_on_main
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid1
EXPORTING i_parent = custom_container1.
Set a titlebar for the grid control
gs_layout-grid_title = 'Flights'(100).
allow to select multiple lines
gs_layout-sel_mode = 'A'.
CALL METHOD grid1->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_layout = gs_layout
CHANGING it_outtab = gt_sflight.
->Create Object to receive events and link them to handler methods.
When the ALV Control raises the event for the specified instance
the corresponding method is automatically called.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_user_command FOR grid1.
SET HANDLER event_receiver->handle_toolbar FOR grid1.
§ 4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
CALL METHOD grid1->set_toolbar_interactive.
ENDIF. "IF grid1 IS INITIAL
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid1.
ENDMODULE. " PBO_100 OUTPUT
*& Module PAI_100 INPUT
text
MODULE pai_100 INPUT.
CASE ok_code.
WHEN 'EXIT'.
PERFORM exit_program.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_100 INPUT
*& Module PBO_0101 OUTPUT
text
MODULE pbo_0101 OUTPUT.
IF custom_container2 is initial.
(the data from sbook is already selected)
create a custom container control for our ALV Control
CREATE OBJECT custom_container2
EXPORTING
container_name = cont_on_dialog
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid2
EXPORTING i_parent = custom_container2.
change title
gs_layout-grid_title = 'Bookings'(101).
gs_layout-sel_mode = ' '.
CALL METHOD grid2->set_table_for_first_display
EXPORTING i_structure_name = 'SBOOK'
is_layout = gs_layout
CHANGING it_outtab = gt_sbook.
ELSE.
CALL METHOD grid2->refresh_table_display.
ENDIF. "IF custom_container2 IS INITIAL.
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid2.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
ENDMODULE. " PBO_0101 OUTPUT
*& Form SELECT_TABLE_SFLIGHT
text
<--P_GT_SFLIGHT text
FORM select_table_sflight CHANGING p_gt_sflight LIKE gt_sflight[].
SELECT * FROM sflight INTO TABLE p_gt_sflight up to g_max rows.
ENDFORM. " SELECT_TABLE_SFLIGHT
*& Form SELECT_TABLE_SBOOK
text
-->P_LS_SFLIGHT text
<--P_GT_SBOOK text
FORM select_table_sbook USING p_ls_sflight LIKE LINE OF gt_sflight
CHANGING p_gt_sbook LIKE gt_sbook[].
DATA: lt_sbook LIKE gt_sbook[].
Select data from sbook according to a line of sflight
and append that data to table p_gt_sbook
SELECT * FROM sbook INTO TABLE lt_sbook
WHERE carrid = p_ls_sflight-carrid
AND connid = p_ls_sflight-connid
AND fldate = p_ls_sflight-fldate.
APPEND LINES OF lt_sbook TO p_gt_sbook.
ENDFORM. " SELECT_TABLE_SBOOK
*& Module PAI_0101 INPUT
text
MODULE pai_0101 INPUT.
CASE ok_code.
WHEN 'RETURN'.
LEAVE TO SCREEN 0.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_0101 INPUT
*& Form show_booking_table
text
-->P_ET_INDEX_ROWS text
FORM show_booking_table TABLES p_et_index_rows
STRUCTURE lvc_s_row.
DATA: ls_selected_line LIKE lvc_s_row,
lf_row_index TYPE lvc_index,
ls_sflight LIKE LINE OF gt_sflight.
CLEAR gt_sbook[].
LOOP AT p_et_index_rows INTO ls_selected_line.
lf_row_index = ls_selected_line-index.
read selected row from internal table gt_sflight
READ TABLE gt_sflight INDEX lf_row_index INTO ls_sflight.
select corresponding lines of table sbook
and append new lines to global table
PERFORM select_table_sbook USING ls_sflight
CHANGING gt_sbook.
ENDLOOP.
call dialog screen and display new alv control
CALL SCREEN 101 STARTING AT 10 5.
ENDFORM. " show_booking_table
Regards,
Naveen. -
Add new column in RFUMSV00 program
Hi,
I am new in abap. I have requirment to add new column in VAT report. I have copy RFUMSV00 program to 'Z' program and want to add new column in 'Z' program. The column is BSEG-ZNUOR(Assignment).How can i add a column in report and how to retrive data from BSEG table, If any one have code like this requirment , please give me some idea about this.
Thanks in advance.
Regards,
Souravyou need to read program carefully first possible than do debug.than find the exact location where system ALV generates here you need to add your field.
May be i it helps you.
search with term in mention prg ASSIGN gt_alv TO <gt_alv>. you will get idea where you need to add your own field
Edited by: Amit Gujargoud on Aug 27, 2008 9:44 AM -
I need to add new MacBooks to mac server workgroup manager. 10.9.5
i need to add new MacBooks to mac server workgroup manager. cannot find them by mac address, name or ip. how do i add the new MacBooks. i think there is no workgroup manger programs for mavericks, so there must be a new way to create and add new clients to workgroup manager. can someone please inform me or point me to a dock that explains how thank you.
-
Need to add new fields in transaction UDM_DISPUTE.
Hi Friends,
This is regarding UDM_DISPUTE transaction in FSCM.
I need to add new fields (drop down lists) in transaction UDM_DISPUTE.
Program Name: SAPLSRMCLFRM2
Screen Number: 100
Can any one please suggest me with the name of exit using which I can add these new fields.
Or another way through which I can add these new fields viz., BADI or classes.
Thank You in Advance!
Regards,
TejaswiniExecute the below code to find the userexits the t-code is using
REPORT yuserexit_vin NO STANDARD PAGE HEADING.
TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
TABLES : tstct. DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR' AND object = 'PROG' AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR' AND object = 'FUGR' AND obj_name EQ enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
SELECT * FROM tadir INTO TABLE jtab WHERE pgmid = 'R3TR' AND object = 'SMOD' AND devclass = v_devclass.
SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ', 20(20) p_tcode, 45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline, 2 'Exit Name', 21 sy-vline , 22 'Description', 95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt WHERE sprsl = sy-langu AND name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline, 2 jtab-obj_name HOTSPOT ON, 21 sy-vline , 22 modsapt-modtext, 95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
* *---End of Program -
I need to add push button to last extended price unit in sale order item B
i need to add push button to field last extended price unit in sale order item additional data B
i need to add push button to field last extended price unit in sale order item additional data B
-
I am using strobe media playback but i am not able to add new button for subtitle in control bar.
I have imported assets.fla file in Flash professional but i do not understand how add new button in this fla and then link with action script method to show subtitle.If anybody know about it please tell me.Hi,
Yes you can add video subtitle and I can give you the details how to do
that. Can you please advise which type of files you have for video
subtitile and how many language you want to add. i.e. text files or xml
files.
Best regards,
Sunil Kumar
On Thu, Jan 15, 2015 at 5:22 PM, Add Subtitles to OSMF and < -
Add new button on title bar of JFrame
how can i add new button (like minimize, maximize and close) on title bar of JFrame.
actually i want a new button for system try icon. if user click on this button JFrame will hide and system try icon will be visibleHi,
Check out this Thread.
Hope that help,
Jack -
UmLogonPage.jsp - Add new Button
Hi Portal experts,
I am customizing the Logon Page, umLogonPage.jsp . My requirement to add new button in umLogonPage.jsp and on action it should redirect BSP iview.
Can you help me to implement this. I have downloaded the Par file and imported in NWDS .
Please provide help if possible.Hi Rashi
Go through Modifying The Logon Par(or customising the Logon Screen)
Just search for custom login page in portal and you will get various link on this.For adding new button add the button code in umLogonPage.jsp.You can copy the Submit button code already available and change the source link.
Regards
Shankar -
I need to add a button in std transaction
I need to add abutton in standard transaction IE03 (Equipment Display)
I need to write a code to open a new screen.
How to do this .
Points will be awarded.
Is there any user/menu.customer exit.
If it had then how to proceed.
Regards,
Jayasimha JangamHi Jayasimha,
I found these exits and badis, pls have a look at these....
Enhancement/ Business Add-in
Description
Enhancement
IEQM0001
Add. checks for equip. installation at functional locations
IEQM0002
Additional checks for definition of equipment hierarchies
IEQM0003
Additional checks before equipment update
IEQM0004
Object is allowed for contract partner (Order->MaintCont.)
IEQM0005
Object allowed for SD contract (MaintContract->MaintCont.)
IEQM0006
Object allowed for SD contract (Maintain maintenance cont.)
IEQM0007
Check/change manufacturer field in equipment master
Business Add-in
EQUI_SERLV_CHECK
External Inspections for MARA_SERLV
EQUI_SCR_CC
Implementable Subscreen for Equipment for CCM
EQUI_SCR_06
Implementable Subscreen for Equipment No. 06
EQUI_SCR_05
Implementable Subscreen for Equipment No. 05
EQUI_SCR_04
Implementable Subscreen for Equipment No. 04
EQUI_SCR_03
Implementable Subscreen for Equipment No.
EQUI_SCR_02
Implementable Subscreen for Equipment No. 02
EQUI_SCR_01
Implementable Subscreen for Equipment No. 01
Thanks & regards -
FI Report Painter (FGI1) - add new button in output screen
Hi all,
I have a report created by tcode FGI1 (Create Drill-down Report) which bases on form 0SAPBSPL-01 (Fin. Statement: Actual/Actual Comparison). I wanna know if there are any ways to add a new button in output screen after report execution (i.e to print the content into smartforms).
Thanks in advance.
Solaris.Instead of creating after the output you can add the button to create the form on the main screen itself i.e. program SAPMKCEE screen1125. Either on the application tool bar or on the screen 1125.
-
Need to add new UI elements in HAP_PMP_OVERALL_APPRAISAL view VW_MAIN
Hi,
how to add new UI elements (input field, read only field and button) on VW_MAIN view of HAP_PMP_OVERALL_APPRAISAL .
This is about ESS MSS Performance Mgmt.
I am checking for enhancement modifications, enhacement spots, dynamic programming to add new UI elements etc.
kindly provide inputs
thanks
BHi,
The following procedure explains how to add UI elements in the view of the standard component.
1. Create an Enhancement Implementation.
2. Create a new node on Component controller context.
3. Create a new method on component controller as the supply function of the new node.
4. Create new node on the view context by binding it from the controller context.
5. Create the UI elements on view.
6. Create post-exit on view method DoModifyView.--> In order to handle the events of UI element newly added.
7. Create a pre-exit on component method(Ex: SAVEAPPRAISALDATA) --> to get the static attributes of node.
Hope, the above steps will be useful .
Regards,
Abi -
How to add new button on Add content box in DVT
Hello All,
Currently we are using Dynamic Visitor Tool in weblogic portal 10.3.2 and want to add one new button e.g. "Favorite Portlets" along with portlet list when user clicks on Add Content menu option. Could any one explain what is the exact procedure to do it what are places/files we need to modify.
Thanks in advance.
AlkaHi,
You will have to use the mixin mechanism provided in dvt. Here are the mixin classes you will need to add and methods to override within them.
Original class - com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilder
Mixin class - com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilderMixin
Your mixin class will look like -
wlp_dvt_dojo.setObject("com.bea.wlp.dvt.uikit.wlp.menus.MenuBuilderMixin", {
buildNavigableMenu: function(scope, allowRemovePlaceables)
var menuWidget = null;
var menuWidgets = scope.getDescendants();
for(var widgetIndex=0;widgetIndex < menuWidgets.length;widgetIndex++)
var tempMenuWidget = menuWidgets[widgetIndex];
if(tempMenuWidget instanceof dijit.Menu)
menuWidget = tempMenuWidget;
break;
if(menuWidget)
try
if(wlp_dvt_WlpResourceDelegateInstance().isResourceUpdateable(scope.model.id))
//Change Appearance menu item
menuItemArgs = {label:scope.messages.changeAppearance,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_laf",
onClick:dojo.hitch(null, scope._onChangeAppearance, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Change Layout menu item
menuItemArgs = {label:scope.messages.changeLayout,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_layout",
onClick:dojo.hitch(null, scope._onChangeLayout, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Add Books menu item
menuItemArgs = {label:scope.messages.addBook,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_book",
onClick:dojo.hitch(null, scope._onAddBooks, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Add a menu separator
menuWidget.addChild(new dijit.MenuSeparator());
//Add Content menu item
var menuItemArgs = {label:scope.messages.addContent,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_portlet",
onClick:dojo.hitch(null, scope._onAddPortlets, scope)};
var mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//Set As Default menu item
menuItemArgs = {label:scope.messages.setDefault,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_setAsDefault",
onClick:dojo.hitch(null, scope._onSetAsDefault, scope)};
mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
if(allowRemovePlaceables && wlp_dvt_WlpResourceDelegateInstance().isResourceRemoveable(scope.model.id))
if(wlp_dvt_WlpResourceDelegateInstance().isResourceUpdateable(scope.model.id))
//Add a menu separator, but only if we have something to separate it from
menuWidget.addChild(new dijit.MenuSeparator());
//Remove Book menu item
var menuItemArgs = {label:scope.messages.remove,
iconClass:"com_bea_wlp_dvt_uikit_menu_icon_delete",
onClick:dojo.hitch(null, scope._onRemove, scope)};
var mi = new com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuItem(menuItemArgs);
menuWidget.addChild(mi);
//If no menu items were added to the main menu, don't render it
if(menuWidget.getChildren().length < 1)
scope.destroy();
catch(e)
//handle no DISC or no authentication.
In the abve code, follow the pattern to add a new menuitem in the place where you need it to show up. The method that gets called when the menuitem is clicked will go in the following mixin class -
wlp_dvt_dojo.setObject("com.bea.wlp.dvt.uikit.wlp.menus.NavigableMenuMixin", {
// add the method that gets called when your new menuitem is clicked
Note I haven't run the code above so please check for syntactical correctness before you run it. Also note that, unfortunately, the granularity of the buildNavigableMenu method above is very coarse in that you cannot add new menuitems as small snippets all by themselves. So you will have to include the base menu building code along with your new menu item building code snippet.
Thanks -
In transactions ME21n, ME22n, ME23n I need to add new field to item detail
Hello,
In transactions ME21n, ME22n, ME23n I need to add a new field to the table control TC_1211, in SAPLMEGUI screen 1211 for PO line items. The new field is UNSPSC Code, a 30 char field, which will be enterable/changeable on the ME21n, ME22n screens and display only on ME23n.
BADI ME_PROCESS_PO_CUST enables you to extend the business logic of the Enjoy purchase order. Is this the correct BADI to use for the purpose of adding a new input/output field to the PO detail SAPLMEGUI screen 1211?
Does anyone have any examples of adding a new field to PO Item Detail screen using BADI ME_PROCESS_PO_CUST? I have had some experience creating Badi's, and would appreciate very much some sample code if possible.
We are on release SAP ERP Central Component 5.0
SAPKB64018 SAP Basis Component
SAPKA64018 Cross-Application Component
SAPKH50013 Logistics and Accounting
Thank you,
VictoriaHi,
Thank you for the response. I tried this and found Badi ME_PROCESS_PO_CUST. Do you have any examples of adding a new cust field to PO Item overview screen using badi ME_PROCESS_PO_CUST? I have had little experience creating badi's, and would appreciate very much some sample code if possible.
In transactions ME21n, ME22n, ME23n I need to add a new field in PO Item overview (screen 1211 of SAPLMEGUI). The new field ZZUNSPSC, has been appended to table EKPO as a 30 char field, which will be enterable/changeable on the ME21n, ME22n screens and display only on ME23n.
Can you tell me if method FIELDSELECTION_ITEM of badi ME_PROCESS_PO_CUST the correct one to use for the purpose of adding a new input/output field to the PO item overview on SAPLMEGUI screen 1211?
Thank you for help - much appreciated,
Vicki
Maybe you are looking for
-
Problem with extract data from R/3 to BW
I want extract data from R/3 system.the problem is when I run the infopackage,I can see the status is yellow In the Monitor and the data can't extract to BW.but in the source system,the job of extracting data has been finished. (use the Tcode: WE02)t
-
Import / export of an Org to a New LMS site
Hi Was wondering if anyone could shine some light on an issue I have with the import of an organisation. The xml files are created in a Zip no problem but when I import back into new org on a new site it does not create any of the accounts. "e-LfH Or
-
Link to download Oracle GoldenGate 11g for MySQL
Dear All, I am in search of Oracle GoldenGate 11g for MySQL. Somehow could not find it download.oracle.com and edelivery. If someone knows how to download it please guide me. Thanks, Imran
-
Hello, I am looking for information on SNMP traps that can be generated by the SNMP installed with the OS. How can I configure them and what is available? I read the doc Solstice Enterprise Agents 1.0 User Guide but did not find anything to configure
-
I am getting an error when installing, the installer did not initialise. The PDA.log file has the following in it. /3/2013 14:11:15 [FATAL] DWANative - Error in opening mediaDB error code:11 1/3/2013 14:11:15.159 [FATAL] DeploymentNativeApplet The st