Skip to Content

Workitem getting logically Deleted

Hello,

I am using FI document park functionality for Finance document.

In overall functinality, there is 1 main workflow and 1 sub-workflow. Sub-workflow is being used to Reject/ Approve Parked document and it is being called in mid of main workflow.

In main workflow, there is an event based wait step which requires REJECTED event to be trigerred. Now when I am using FM SAP_WAPI_WORKITEM_COMPLETE (with _WI_RESULT = 002 and _RESULT = 2 in SIMPLE_CONTAINER, here REJECTED code is 002) to reject parked document programatically it is completing sub-workflow correctly without any issue but when it is returing to main workflow it is marking Event based wait step (for event REJECTED) as Logically Deleted.

If I reject parked document manually then there is no issue and it is marking Event based wait step (for event REJECTED) as COMPLETED. Can you please help on what should be done to REJECT workitem correctly(in COMPLETED status)?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 06, 2017 at 04:36 PM

    This is correct behavior. The wait is for an external event such as you doing the rejection directly on the document. By using the API you are rejecting it via workflow.

    One method cancels (= logically deletes) the other. You will find that rejecting via the document will set the approval step to cancelled.

    Add comment
    10|10000 characters needed characters exceeded