cancel
Showing results for 
Search instead for 
Did you mean: 

HCM P&F - How to disable the Reject button

Former Member
0 Kudos

Dear Friends,

We are using HCM P&F for employee contract approval. Our scenario is : The manager will raise the form and it will goto his manager for approval, once he approves the form will goto HR Admin to do some manual updation of infotype records and then complete this step. At this stage the HR Admin should not have option to Reject the form, only she should have completion option. But the workflow task TS17900101 used at this step calls the webdynpro application which has two buttons "Approve" and "Reject". We need to disable this Reject button. Please let me know if this is possible. We also tried the other workflow task TS17900100 which is used for completion which has only one button called u201CCheck and Sendu201D , but the issue is it is allowing the HR Admin to edit the form fields (for e.g. change the radio button), even though we have restricted that this field is non-editable in the config. As per the SAP documentation it states that this workflow task(TS17900100) is meant for Editing the Form, i think thatu2019s why it is allowing the HR Admin to edit the form, overriding the config. So we cannot use this task as well.So please advice how can resolve this issue.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You don't want to change the framework. For one, it's not a transportable change so as soon as SAP makes an update, all of your hard work will be overwritten. Second, whatever changes you make will effect all of your processes.

Task TS17900100 is used to 'edit' the form (instead of approve/reject) but only the fields that you 'allow' to be edited. You can control this with a combination of workflow parameters that are binded in this task and the process configuration. Or like most developers, you can also control this with Adobe scripting in the form itself. But simply put, use task TS17900100 and you will get the button "check and send". You can configure the WF to hide the other buttons (withdraw and Back to author). Then through configuration (or either scripting the form) you control which fields you want open for editing (if any) at that step.

Best regards,

Derrick

Banks & Company, LLC

Answers (4)

Answers (4)

Former Member
0 Kudos

I`d like to offer some explanation why are fields in task 17900101 are allowed for editing.

Check whether on your adobe form for the fields, you want to be in read-only mode exists following coding

data.#subform[0].#subform[1].PayscaleData.Content.NewPSL::ready:layout - (FormCalc, client)

//Check ISR control parameters for read/write access

if($record.CONTROL_PARAM.ISR_MODE == "DISPLAY" |

$record.CONTROL_PARAM.ISR_FORM_VIEW =="ISR_APPROVE" )

then

this.access = "readOnly"

endif

This code checks whether form is opened in mode for approving, and if its true, field will be displayed as read-only.

ChrisSolomon
Active Contributor
0 Kudos

DBanks is correct. Do it via workflow bindings. Do NOT modify the framework/application.

Former Member
0 Kudos

For the Approve/Reject button, SAP did not provide the configuration in the workflow to be changed. As we have checked SAP already hard code in the WebDynpro. What we have done, we pass the parameter of the form scenario along with the scenario step and write the customer exit to control the button in WedDynpro Application for just only Approve/Reject/Save Draft, actually only for the button that SAP not allow to change via workflow parameter.

If any update that I miss please kindly let me know.

Regards,

Visut

Former Member
0 Kudos

Hi,

The task by default provide you those options and you can't do anything.

You can invisible the reject button from WD ABAP application HRASR00_PROCESS_EXECUTE. But this will affect all the other process (Reject button will not appear).

Kind Regards

Mukesh

chintan_virani
Active Contributor
0 Kudos

Not sure but give this a try.

1. Check the WD Java Personalization help [here|http://help.sap.com/saphelp_nw70/helpdata/en/42/ed3ce7f8593eebe10000000a1553f7/frameset.htm].

2. Logon to Portal with Admin id and preview the Start Processes iView from PCD and when the WD application with Adobe form opens up do a Ctrl+right click and see if you can add/remove the Reject button.

Chintan

Former Member
0 Kudos

Hi Chintan,

Thanks for your reply, but HCM P&F uses Webdynpro ABAP application and the Adobe form is rendered in the application, is it possible to modify it with the way you have mentioned in your post? Please advice.

chintan_virani
Active Contributor
0 Kudos

I had done this long time back but yes probably it works with WD ABAP as well. Did you try with Ctrl+Click and doing preview of the WD ABAP application?

Chintan