Skip to Content

Validation on Approve button in workflow

Hello,

I have a requirement where in I want to put a validation on the Approve button where if the user clicks on Approve the work item should be validated to check if the data is present or not in the z table. If no data is present it should display error message and the work item should be in inbox only.

Please help asap.

Thank you.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 09, 2014 at 12:49 PM

    Hi,

    Wouldn't it make more sense to only put a user decision in the users inbox when it is possible to approve it?

    What is the reason that data is not in the z-table yet? If it is a timing issue then just put the UD in a loop with a check if the data is there and if it is not there you create a wait step, or you can use deadline monitoring and create a task to check if the data is there and then change the start time and date of that task.

    Remember that the motto of SAP Business Worfklow is: the right information to the right people at the right time.

    Kind regards, Rob Dielemans

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2014 at 10:05 PM

    You can use the workitem exits to remove the approve button until the z-table is filled, but I agree with Rob. this doesn't feel like a decision task, have you thought about using an asynchronous activity task and raise the terminating event only when the z-table is filled?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2014 at 06:41 AM

    Hi ,

    Agree with Rob but if you want to do it anyway , then you can always create a module pool program with APPROVE/REJECT buttons and handle the validation etc there itself.

    Thanks

    Rakesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.