cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide the button "Confirm" in ZMIN

Former Member
0 Kudos

Hello experts!

How to hide the button "Confirm" in ZMIN?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

How to limit Autorization check or to hide this button Confirm? Help me resolve this problem.

prakhar_saxena
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Dmitry,

The only way I've found to delete buttons on the BSP WEB UI screens, is by enhancing the component (AIC_INCIDENT_H in this case). If you are OK with a development enhancement, let me know and I can add the steps needed.

Regards

Paul

prakhar_saxena
Active Contributor
Former Member
0 Kudos

Hello, Paul!

Yes, I agree to expand a component  AIC_INCIDENT_H. I ask to specify a code place in a component AIC_INCIDENT_H.

Thanks.

Former Member
0 Kudos

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

Answers (1)

Answers (1)

0 Kudos

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