Skip to Content

Approve/Rejection of a non-user decision


I am using the workflow WS21000071 in order to process postings in FICA. The activity 000268 allows users to Approve or Reject postings manually after selecting the item in the SBWP:

The issue I am having is to find a way to approve or reject automatically the activity with a report instead of doing it manually in the SBWP (000268 is an activity and not a user decision).

I’ve been trying it with the function module SAP_WAPI_DECISION_COMPLETE, but I get the message e.g. “Work item XY is not a user decision”.

I've tried also the the function module SAP_WAPI_REJECT_WORKITEM to test the rejection of the activity but I get the message "Selected function is not available for work item".

Any suggestions are appreciated.

Regards, M.

268.jpg (101.1 kB)
approve.jpg (47.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 18 at 04:42 PM

    An activity can be a decision, but it does not need to be a 'user decision'. A User Decision is a specific type of task, delivered by SAP.

    You could probably use SAP_WAPI_SET_WORKITEM_COMPLETD. You'd probably also need to set something in the WF container indicating that these items have been accepted or rejected.

    But the WF person in me has to ask - why would you complete a bunch of workitems that you've gone to some trouble to implement WF for?

    Good luck,


    Add comment
    10|10000 characters needed characters exceeded

    • Hi Susan,

      thanks for your suggestion.

      We implemented such WF because 99% of the approvals are done manually in the SBWP. Only 1% of the approval/rejections is done by email if the approver has no access to SAP. That means that under some specific conditions we send an Email from WF to some recipients. By replying the generated email, the approval or rejection is done.

      If we have e.g. two steps approval, and the second level approval/rejection is done by email, then the workflow has to terminate correctly after the approval or rejection of the email.

      I will research the SAP_WAPI_SET_WORKITEM_COMPLETD option. If you have other suggestions to do it, please let me know.

      Regards, M.

  • Apr 23 at 08:17 AM


    In this specific case the workflowtask corresponds to report FKK_PAYMENTRELEASEDETAIL. So not only would you have to change the container content as Sue has mentioned, you also need to figure out if executing this report doesn't additionally alter any data.

    Are these workflows always triggered for payments, or is there some customizing involved and can you use that to automatically approve these payments?

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Rob,

      yes, this WF is triggered always for payments. Have a look please to the replay to Susan, there is more info about the why it is done in that way.

      Regards, M.