on 03-28-2013 10:26 PM
Dear Experts,
I need to Hide the disabled “Decline” Button (as shown in snapshot below) The technical details of the button is as below. Could anyone please help me what is the best way to hide this button.
Application: | IBO_WDA_INBOX |
Web Dynpro Component: | SALV_WD_TABLE |
Window Information: | TABLE |
View Information: | VIEW_TABLE |
Configuration ID: | S200908261503177381630 |
Information on Field | |
Field ID: | F_DECLINE |
Type of UI Element: | TOOLBAR_BUTTON |
UI Element Library: | STANDARD |
Thanks!
There was multiple ways to achieve this requirement
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sushil,
Firstly thanks for the reply!
I went into the component configuration /SAPSRM/IBO_WDCC_INBOX but in the Web Dynpro Built-In tab I could not find the button for decline. So I think creating enhancement implementation will not work here.
After some analysis i figured out the method READ_CUST_ACTIONS of class /SAPSRM/CL_IBO_FEEDER_HELPER gives the action button from the table /SAPSRM/C_PWL_AC based on the type = SAPSRM_IBO_FEEDER_WI. So can i enhance the method READ_CUST_ACTIONS of class /SAPSRM/CL_IBO_FEEDER_HELPER or is there any configuration which maintains the table entry in /SAPSRM/C_PWL_AC . Could you please share some inputs regarding the same.
Also When i tried to create enhancement for component configuration it does not ask for transport request. So i was just wondering how is this transported to Quality system. Could you provide me some info on this too.
Thanks,
Sara
Hello Vinod,
Yes i was referring to the UWL (Approval Inbox). However the customer is not using portal. They would be using NWBC for the same. So in this case is there any suggesstion to Hide the UWL buttons. How to figure out the corresponding iView from the NWBC screens. Is it possible to download the xml editor so on(without Portal)?
Regards
Sara
Yes I tried what you have suggested; Found the WDC - IBO_WDC_INBOX and the WDCC - /SAPSRM/IBO_WDCC_INBOX. In the Wedynpro built-in tab i have drilled down each and every item but there is no button 'Decline'.
The customer is using SAP SRM 7.0 SP -0008
SRM_PLUS 700 0008 SAPKIBK208 SRM_PLUS for mySAP SRM
SRM_SERVER 700 0008 SAPKIBKV08 SRM_SERVER
SRM_EXPL 700 0008 SAPK-70008INSRMEXPL SRM Extended Functionality for SRM_PLUS including PPS
SRM_EXT 700 0008 SAPK-70008INSRMEXT SRM Extended Functionality for SRM_SERVER including PPS
Hello,
In order to hide the button do as follows:
- go to webdynpro comp SALV_WD_TABLE
- select in views "View Table" then go to method tab
- select WDDOMODIFYVIEW method and create an enhancement as post exit
- insert the following coding in the post exit:
DATA: lv_element TYPE REF TO cl_wd_toolbar_button,
lv_teamsc_visible TYPE wdui_visibility.
CONSTANTS: lv_invisble TYPE wdui_visibility VALUE '01'.
IF view->name = 'VIEW_TABLE'.
lv_element ?= view->get_element( 'F_DECLINE' ) .
CALL METHOD lv_element->set_visible
EXPORTING
value = lv_invisble .
ENDIF.
Activate the webdynpro the button should be no more visible.
Please let me know if that's ok.
Regards,
Hazem.
The list is almost same, expect that it has both Decline and Reject button. So the requirement is to hide "Decline", "Resubmit", "End Resubmission", "Assign to Me" and "Cancel".
So does it mean from the customizing I can remove the entry for "Decline" - is this the best way or
I go about enhancing the method READ_CUST_ACTIONS of class /SAPSRM/CL_IBO_FEEDER_HELPER.
Hello Hazem,
Yeah this also works. Thank you.
However with this implementation I cannot restrict the deletion of 'F_DECLINE' button in Workitems tab.Would it delete decline button in the other tabs too.
I checked the Workitems tab and the other tabs it all comes from the generic WDC for powl -
Is there any condition we could implement here specifically for the Workitems tab. I am just trying to figure out which is the best approach in this case.
The Workitems tab is from the generic WDC for powl -
WDC : POWL_UI_COMP
Window: POWL_MASTER
View: MASTER_TAB
WDCC ID: IBO_WDCC_POWL_INBOX
I don't find much information on removing this from customizing.
But I feel it can be removed without any issues. I don't think this button has any value for SRM related workflow tasks. You can always put it back in case your users want it.
Following link talks about the use of Decline button if some task is created directly in UWL
http://help.sap.com/saphelp_erp60_sp/helpdata/en/4b/6b8e6b6a1f452985251699c98ac68e/frameset.htm
Please check it out.
Regards,
Sushil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.