Custom Button on Rfx Header Screen
Hi Friends,
I want to place one button on Rfx Header, This is done using Component configurator, now when i click on this Button, it should run on webdynpro component , can any one give me idea, how to do this
thnx
Kumar Srini
Hi Naresh,
Please describe me exactly what you are looking for.
Want to add a custom button on any RF/Custom RF screen? or want to call a url on any associated button to allow change passowrd?
I think both have different impact on application.
Sinec RF is totally based on ECC system(Module Pool Screen) so you can easily add a custom button to wherever you want by calling subscreen/add new screen/User Exit etc.
But for calling a URL would be visible to your RF gun or not ...it is depend on the device not an application.Again you have to configure Service Request for ITS for the URL being generated in Backend as well as RF devices.And then after you can call that URL under the code for that custom button.
Regards
Rick
Similar Messages
-
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 -
Display Both Excise Tab And Customized Tab in MIGO header screen
I want to display both Excise tab and My customized tab in header screen in MIGO..But I have seen at a time one tab is displaying.Can anybody tell me
how I want to diplay both tab at a time??Hi DEBDATTA PANDA,
In MIGO - Excise tab is showing as a part of customization. In PO if tax values are available that values will show in migo(drop down will show capture/refer /capture+post few more ) under excise tab.
pre req. is mat + Vendor +plant need to be excisable .
Now on your Customized tab is purely a Z development.only you can tell .
Also , if you are not seeing excise tab in migo , it means either config or master data missing for material code , Vendor, Plant
regards
manu -
Can someone post details (or better..an example) on how this BADI can be invoked?
I have used exits PCSD0003 and PCSD0002, but this BADI and it's partner for the BOM Item may be a better approach. I don't have a great deal of BADI implementation experience, but can learn fast. I create my own Implemenmtation and added code to the TAB Description method (below), activated it and went to CS01 to see if the new TAB had shown up... it did not. I thnk I'm missing the call to the method somewhere, but I can't locate where this might be..????
method IF_EX_CEWB_BOM_CUS_FIELDS~BOM_CUS_TAB_DESCRIPTION.
e_tab_description = 'MY BOM Header Data'.
endmethod.Hi!
Would be greatful to you if you could let me know the answer for your question as iam even looking out for the one,
Best Regards,
Parwez. -
Need to make "opening date" mandatory in SRM RFx Header Screen
Dear All,
Working for SRM component "/SAPSRM/WDC_DODC_RFQ_H_BD" there is field "OPEN_DATE_TIME" which i need to make it mandatory .
There is standard config to do the same but its not happening through that is there any way I could do the same.
I have also tried to enhanced the application and made it mandatory in MODIFYVEW method and given the error message also but it allowed the RFx to get publised even tough the date is not entered.
Really appreciate the same if anyone has come across such requirement.
Thanks
Ankit JainIn my system works fine, I've added the following code in badi BBP_DOC_CHECK_BADI and I can't publish my RFX without filling that field...
DATA: ls_bid_header TYPE bbp_pds_bid_header_d,
ls_messages TYPE LINE OF bbp_tmessages_badi.
IF flt_val EQ 'BUS2200'.
CALL FUNCTION 'BBP_PD_BID_GETDETAIL'
EXPORTING
i_guid = iv_doc_guid
IMPORTING
e_header = ls_bid_header.
IF ls_bid_header-open_time IS INITIAL.
CLEAR ls_messages.
ls_messages-msgty = 'E'.
ls_messages-msgid = 'ZYOUR_MESSAGE_CLASS'.
ls_messages-msgno = 000.
APPEND ls_messages TO et_messages.
ENDIF.
ENDIF. -
How to add a custom button in WD screen to call a workflow in siebel?
Hi All,
We have a requirement to have a custom button at the summary screen(after the rule execution) "Create Opportunity", on clicking on it a new opportunity record should be created in Siebel. As we know the "Save" link calls "PolicyAutomationSaveSession" inbound web service method and saves the information in session table and we can modify the PreSession and PostSession workflows. But we are not sure how it calls the service method and where is the mapping defined.
Can you please help me on how to add a custom button and how to invoke a workflow in siebel side to implement this requirement?
Also is there any document which can help me to add a custom button in screen and to add the code behind the button?
Thanks in advance!!
Regards,
SubhradeepSubhradeep,
Closing a Web Determinations window is essentially the same as closing any HTML window. It involves javascript, which you would have to add to the Web Determinations templates.
Essentially the javascript command to close a window is {{window.close}} or {{top.close}}
For timing, you might be able to use the setTimeout function of Javascript (see: http://www.w3schools.com/jsref/met_win_settimeout.asp)
At the risk of exposing exactly how bad my javascript skills are, I have attached a super-simple html fragment, a page that closes itself after 3 seconds. It may help you get started in the right direction. In general closing a window is a fairly dubious activity and is often not permitted by certain browsers. This html page at least works in Internet Explorer.
<html>
<head>
<script language="JavaScript">
setTimeout(closeMe, 3000);
function closeMe() {
alert("This window will close");
top.close();
</script>
</head>
<body><B>This window will close in three seconds</B></body>
</html>
{code} -
Custom button at selection screen toolbar
Hi All,
I have a requirement to add button at selection screen toolbar. Once this button was hit another program should be called.
Do you have any idea on how to do this. Appreciate your help.
Thanks in advance.Hi,
To add custom Button to your selection screen see the below example-
TABLES: SSCRFIELDS.
TYPE-POOLS ICON.
PARAMETERS: p_bukrs TYPE bukrs.
INITIALIZATION:
V_FUNCTXT-ICON_ID = ICON_XXX. " Add Icon to button if you want.
V_FUNCTXT-QUICKINFO = 'xxxx'. " Text to be displayed when you hover mouse over the button
V_FUNCTXT-ICON_TEXT = 'yyyy'. " Text to be dsipalyed on button.
SSCRFIELDS-FUNCTXT_01 = V_FUNCTXT.
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
WHEN 'FC01'. " Handle the click on button. By default this function code will be
to your
"Your logic
ENDCASE. -
Enhancements on Infotypes header screen
Can I insert a push button in Infotype header screen?
How can I do it?
Regards
AngelaHi all,
I need to know if is it possible to add a custom field in COR1 for process order. I searched forum for something about this, but cannot find anything.
can anybody please suggest me something ?
thanks
Kruthik -
Custom button on a editable alv grid
Hi experts,
I'm using an editable alv like this:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
* I_STRUCTURE_NAME = 'ZPEDAUTOMTAB'
is_layout_lvc = gd_layout
it_fieldcat_lvc = it_fieldcat
i_save = 'X'
TABLES
t_outtab = gt_zpedautomtab
EXCEPTIONS
program_error = 1
OTHERS = 2.
Does anybody know if i can add a custom button to the header or anywhere else to program a custom action?
If it is not; i can use another type of editable alv that lets me do that; if that exists.
Tank-you.Hi
Check the following template code and adjust accordingly:
Call the ALV
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = w_repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'LINE_CLICK'
i_callback_top_of_page = 'TOP_ROUTINE'
i_callback_html_end_of_list = 'EOL_LOG'
i_grid_title = text-ttl
is_layout = my_layout
it_fieldcat = it_fieldcatalog
it_sort = it_sort
i_save = g_save
i_grid_settings = lc_glay
is_variant = w_variant
is_print = my_print
TABLES
t_outtab = i_out
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*& Form top_routine
FORM top_routine.
{ Local
DATA:
w_page(5) TYPE c,
l_line TYPE slis_entry,
lh_top TYPE slis_listheader,
lt_top TYPE slis_t_listheader.
DEFINE top_line.
clear lh_top.
lh_top-typ = &1.
lh_top-key = &2.
lh_top-info = &3.
append lh_top to lt_top.
END-OF-DEFINITION.
WRITE sy-datum TO l_line.
top_line 'S' text-t01 l_line.
WRITE sy-uname TO l_line.
top_line 'S' text-t02 l_line.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = lt_top.
ENDFORM. "top_routine
*& Form pf_status_set
FORM pf_status_set USING extab TYPE slis_t_extab.
data: wa_extab like LINE OF extab.
wa_extab-fcode = '&REFRESH'.
append wa_extab to extab.
wa_extab-fcode = 'MODE'.
append wa_extab to extab.
SET PF-STATUS 'ZSD_DA01' EXCLUDING extab.
ENDFORM. "pf_status_set
*& Form line_click
FORM line_click USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
DATA: wl_ucomm LIKE sy-ucomm.
DATA: es_l TYPE slis_layout_alv,
es_fld TYPE slis_t_fieldcat_alv,
es_sort TYPE slis_t_sortinfo_alv,
es_mark TYPE slis_t_fieldcat_alv.
wl_ucomm = sy-ucomm.
CLEAR sy-ucomm.
CASE wl_ucomm.
Set printing mode
WHEN 'MODE'.
IF w_mode = 'O'.
w_mode = 'T'.
w_mode_txt = text-018.
ELSE.
w_mode = 'O'.
w_mode_txt = text-019.
ENDIF.
SET PF-STATUS 'ZSD_DA01'.
Exit Functions
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE TO SCREEN 0.
Show Log
WHEN 'LOG'.
selfield-refresh = 'X'.
PERFORM log_show.
Issue output
WHEN 'ISSUE'.
selfield-refresh = 'X'.
PERFORM print_deliveries.
Select all
WHEN 'SALL'.
selfield-refresh = 'X'.
LOOP AT i_out.
i_out-box = 'X'.
MODIFY i_out.
ENDLOOP.
Deselect all
WHEN 'DSAL'.
selfield-refresh = 'X'.
LOOP AT i_out.
i_out-box = ' '.
MODIFY i_out.
ENDLOOP.
ENDCASE.
Handle User clicks
CASE selfield-fieldname.
Display Vendor Master
WHEN 'KUNNR' OR 'KUNAG'.
IF NOT selfield-value IS INITIAL.
READ TABLE i_out INDEX selfield-tabindex.
IF selfield-fieldname = 'KUNAG'.
SET PARAMETER ID 'KUN' FIELD i_out-kunag.
ELSEIF selfield-fieldname = 'KUNNR'.
SET PARAMETER ID 'KUN' FIELD i_out-kunnr.
ENDIF.
SET PARAMETER ID 'BUK' FIELD i_out-bukrs_vf.
SET PARAMETER ID 'VKO' FIELD i_out-vkorg.
SET PARAMETER ID 'VTW' FIELD i_out-vtweg.
SET PARAMETER ID 'SPA' FIELD i_out-spart.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
ENDIF.
Go To VL03N
WHEN 'VBELN'.
READ TABLE i_out INDEX selfield-tabindex.
IF NOT i_out-vbeln IS INITIAL.
SET PARAMETER ID 'VL' FIELD i_out-vbeln.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
ENDIF.
Go To VA03
WHEN 'VGBEL'.
READ TABLE i_out INDEX selfield-tabindex.
IF NOT i_out-vgbel IS INITIAL.
SET PARAMETER ID 'AUN' FIELD i_out-vgbel.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM. "line_click
Please, reward if helpful
Regards,
George -
How to restrict Customizing button from F1
Hi all,,
I created a role restricitng SPRO in Authorization object S_TCODE to all the end users from adopting SAP_ALL
but
when working with system when the users go for F1 help they could navigate again to SPRO through customizing button from help displayed screen.(Not in every F1 screen).
Example - mm02 when changing material --- Ext. Matl Group
How to disable that Customizing button.
Would be able to provide a brief description if some one would be able to get my issue.
-RahulHi Alex & all,
Im trying to reconstruct the thread in a simplified way.
I have created a new role with few T-codes that is
MM01
MM02
MM03
MM04
MMAM
MM06
ME51N
ME52
ME53
ME5A
ME5K
ME96
MELB
ME54 & given full authorizations.
Again its the same problem with F1 like i explained in my previous postings.What exactly needs to be disabled.
when working with system when the users go for F1 help they could navigate again to SPRO through customizing button from help displayed screen.(Not in every F1 screen).
Example - mm02 when changing material --- Ext. Matl Group
How to disable that Customizing button.
--Rahul -
New buttons on SRM contract screen? (+)
Hello,
I'm asked to add specific button into the SRM contract screen (BBP_CTR_MAIN transaction). I've been trying to use BBP_CUF_BADI, but achieved none - my customer screen is not displayed at all. However it is called - I've checked it using the debugger. What am I doing wrong?
Thanks in advance.Hi Cyrill,
Please go through the following lnks,
Add a new button to BID Invitaion
Add customer button to check status screen
Hope it helps.
Thanks,
Pradeep -
How to create custom button by amending template in sc and change po screen
Hi,
Can anybody tell the steps that How to create custom button by amending the template in shopping cart or change purchase order screen.
Full points for the answer.
Edited by: shraman saha on Aug 17, 2008 6:44 PMHi,
I dont have any idea what you mean by Template for "Change Purchase Order" functionality. As far as i know there is a change button on the screen using which we go to the change mode and edit the PO.
About your other query: you do not require to download any HTML pages. To see the templates for PO go through the following path:
Transaction SE80 --> Internet options --> in the drop-down enter BBP_POC (for PO) --> Topic 99 --> HTML templates.
Then look for the following templates :
SAPLBBP_PO_UI_ITS 3000 --> for header basic data
SAPLBBP_PO_UI_ITS 4000 --> for item overview
SAPLBBP_PO_UI_ITS 4100 --> for item basic data
SAPLBBP_PO_UI_ITS 2200 --> for buttons.
Make appropriate changes to the screen and then publish it before using it. It is just like activating objects.
Hope this helps.
Thanks,
Pradeep -
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. -
Customized Button code not working on selection screen.
Hello Experts,
I have a button on the selection screen next to Execute button on the Application Tool Bar.
I have written some validations on the button.It was defined on the PF-Status and its funtion text i have given as 'Show'.
But the problem is that the code is not working.When I execute the button,the screen just remains their.
The sy-comm always returns the value of 'UCOM' for whatever even takes place on the screen.The execution of the program does not stops their in debugger.
Can anyone help me with some sample code and also provide the value of sy-ucomm which i should use for the customized button.
Good points will be rewarded.Here is the short program which will show how to do it. You are simply checking for the USER-COMMAND value CHK and changing it to ONLI which is the F8 button, then the START-OF-SELECTION will be fired and you can output the list.
REPORT zyou_0001.
TABLES: sscrfields.
SELECTION-SCREEN PUSHBUTTON 2(10) pbut1 USER-COMMAND chk.
AT SELECTION-SCREEN OUTPUT.
pbut1 = 'Test This'.
AT SELECTION-SCREEN.
IF sscrfields-ucomm = 'CHK'.
sscrfields-ucomm = 'ONLI'.
ENDIF.
START-OF-SELECTION.
DO 10 TIMES.
WRITE:/ sy-index.
ENDDO.
Regards,.
Mohammed -
Can we Hide/Gray out Edit button in RFx Screen
Hi guruzzz...
I have a requirement, where i have to disable or hide the Edit button in RFx depending on document status. I am new to this SRM do we have any option to do this ( i heard dynamic control class etc.. not sure). I am working in SRM 7.0.
Thanks and Regards
SreeYou'd have to locate the proper WebDynpro component and View information by positioning your mouse on the screen element, such as the column, and right click. On the context menu, select "More Field Help". There you should have -
General Information About the Application and Component
Application: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro Component: /SAPSRM/WDC_AODC_BEV_ACT
Window Information: IV_L_FPC_CA_DETAILS
View Information: V_BID_ACTIVITY
Configuration ID: /SAPSRM/WDCC_AODC_BEV_ACT_RFQ
Then launch SE80, find the view and enhance it by removing those columns you don't want to have.
Maybe you are looking for
-
When I try to export a PDF with preview, the dialog doesn't show and this error appears in the system log. 11/2/13 2:01:01.684 PM Preview[828]: -[NSRemoteView viewDidMoveToWindow] caught non-fatal NSInternalInconsistencyException 'unable to convert N
-
Hi All, We have several options under the MENU drop down for lists (like Batch Delete/Mass Update etc) For some users these options are displayed always and only on clicking them users get a message "Access Denied". Can this removed entrirely from th
-
Have Adobe Xl and don't know what I need to copy and paste sections from a PDF file to Microsoft Word file. Please help
-
How do I revert my homescreen back?
I was playing around with my iPod, and checking out how the restrictions settings worked a bit, and managed to hit the don't allow use of the apps. My iPod touch's apps that I had arranged all disappeared. I wondered if it just hid them, but as soon
-
My kid has erased my entire iTunes and iPhoto libraries. Does anyone know how to get them back?