Skip to Content
0
Former Member
Mar 11, 2010 at 09:57 AM

TCode SWO_ASYNC creating Additional Document in workflow

319 Views

Hi,

I have created a custom workflow for transaction FBCJ. Whenever a cash journal document is saved the workflow is triggered an after approval the accounting document is posted. I am posting the accounting document with a background task which uses a method that calls function module FCJ_POST_ALL to post the document.

My problem is that after approval 2 exactly similar accounting documents are getting generated, one with TCODE blank and user WF-BATCH and the other with TCODE SWO_ASYNC and user WF-BATCH. I cannot understand why 2 documents are getting generated whereas actually only 1 should be generated. Please help.