Need to add custom button (xml) in VA05
I need to add a custom button (xml) to report output layout of VA05. Even the corrsponding functionality needs to be written for this button. Without changing the SAP standard code using Access keys, is there any other functionality in which we can add the button and write the code.
Please send me detail steps in this regard.
Hi Ramesh,
As i knoew in case of va05 there is no badi or exit available to achieve this functionality.There is a provision to add some fields in report out put.I hope this is possible through a custom one.
Regards,
Madhu
Similar Messages
-
Add customer button on header level for BUS2201(PO) - SRM 7.0
Hi,
I want to define a customer button (with action) within PO on header level.
Web Dynpro FPM_OIF_COMPONENT
Configuration /SAPSRM/WDCC_FPM_OIF_PO_PURCH
Task:
Add a customer button besides standard Export button.
I assume-afterwards I have to enhance the method onactionbutton_pressed to create my event when customer button is pressed, right?
Could anyone please guide me how to solve this issue?
Thanks and best reagrds
AndreasHi,
Here are the steps to add the button, I wrote it in other thread. In my case for PO is not displayed, try to follow the steps and if you are able to show the button tell me how please.
Add custom button in PO
And yes ,you need to create an enhancement point in the view CNR_VIEW of the component FPM_OIF_COMPONENT, you need to create a post-exit in the method BUTTON_PRESSED, here you have a sample code:
DATA: lv_id TYPE string,
lv_event_id TYPE fpm_event_id.
DATA: lo_nd_oif_application TYPE REF TO if_wd_context_node,
lo_nd_variant TYPE REF TO if_wd_context_node,
lo_nd_toolbar TYPE REF TO if_wd_context_node,
lo_nd_button TYPE REF TO if_wd_context_node,
lo_el_button TYPE REF TO if_wd_context_element,
lo_nd_other_functions TYPE REF TO if_wd_context_node.
DATA: lv_substring TYPE string,
lv_substring_i TYPE i,
lv_node_name TYPE string,
lv_position TYPE string,
lv_length TYPE i,
lv_seq TYPE i.
DATA:lt_keys TYPE STANDARD TABLE OF string,
lv_key LIKE LINE OF lt_keys.
TYPES:BEGIN OF y_parameters,
name TYPE string,
value TYPE string,
END OF y_parameters.
DATA: lt_parameters TYPE STANDARD TABLE OF y_parameters,
ls_parameter LIKE LINE OF lt_parameters.
DATA: lv_boid TYPE bbp_guid,
lv_botype TYPE string,
lv_objkey TYPE swo_typeid,
lv_objtype TYPE swo_objtyp,
lv_object_id TYPE crmt_object_id_db,
lv_process_type TYPE crmt_process_type_db,
lv_object_type TYPE crmt_subobject_category_db,
lv_rfc TYPE zgrs_co_logsys-rfc,
DATA: lo_fpm TYPE REF TO if_fpm.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm->raise_event_by_id( lv_event_id ).
lt_keys = lo_fpm->mo_app_parameter->get_keys( ).
LOOP AT lt_keys INTO lv_key.
ls_parameter-name = lv_key.
lo_fpm->mo_app_parameter->get_value(
EXPORTING iv_key = lv_key
IMPORTING ev_value = ls_parameter-value ).
INSERT ls_parameter INTO TABLE lt_parameters.
ENDLOOP.
lv_id = wdevent->get_string( 'ID' ).
lo_nd_oif_application = wd_context->get_child_node( name = wd_this->wdctx_oif_application ).
lo_nd_variant = lo_nd_oif_application->get_child_node( name = wd_this->wdctx_variant ).
lo_nd_toolbar = lo_nd_variant->get_child_node( name = wd_this->wdctx_toolbar ).
lo_nd_other_functions = lo_nd_toolbar->get_child_node( name = wd_this->wdctx_other_functions ).
lv_substring = lv_id.
lv_length = STRLEN( lv_id ).
lv_seq = lv_length - 3.
IF lv_id+lv_seq = '_CP'.
lv_substring = lv_substring(lv_seq).
lv_id = lv_substring.
ENDIF.
WHILE lv_substring CS '_'.
lv_position = sy-fdpos + 1.
lv_substring = lv_substring+lv_position.
ENDWHILE.
IF lv_substring CO '1234567890'.
lv_substring_i = lv_substring.
ENDIF.
* Item level action;
IF lv_id CS '_item'.
* Or header level action;
ELSE.
IF lv_id CA '0123456789'.
lv_position = sy-fdpos - 1.
lv_node_name = lv_id(lv_position).
IF lv_id CS 'OTHER_FUNCTIONS'.
lo_nd_button = lo_nd_other_functions->get_child_node( name = wd_this->wdctx_button ).
lo_nd_button->set_lead_selection_index( index = lv_substring_i ).
lo_el_button = lo_nd_button->get_element( ).
TRY.
lo_el_button->get_attribute(
EXPORTING
name = `EVENT_ID`
IMPORTING
value = lv_event_id ).
CATCH cx_wd_context.
ENDTRY.
READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOTYPE'.
lv_botype = ls_parameter-value.
READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOID'.
lv_boid = ls_parameter-value.
* Obtain the object_id;
SELECT SINGLE object_id INTO lv_object_id
FROM crmd_orderadm_h
WHERE guid EQ lv_boid.
* If not Z button, exits;
IF lv_event_id(1) NE 'Z'. EXIT. ENDIF.
* Actions;
CASE lv_event_id.
WHEN 'ZBUTTON'.
WHEN 'ZBUTTON2'.
ENDCASE.
ENDIF.
ENDIF.
ENDIF. -
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. -
How to add custom buttons in a workflow email?
We want to add custom buttons in the workflow mail, and we have tried it successfully in workflow notification, but failed in mail,so is there anyone know how to add buttons in workflow mail if it is possible.
The buttons available are all of the different values on the Lookup Type you assign as the Result for the Notificaiton. Add values to this list, or create a new list and point to it.
-
How to add custom buttons in the tool bar of the crystal reports viewer
Hi,
I'm using Crystal report viewer (Crystal 2008) in my report and I want to add custom buttons and handle them in the tool bar of the viewer. Is there anyway to achieve this?
Please help me in this regard.
Thanks in advance.
Siva.I did this by adding a picturebox to the toolbar, the same size as the buttons, and loading in an image, and putting code into the Click event of the picturebox.
I also put code into the MouseHover event to change the picture's background color and into the MouseLeave event to change it back.
I have a couple of these buttons. They work very nicely and really look like part of the toolbar. -
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
-
How to add Custom button to existing ALV toolbar
Hi,
I want to add custom buttons for varaints in the existing row PRINT VERSION/EXPORT
How do we do that?
Rgds
VaraI have used the standard component u2018salv_wd_tableu2019 in my application and will be able to give example by adding a button named 'NEW__BUTTON' .
In the WDDOINIT method of the component controller, use the following code to define column name, your own buttons, visible column for the same component usage.
DATA:
lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage,
lr_salv_wd_table TYPE REF TO iwci_salv_wd_table.
*Check ALV component usage
lr_salv_wd_table_usage = wd_this->wd_cpuse_alv( ).
IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
lr_salv_wd_table_usage->create_component( ).
ELSE.
lr_salv_wd_table_usage->delete_component( ).
lr_salv_wd_table_usage->create_component( ).
ENDIF.
*Get ALV component
lr_salv_wd_table = wd_this->wd_cpifc_alv( ).
wd_this->mr_table type ref to CL_SALV_WD_CONFIG_TABLE.
*Get ConfigurationModel from ALV Component
wd_this->mr_table = lr_salv_wd_table->get_model( ).
*Set table settings
DATA:
lr_table_settings TYPE REF TO if_salv_wd_table_settings.
lr_table_settings ?= wd_this->mr_table .
lr_table_settings->set_visible_row_count( '5' ).
lr_table_settings->set_width( '100%' ).
DATA:
lr_header TYPE REF TO cl_salv_wd_header,
l_header_text TYPE string.
lr_header = lr_table_settings->get_header( ).
l_header_text = cl_wd_utilities=>get_otr_text_by_alias( 'NEW__BUTTON' ).
lr_header->set_text( l_header_text ).
lr_header->set_tooltip( l_header_text ).
"lr_table_settings->set_selection_mode( cl_wd_table=>e_selection_mode-multi_no_lead ).
*Set functions
IF wd_this->mb_no_maintain NE abap_true.
DATA:
lr_function TYPE REF TO cl_salv_wd_function,
lr_fe_button TYPE REF TO cl_salv_wd_fe_button,
l_btn_text TYPE string.
*Add the button here for validation on the top of the ALV
*This is where you add the buttons on the same ROW.
lr_function = lr_functions->create_function( 'NEW__BUTTON' ).
CREATE OBJECT lr_fe_button.
l_btn_text = cl_wd_utilities=>get_otr_text_by_alias( 'NEW__BUTTON' ).
lr_fe_button->set_text( l_btn_text ).
lr_fe_button->set_tooltip( l_btn_text ).
lr_function->set_editor( lr_fe_button ).
After defining the buttons 'NEW__BUTTON' , handle the actions for the same using the method u2018LIST_ACTIONu2019 which should have the event as u2018ON_FUNCTIONu2019, controller as u2018interface controlleru2019 and component use as the name you have given say u2018ALVu2019.
In the method u2018LIST_ACTIONu2019, handle the actions as below. This method will have the following importing parameters.
WDEVENT Importing CL_WD_CUSTOM_EVENT
R_PARAM Importing IF_SALV_WD_TABLE_FUNCTION
method list_action .
case r_param->id .
when 'NEW__BUTTON'.
"Do the validation here-"
endcase.
endmethod.
Thanks,
Rajkumar.S -
Add customer button to check status screen
hi everyone
i'm quite new in developing srm and need your help.
my customer wants me to put a new customer button on the check status web screen at item level which is supposed to work like the print button.
so if i want to integrate this customer button do i have to modify the screen and html template? as far as i know there is no customer exit for this?!
thanks in advance!Hi
<u>Which SRM version are you using ?</u>
<b>The addition of a new button for a new process means modification to standard screens, HTML templates used in the relevant Internet (Web) Services and the releavnt source code.
Addition of button can only be done through ITS Template change.Please look in the Internet services say - BBP_BID_INV (for Bid Invitations) Or for service - BBPSC01 (shopping cart) for the exact template in whcih you want to add the button</b>
<b>You have to define a new button in the screen and in the template. Then assign to it an OK_CODE and manage it in the PBO of the screen.</b>
There is no BADI which can do this as this is not a SAP funtionality. You need to do a little bit of research on this to get the job done.
<b>As a start step, You can use the BADIs - BBP_CUF_BADI and BBP_CUF_BADI_2 to change the display from customer-defined fields to the SAP standard screen. This BAdI enables you to control whether the fields can be edited, and how they are displayed.</b>
MODIFY_SCREEN method will Show/hide field display and restrict edit options.
<u>For more information on BADI please go to SPRO -> BADI.
OR View the information on BADI's.</u>
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
<u>Implement - BADI - BBP_CUF_BADI (in SRM 4.0) to display a customized screen.</u>
<b>Related link -></b>
a new button required on shoppingcart screen
<u>Hope above proves helpful to you.</u>
Regards
- Atul -
Spaces PS3 - Need to add custom code on logout from spaces or content
Hello
I Need examples or samples on how to add custom code to delete specific cookies on the IE or FF browser when the end user logs out from /webcenter and|or /cs pages
I've been told to add a custom template with a modified logout button - but I can't find any example on how to do that. (add template and button plus specific code)
RegardsIn template level you can do it.
If you use template1.jspx for your custom template,then add clientlistener to logout link or in custom button (you created ).
Add javascript code in your webcenter applicatoin (spaces ) . For references of javascript you can use the following links.
1.http://www.perlscriptsjavascripts.com/js/cookies.html
2.http://www.mindfiresolutions.com/How-to-delete-cookies-programmatically-using-Javascript-269.php .
In webcontent folder (generally you will found it as public_html folder) , place the javascript file.
In this way , you will resolve your problem. -
PR Workflow need to add custom URL
Hi
I need to add a custom URL in the Purchase Requisition work flow mailer notifications.
Please let me know you suggestions on this.
Regards
YramHi Ramesh,
As i knoew in case of va05 there is no badi or exit available to achieve this functionality.There is a provision to add some fields in report out put.I hope this is possible through a custom one.
Regards,
Madhu -
Need to add custom fields in Report RM06EN00 ( Tcode ME2N ) in the Output
Hi,
MY requirement is i need to add 10 custom fields in the standard program RM06EN00 whos tcode is ME2N.
i have appended the fields in the EKKO table and they r now available in the dynamic selection screen of the report RM06EN00.
But i need to display this fields in the output and these fields should also be available in the change layout of the ALV report which is displayed when u click on the change button after pointing the cursor on the PO number.
I am looking out for any enhacement though which this requirement can be met. however my second option is to copy the standard report to a z program and modify it. but i think it will not going to be east and it may take a lot of time..
Need both advice and answers for this soon.
Thanks in advance.
Best Regards,
FardeenIf you have want to add fields in Field catalog from se11 Add fields in this structure MEREP_OUTTAB_PURCHDOC using append structure and activate and execute ME2N with BEST_ALV IN SCOPE LIST U WILL find in change layout.
-
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 -
Hi,
We want to add cusotm button on output screen of MR11.
How can we add button on output screen of MR11?
Regards,
Jigar Thakkar.Hi Husalban,
We added customer button in the rfx iview.
When you finish the configuration adding, you can go to the WDA component 'FPM_OIF_COMPONENT'/View:CNR_VIEW/Methord:ONACTIONBUTTON_PRESSED.
You can make repair here or continue to find the rfx PDO class.
Please be careful when you decide to make repair code and considerate the upgrade.
In the methord ONACTIONBUTTON_PRESSED,please refer to follow code:
***---->Add By lorry for test Action
IF lv_event_id = 'ZAPPWLF' OR lv_event_id = 'ZAPPWLF_VIEW'.
*****************Get the Parameter Vaule
DATA:lt_keys TYPE STANDARD TABLE OF string,
lv_key LIKE LINE OF lt_keys.
TYPES:BEGIN OF y_parameters,
name TYPE string,
value TYPE string,
END OF y_parameters.
DATA lt_parameters TYPE STANDARD TABLE OF y_parameters.
DATA ls_parameter LIKE LINE OF lt_parameters.
lt_keys = lo_fpm->mo_app_parameter->get_keys( ).
LOOP AT lt_keys INTO lv_key.
ls_parameter-name = lv_key.
lo_fpm->mo_app_parameter->get_value(
EXPORTING
iv_key = lv_key
IMPORTING
ev_value = ls_parameter-value
INSERT ls_parameter INTO TABLE lt_parameters.
ENDLOOP.
DATA:ls_boid TYPE bbp_guid,
ls_botype TYPE string,
ls_mode TYPE string.
CLEAR ls_parameter.
READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOID'.
ls_boid = ls_parameter-value.
CLEAR ls_parameter.
READ TABLE lt_parameters INTO ls_parameter WITH KEY name = 'SAPSRM_BOTYPE'.
ls_botype = ls_parameter-value.
IF ls_botype = 'BUS2200'.
ENDIF.
ENDIF. -
JS scripted needed to add custom text plus filename to file info in document title
Would greatly appreciate any help with this one...
JS script to add custom text plus filename to file info in document title
many thanksSuper :O)
I have a folder of say 50 images and I want to run a JS script batch
example in the document title : image Nr 81205
custom text is "image Nr" + file name "81205"
activeDocument.info.title =" image Nr" + decodeURI(activeDocument.name);
would this be correct without seening the file ext
many thanks -
Can anyone help me add any type of ACTION EVENT /ACTION LISTENER TO THIS CODE
PLEASE REVIEW AND COMPILE IF NECESSARY. Ensure that it compiles without errors. Currently it compiles without errors. It opens up as a GUI window that accepts a password. If anyone could just add a button to it that will do just about anything, time check, date check whatever it would be great!!!!! THIS WAS COMPILED WITH THE JGRASP COMPILER JAVA ACCEPTED
Thank you all,
********************** Bruce's Code*****************************
import java.awt.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2= new Panel();
public TimeEntryForm()
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3,1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0; c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1; c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0; c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
public static void main(String args[])
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
}Hi java-luv,
I am not sure if I understand the problem. But I was able to add a JButton to your code (using the JBuilder designer). The button just exists the application. Please check the listing below. Hope this helps.
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2 = new Panel();
private JButton jButton1 = new JButton();
public TimeEntryForm() {
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3, 1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1;
c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;
c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;
c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;
c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0;
c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;
c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;
c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
jbInit();
public static void main(String args[]) {
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
private void jbInit() {
jButton1.setText("Exit");
jButton1.addActionListener(new TimeEntryForm_jButton1_actionAdapter(this));
this.add(jButton1, null);
void jButton1_actionPerformed(ActionEvent e) {
System.exit(0);
class TimeEntryForm_jButton1_actionAdapter implements java.awt.event.ActionListener {
TimeEntryForm adaptee;
TimeEntryForm_jButton1_actionAdapter(TimeEntryForm adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
Maybe you are looking for
-
When I open documents with Word 2010 they appear in some odd script of letters, numbers and symbols.
-
K7T266 PRO2 (MS6380 Ver 3.0) FDD Controler Problems
I just purchased a new boxed OEM MSI K7T266 PRO2 (MS6380 - Ver 3.0) motherboard from JUST DEALS on E-bay which seems to have very sparce (or none) documentation for download on this site. This is a non-raid board which has the AGP Pro video card soc
-
Check box Handling in ALV Tree Control
Hi All, I am implementing a scenario wherein which I need to get the checked items and process upon the user action. In the implementation I am not getting the checked values. This is how I have implemented. I have added a check box field in the Fiel
-
I have the following code to split a float number into 2 parts (as integer): float f = 1.2345f; String s = String.valueOf(f); int indexOfPoint = s.indexOf(46); String si = s.substring(0, indexOfPoint); String sf = s.substring(inde
-
My iwork does not open despite a reinstall
my iwork does not open despite a reinstall. I have Mac OS X version 10.6.8 and it is updated