Workflows triggered by an event
Hi,
A BOR object-event is linked to wait steps in more than one workflows.
I have the BOR name and its event name with me.
How can I find the list of all the workflows whose wait steps are triggered by this event ?
Thanks in advance.
Regards
Ananya
Hi ,
For that you would have to set Metadata Only check-in which does not need a primary file . What it does is use the check-in form details and creates a file by itself (without having used any primary file) and creates the assets .
So , from the WF point of view there need not have any changes . Only thing is from WCC check-in side .
For details please check the following links:
https://blogs.oracle.com/kyle/entry/check-ins_without_files_ucm
Uploading Documents - Release 11g (11.1.1)- section 18.4.1.7 - Tip
Hope this helps .
Thanks,
Srinath
Similar Messages
-
How to get the ItemKey for a Workflow triggered by an event in Oracle Apps
Hello,
I have added a custom sub process to the seeded "OM Order Header" workflow. The process sends a notification. There are a few attributes in the body of the message tied to this notification, to which I am trying to assign values to using the syntax:
SetItemAttrText (itemtype, itemkey, attrname, attrvalue).
I have the internal names for the item type and attribute name, but don't know how to get the value for the item key. I understand the item key is supposed to be unique for each item type and is automatically generated by the workflow engine when the work flow fires. Is there a built-in function or some means to get this value?
Regards,
SmitaHave you tried to query WF_ITEMS? -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_ITEMS&c_owner=APPLSYS&c_type=TABLE
bde_wf_item.sql - Runtime Data of a Single Workflow Item [ID 187071.1]
Thanks,
Hussein -
Regarding Workflow triggering event.
Hi,
Description: I have created a Object type and a event for the same by transaction SWO1, after that i have created a WorkFlow(WF) for which the triggering event is the event i have created in the Object Type. There is a report in which i have used the FM "SWE_EVENT_CREATE" and passed the Object Type, Event Name, Key field values and the creator.
Problem: When i am executing this report the FM is called and the sy-subrc after call is 0, stating that the call was succesfull, but the WF is not getting triggered when i went to transaction SWI2_FREQ to check this WF is not at all triggered. But when i tested from WF transaction SWDD it is working fine.
Could anyone please explain me on this. or is there any other way to use an event of a Object Type to trigger WF.
Thanks and Regards,
Raghavendra Goutham P.hi gauthum,
try this chks.
Workflow Trace On/Off - SWU8
Display - SWU9
Delete - SWU10.
Work Item Analysis - SWI1
Identifying workflow for the work Item :
Tx : SWI1 - Enter the workiem id which has been identified in workflow log
The details consists of workflow of the workitem.
WorkFlow Errors :
1. Workflow Not Started - Using Event Trace we can Identify
2. Started but No Proceeded - Wrong Object Keys
3. Problem in Work Item Execution
Dialog Work Item - Agent Determinaion Error ( Position,Role,User )
- Role Resolution Error
Reqd Element would no be
Set in Binding
Background Work Item - Make Foreground and Test once Sucessfull make it Back round
rgds
nver
if hlped mark points -
Workflow WS00000038 Purch.Req - Event REJECTED not triggered
Hi Friends!
(SAP ECC 6.0)
(Tcode SWE3 - BUS2009-REJECTED is active)
When using WS00000038 Purchase requisition we have problem when an item is REJECTED.
the Event that is triggered is BUS2009-SIGNIFICANTLYCHANGED. This leads to that the Workflow end up with status COMPLETED and NO further handling of the actual Rejection that were made.
IF BUS2009-REJECTED were triggered instead, then WS00000038 would have followed another path in the workflow which is to handle the REJECTION via another TASK.
Why is BUS2009-REJECTED not triggered when button "REJECT" Requisition is pressed (ME54N).
Best regards
HenrikIn this aproval step within WS00000038 it is actually ME54N that is called.
The result in the task of the workflow is an EXTERNAL EVENT that is triggered.
In my case it is BUS2009-SIGNIFICANTLYCHANGED that is triggered instead of BUS2009-REJECTED.
this is what causes my Workflow WS00000038 to choose the wrong path.
Does anyone have a solution of how to get BUS2009-REJECTED triggered via ME54N when I actually press button to REJECT and then SAVE.
Best reg
Henrik -
In Which table Will maintain the All Workflows Triggering Event Details?
Hi,
Can Any one tell me
In Which table Will maintain the All Workflows Triggering Event Details?Hi Mohit,
The Tr Codes KE29N/KE28L will give me the Logs of Past TDD runs. However, i would like to see the all the variants in a go. Due to a Organizational change, there is a new characteristics introduced. Now we need to change the sequence of the TDD runs. Since there are lot of TDD Variants that are in use. we need to get all of them into an excel and then decide the necessary changes.
Thanks & Regards
Surya -
Hi All
I have set up a simple custom HCM process and Form regarding Infotype TO CREATE AND CHANGE POSITION. I have checked the process and form consistency and it seems fine. Now when I run the process from HRASR_DT it generates a process number but it also gives an error workflow could not start.I get following error (SWIA log - Step history)
Executing flow work item - Transaction brackets of the workflow has been damaged
Exception occurred - Error when starting work item 000000007031
PROCESS_NODE - Error when processing node '0000000014' (ParForEach index 000000)
CREATE - Error when creating a component of type 'Step'
CREATE_WIM_HANDLE - Error when creating a work item
CREATE_VIA_WFM - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event CREATED and (target) status
EVENT_RAISED - Error updating the process object
Executing flow work item - Exit CL_HRASR00_POBJ_WF_EXIT triggered exeception for event STATE_CHG and (target) status READY->ERROR
EVENT_RAISED - Error updating the process object
Executing flow work item - Transaction brackets of the workflow has been damaged
Executing flow work item - Work item 000000007031: Object FLOWITEM method EXECUTE cannot be executed
Executing flow work item - Error when processing node '0000000014' (ParForEach index 000000)
Points to be noted:
1) I have searched few SAP notes such as 1384961(Notes for 6.0.4) but our system is in higher level patch 6.0.5
2) WF-BATCH have SAP_NEW and SAP_ALL authorization.
Appreciate your valuable suggestions.
Thanks
RagavHi Ragav
did you try to debug this? maybe something is missing in config of P&F?
Since you are on 605, the following note would be there in your system....use it to debug:
1422496 - Debugging background workflow tasks in HCM P&F
This will help you find the root cause.
regards,
modak -
Workflow set up with event receiver
Hi Experts,
My scenario is like this -
I am doing a customer outbound interface. The business objects KNA1 & KNB1 are extended to create events for creation & changing the customer master.
The change documents will be configured to trigger these events whenever a customer is created or changed.
Now HOW DO I DO THIS - I need to develop a multi-task custom workflow template as an event receiver. The workflow will do the following :
a) Will check if the customer exits
b) Will collect all the information petaining to the interface
c) will call the RFC -enabled FM's to interface the data to a Middleware.
d) Will write to an error log if the interface failed
Please suggest me & your valuable solutions are rewarded with points.
thanks
HarikumarHi,
apart from posting this question in the business process management forum.
In swetypv the linkage between events and worfklows are maintained. For "exotic" requirements which will decide whether an event should have a workflow as a receiver you can add check function modules to such a linkage.
this will help you in deciding before the Wf is triggered if it makes sense.
for the rest of your requirements, hire a technical workflow developer, because additional tasks and methods will have to be created.
Kind regards, Rob Dielemans -
Hi all,
we are using Function module SWE_EVENT_CREATE to trigger workflow for MM invoice.
Business object used - BUS2081 and event used to trigger workflow is BLOCKEDQUANT.
yesterday there are 2 workflows triggered for each invoice using this FM.
Can anyone help me why 2 workflows triggered.
Thanks in advance.Hi Vijay,
Get to know when the event BLOCKEDQUANT would be triggered, I guess this event would be triggered always when there is price change in Invoice with a item blocked due to quantity change, If so use check function module in event to workflow binding to avoid duplicacy in such cases.
-Vinod -
Workflow org unit and event create
hi gurus,
I am using a standard sap workflow for travel. I am having two issues with it:
1. I created an org structure for it. But when I give the org structure name in the workflow it is not picking up the manager's name and not sending the email. But when I give a single personnel number, it is sending the mail.
2. At the start of the workflow there is an event 'TripCreate'. But when I create the trip by tcode: PR05 it is not starting the workflow.
Please advise. thanks.
Regards,
FSHi FS,
1. For this issue, try to refresh the organizational structure by going to transaction SBWP -> Settings menu -> Workflow Settings -> Refresh Organizational Environment. Test again.
2. For the second issue, please ensure that the event linkage for the workflow is activated. In the header of the workflow in "Version Independent (Task)" tab goto "Start Events" tab and ensure the event is first of all maintained and secondly active (green icon).
Also, if you attempt to create the event from SWUE - does the workflow trigger then ?
If all is fine above, then check whether there are any start conditions maintained which prevent the workflow from triggering.
Hope this helps.
Regards,
Aditya -
Workflow Triggering twice when executing transaction cj21n
Hi Experts,
when i am executing transaction cj21n my workflow is triggering twice but earlier it was working fine ..
please provide your input on the same
Thanks
Deepanker DwivediHi,
The 'event' which mapped to workflow triggered twice or another event may added to the workflow
1) Did you give additional event for the workflow in the Basic Data -> Start events, if yes remove that event and test it.
2) If 'No', In the SPRO configurations some settings might have changed, Check with your Function Consultant ask any changes they done in the SPRO settings related to the T.code cj21n.
Regards,
Surjith -
How to trigger a workflow though a class event
Hi,
I have created a class and included interface IF_WORKFLOW in the interface. Also created a event 'START' with one parameter. I have created a workflow and assigned the class event 'START' as its triggerring event.
I want to trigger my workflow from a custom program. But I am not able to trigger the workflow by passing the event container.
How do I start trigger the class event with the req. container element?Hi
You could check the class CL_HRECM00_WORKFLOW_EVENT, together with the corresponding workflows of package
PAOC_ECM_ADM_PLANNING_OVERVIEW.
Best Regards
Raquel -
Shopping Cart Workflow - "Wait for change event" not firing?
Hi there,
I have a scenario where if I create a shopping cart above my spending limit it will go into the approver's inbox, that is fine.
Now if I change the total value of the shopping cart to be within my spending limit the original workflow should be "logically deleted" and a "no step approval workflow" should be triggered.
I see when the SC workflow triggers it also branches with a "wait for events", so that if it changes etc it will get caught here.
When I change the SC it does not do anything, the value of the cart changes but it still sits in the approvers inbox and the "no step approval workflow" does not trigger.
We are busy upgrading to SRM 5.0, it worked perfectly in the SRM 3.0 system we had.
Any ideas what would cause the "change event" not to fire?
Thanks for the help
LyntonHey Masa,
You are the man!! That solved it.....I have implemented the BBP_WFL_SECUR_BADI and for whatever reason I set the security level to 4 when it should have been 2.
4 "High" (workflow is never restarted when changes are made)
3 "Medium" (WF restarted conditionally when changes are made)
2 "Low" (workflow is always restarted when changes are made)
1 "None" (changes to the object are not allowed)
0 "Not defined"
Thanks for the help
Lynton -
Hi All ,
we are a strange issue in EC incoming Invoice workflow in SRM, descriptiojn is as follows
we have two workflow in our system for invoice one goes through approval and other auto approval , and on the SRM portal at header level in the basic data we have added two custom fields allow NON-PO invoice and Allow RE ,and implemented the doc_check_badi , now at the line item level if we do not give any PO refernce and check/post then we get an error message saying the entrer PO and the status of the invoice to " to be corrected manually" ideally in the above case approval workflow should not trigger , it sould only trigger when we tick the allow Non-po invoice check button , and it was working fine , but suddenly after patch upgrade the approval workflow triggers even if we do not tick the chck box at header level . Can anyone suggest did any thing go wrong in patch upgrade , I have checked all the conditions and linkages all are fine, but i guess some standard setting is missing which would have gone missing .Dear all,
Thanks a lot for reading my post with intention to answer.
The issue is resolved now.
The problem was at BAdI.To trigger the workflow with event CREATED for purchase requisition, BAdI named ME_REQ_POSTED needs to be used :
Following coding is used for the same :
method IF_EX_ME_REQ_POSTED~POSTED.
DATA: WA_EBAN TYPE EBAN.
DATA L_S_EBAN TYPE UEBAN.
DATA: OBJKEY TYPE SWEINSTCOU-OBJKEY .
LOOP AT IM_EBAN INTO L_S_EBAN .
ENDLOOP.
IF ( SY-TCODE = 'ME51N' AND SY-UCOMM NE 'MECHECKDOC' ) OR SY-TCODE = 'ME52N' .
IF L_S_EBAN-BSART = 'ZNB'.
OBJKEY = L_S_EBAN-BANFN.
SELECT SINGLE * FROM EBAN INTO WA_EBAN WHERE BANFN EQ OBJKEY.
IF SY-SUBRC NE 0.
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
OBJECT_TYPE = 'BUS2105'
OBJECT_KEY = objkey
EVENT = 'CREATED'
COMMIT_WORK = 'X'
EVENT_LANGUAGE = SY-LANGU
LANGUAGE = SY-LANGU
USER = SY-UNAME
* IFS_XML_CONTAINER =
* IMPORTING
* RETURN_CODE =
* EVENT_ID =
* TABLES
* INPUT_CONTAINER =
* MESSAGE_LINES =
* MESSAGE_STRUCT =
endif.
endif.
endif.
endmethod.
I have missed the loop block.That's why the workflow was not triggering.
Regards,
S.Suresh -
Workflow triggered via SWUE does not complete
Hello,
On an ECC6 system, I have a workflow linked to the BUS2009.RELEASESTEPCREATED event. As long as the event is triggered upon upon purchase requisitions creation, the linked workflow starts and finishes fine. However, in case I trigger the event "manually" using SWUE, one of the work items(approver release decision task) created by the started workflow does not change status to COMPLETE after it is executed and successfully processed with a valid outcome. The work item remains in the in-process or ready status.
I have also checked the instance linkages and found a proper entry for the instance ID.
Due to this I am not able to trigger the workflows missed during recent event linkage outage.
Any idea what can cause this behaviour, please ?
Thanks.
Kind regards,
Ondrej FoukalHello,
You say:
"one of the work items(approver release decision task) created by the started workflow does not change status to COMPLETE after it is executed and successfully processed with a valid outcome"
If it's successfully processed and has a valid outcome then maybe you're having a problem with the next step - perhaps agent assignment? Check the workflow log for any errors, and look at the graphical log.
regards
Rick Bakker
Hanabi Technology -
Workflow bulider changed ,still the same workflow triggered for older requ
On applyig leave request a workflow is triggered and notification is sent to the
Manager he approves it
Everything is fine
Now I have changed the workflow builder
That after the approval, a task(Step) has to be performed.so I added a step for that
Now I have 3 cases
On applying for leave request the manager has approved and the step is executed after that
But my problem is now
There are a few prior requests which wernt approved yet
On approving them the workflow builder which is called is previous one and not the current one
And the step is not executed after the approval ,How to resolve the issue
Please advice
Thanks in advanceHi,
If your workflow is a Event Based workflow, you can start the new workflow by raising the event manually again using SWUE. For this you need to know BO and triggering event , key of the object for your case.
If it is not a Event based workflow, you can start workflow by SWUS , providing all the mandatory and required container element values.
However, before starting you can delete/complete the existing workflow. To delete the existing workitems from user inboxes, you can use SWWL. If you also want to set the status of this workflow instance , then probably you need to execute few FM's to set the status to COMPLETED.
Hope this helps you !!
Regards
Krishna Mohan
Maybe you are looking for
-
Hey I just installed gnome on a fresh install of arch but if I try to login via GDM and launch gnome terminal I get the error "Error constructing proxy for org.gnome.Termina:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome
-
Nous voulons faire plusieurs fois l'acquisitions d'une entrees analogique (avec carte PCMIA 6024E) et a chaque execution enregistrer les donnees dans un fichier temporaire (qui sera ecraser lors de la prochaine acquisition). Pour l'instant, nous arri
-
Can't save form data in reader. Using acrobat 9 pro. Reader-enabling forms option is unavailable.
-
Replace or not motherboard, water damage
my girlfriend just bought a macbook pro and water got spilled on it. The motherboard has a little bit of corrosion but the computer is working fine. If she waits to replace the motherboard can the corrosion creep onto other parts of the macbook? Shou
-
Thunderbird/Win and Apple Mail/Mac Odd Behaviour
I'm a Mac ultra-newbie, and I seem to have an odd problem. I've been using Thunderbird for Windows (ver 3.1 under WinXP SP3), and just acquired a MacBook (OS X, 10.6.4) . After setting up my account in Apple Mail, I noticed that messages downloaded t