on ‎2011 Jan 05 12:40 PM
Hi,
I am seeing duplicate IDOCS in the workflow, but with different I.D's. This IDOC went to 51 and was processed again, and again went to 51.
This IDOC comes and creates G.R
The First IDOC in the workflow has time stamp same as the timestamp when the IDOC first went to 51, however the second timestamp of the same IDOC in the workflow is the same as that of the previous IDOC.
Ideally the duplicate IDOC should not have appeared, I am not sure how this has happened.
The IDOC was processed again after 30 mins, and it went to 51 .
Can someone throw some light on this, what exactly should I be checking.
Thanks
Shailesh
Request clarification before answering.
Hi Vipin,
The IDOC failing multiple times should not be triggering multiple messages in the workflow.
That is the concern.
Kindly help addressing this.
Thanks
Shailesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shailesh,
If i understood correctly for a single IDOC it should have only one workflow. The same IDOC may failed multiple times but it should trigger the Workflow. Right?
If so then you can make use of Check function module. In the check function module you can build the below logic.
Call the FM SAP_WAPI_WORKITEMS_TO_OBJECT with your business object and Object Key - Idoc no.
It will show you the list if instances based on the business object and Object key.
If the FM returns has any instances dont trigger the workflow.
Thanks,
Viji.
Hi Viji,
Many thanks for you inputs. I will clarify further.
The IDOC first went into error say at 12:00, the message appeared in the workflow at the same time.
However the IDOC was again processed and went into 51 at 12:30, but in the workflow I see the same IDOC appearing twice under different message I.D But at the same time 12:00.
Could you please help me in understanding the issue.
Thanks
Shailesh
Hi,
At 12.00 there is a single work item for the IDOC number and at 12.30 there are two work items with same Idoc number?
Is it so? I think the two work items created at 12.00 only. In the workflow log please check the creator of the Work item.
May be due to wrong agent assignment you may get this second work item.
Thanks.
Hi Shailesh,
For a single Event, there is two workflow's are triggered or a single workflow sending work item's to Two times.
In the SBWP, Select the work item and Go to --> workflow log ---> List with technical details. --> Here get the Workflow ID of both work items. If it is differs, then you need to deactivate one workflow.
or you can use the event trace SWEL to check what are all the workflow triggered for your Event.
Just switch on the event using SWELS and create a new IDOC and check the Event log using SWEL.
It will display the event and workflow'a that are triggered for the same event.
Thanks.
| User | Count |
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.