cancel
Showing results for 
Search instead for 
Did you mean: 

How to Do Validations When Approval Hits Reject Button?

Former Member
0 Kudos

The transaction has been initiated and now it routes to the next approval. The approval opens up the work item and it brings the form with the details transaction initiated. The approval hit "Reject" button to reject the transaction.

Is there a way / BADI that I can put a validations so that it'll throw a message whenever user hit "Reject" button?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shreya,

I saw that this question has been marked answered.

Do you mind to share the solution as I am also having the same problem here.

What i need to do is to add validation when approvers hit on Approve button or Back to Author button.

The validation will be checking whether comment is entered, error msg will be prompted if no comment entered.

Please advice.

Thanks

Regards,

Justin

ChrisSolomon
Active Contributor
0 Kudos

@Wen Yew Lim

You will have to do that with script in your form. Check if the "new comments" field is empty or not....you can also set it to mandatory in design.

Former Member
0 Kudos

Hi Chris,

The APPROVE and REJECT buttons are outside of the form.

If I set the new comment field as mandatory in design, I can actually leave the comment field empty and click on APPROVE or REJECT to continue the transaction.

Am I right?

Thanks

Regards,

Justin

Former Member
0 Kudos

Hi ,

Did you find solution for this , I also want to achieve this functionality .

While reject the request , new comment field should be mendatory.

Can you please share the solution.

Regards

Rashi