on 2009 Feb 16 11:04 AM
Hi,
I am have created a workflow for PO change I am using buisness object BUS2012 and event changed .
as start event everything work fine but workflow is triggering twice when PO is changed.
I observed the event trace and found chaging the PO trigger two changed event but secand one is for different BO ie, FREBUS2012.
How to solve this ?
Regards
Bikas
Hi Bikas,
Is workflow having 2 triggering events one for BO BUS2012 and another for FREBUS2012?
Regards,
Saumya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bikas,
Output types are also used to trigger workflows, smart forms or to call methods.
It is a configuration done by functional person to link a BO event to a order or document.
You can find multiple help documents on the same. Try to ask the associated functional person for the details on the same.
I am not sure whether in your case an output type is the root cause but it is better to check for it.
Regards,
Saumya
Hi,
Other way is to:
1. create the check function module.
2. Register this check function module in your even linkage table SWETYPV
Regards,
Lim...
Please follow this example, and change the check as you want.
FUNCTION Z00_CHECK_MATERIAL_GROUP.
*"----
""Local interface:
*" IMPORTING
*" VALUE(OBJTYPE) LIKE SWETYPECOU-OBJTYPE
*" VALUE(OBJKEY) LIKE SWEINSTCOU-OBJKEY
*" VALUE(EVENT) LIKE SWETYPECOU-EVENT
*" VALUE(RECTYPE) LIKE SWETYPECOU-RECTYPE
*" TABLES
*" EVENT_CONTAINER STRUCTURE SWCONT
*" EXCEPTIONS
*" OBJECT_NOT_FOUND
*" INVALID_MATERIAL_GROUP
*"----
DATA: OBJECT TYPE SWC_OBJECT.
DATA: MATGRP LIKE MARA-MATKL.
SWC_CREATE_OBJECT OBJECT OBJTYPE OBJKEY.
IF SY-SUBRC NE 0.
RAISE OBJECT_NOT_FOUND.
ENDIF.
read attribute 'MaterialGroup' from object
SWC_GET_PROPERTY OBJECT 'MaterialGroup' MATGRP.
IF SY-SUBRC NE 0.
RAISE OBJECT_NOT_FOUND.
ENDIF.
IF MATGRP NE '001'.
RAISE INVALID_MATERIAL_GROUP.
ENDIF.
ENDFUNCTION.
Is the same Workflow getting triggered twice or different?
Check for delegation of BUS2012?
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi;
The most probable cause of a workflow being started twice is that it is triggered by two separate mechanisms simultaneously.
For example if the flow is being triggered by an event, check that this event is only firing once. For example, you might find that it
has fired once due the customizing for change documents AND once due to the customizing of status changes. Transaction
SWUD will allow you to determine how many times the event is firing. If it is only firing once, check that the workflow is not
additionally being started directly by a program or customizing tables. Check that the workflow is not customized to trigger on two
separate events.
Regards
Shashi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In SWE2/SWETYPV check event linkage for any workflow template linked to FREBUS2012 is active.
If yes just deactivate it.
let me know if you have any queries.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out in SWEC. There would be an entry for FREBUS2012.
Run Event Trace in SWEL. you might find FREBUS2012 and QCYBUS2012.
I am not sure abt the removal of those entries..
Lets wait for Experts answer...
Regards,
PR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.