on 10-21-2013 1:15 PM
How to limit Autorization check or to hide this button Confirm? Help me resolve this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dmitry
Checked this thread
http://scn.sap.com/thread/2120567
also the authorization object is B_USERSTAT and B_USERSTAT_T
Hope this resolves
Regards
Prakhar
Hi Dmitry
if you want to go for development like suggested above below wiki
http://wiki.scn.sap.com/wiki/display/CRM/Modifying+button+properties
http://wiki.scn.sap.com/wiki/display/CRM/Disable+buttons+on+toolbar+based+on+transaction+type
Regards
Prakhar
Hi Dmitry,
Ok, here are the steps. This looks worse then it is.....
1. Create Enhancement Set for custom changes. ***Do this ONLY if you haven't already created an enhancement set***. Use transaction SM34, enter view cluster BSPWDVC_CMP_EXT, click on Maintain. Click on New Entries. Enter ZCUSTOM_ENHANCEMENTS. Save.
2. Assign the Enhancement Set to the development client. Use transaction SM30, enter table/view BSPWDV_EHSET_ASG, click on Maintain. Click on New Entries. Enter Assignment No = ‘1’, Client = ‘XXX’ (whatever your client is for your development system) and Enhancement Set = ‘ZCUSTOM_ENHANCEMENTS’. Save.
NOTE: you'll have to do this manually in each system (Q, P).
3. Create Enhancements to remove buttons on the Work Area Toolbars for the Incident screen.
Use transaction BSP_WD_CMPWB (UI Component Workbench). Enter the UI Component to be enhanced and click on Display. Note that the Enhancement Set ZCUSTOM_ENHANCEMENTS create earlier (see above) should automatically be included.
UI Component AIC_INCIDENT_H.
Click on the Enhance Component icon.
Enter the ZCUSTOM_ENHANCEMENTS enhancement set.
Enter an Application Name (by default use Z + UI Component name).
Click yes on the popup box.
Use the default repository xml name.
Enter the package and save.
Save to the desired Workbench transport. Select the View to be enhanced.
Right click on the selected View and select Enhance.
Save to the desired Workbench transport. Note the Z implementation class.
Open up the desired area to be enhanced. In this case , it’s the Toolbar related Methods.
Select the Method to be enhanced (IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS), right click and select Redefine.
The redefined method is copied (turns Green).
To modify the actual code, double click on the redefined method.
Go to Change mode and un-comment the default code, adding ‘rt_buttons’ as the parameter value for RT_BUTTONS.
Next, add the desired additional code to remove unwanted buttons from the screen’s Work Area Toolbar. Note: this will vary depending which button(s) you want to keep vs remove. If you to just remove the CONFIRM button, use the example below. The first delete will remove the Confirm button. The second delete should remove any duplicate ‘|’ (this may not be necessary in this case – try it with and without this statement and see what the tool bar looks like).
Save and activate. The Incident toolbar should have the CONFIRM button removed.
Please let me know if you have questions about this process.
Kindest regards
Paul
Hello Dimitry,
You can disable de confirm button by enhancing AIC_INCIDENT_H and view AIC_INCIDENT_H/IncidentOV.
Then look into IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS. That's the method that you can enhance and program the visibility of "confirm"
Regards,
Tom
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.