on 11-15-2011 2:24 PM
Hi all,
I've developed a WF for customer invoice aproval:
1. First I've made configuration through transactions OBWA and OBWJ
2. The WF is triggered by event CREATED.
3. The WF waits for event COMPLETED
4. The WF has a 1 of 2 branch where waits for DELETED event in one and makes the approval logic on the other. Into the approval logic there is a wait step for CHANGED event.
The problem is that modifying or deleting the invoice are not triggering the CHANGED/DELETED events and the WF does not pass from there. Additionally it is locking the document (through trx SM12 I can see a lock entry into table BKPF for the document).
Does anyone knows what I have to do to make the events triggering and to solve the document lock problem?
Regards.
Gregory.
Hi Gregory,
1. Also let me know whether you have setup your events CHANGED, DELETED for the change document object in SWEC
2. Are you able to see the event-workflow linkage for the same events in SWETYPV..?
3. I am interested to know the event trace in SWEL also,i.e when you created,changed and deleted the customer invoice.
Regards,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Karthik,
1. I did not make entries through SWEC.
2. There are not event linkages for those events because they dont trigger a WF, the WF has a wait step for those events.
3. There are entries for CREATED, COMPLETED and REJECTED events into SWEL event trace but not for DELETED/CHANGED. Before I developed my WF I did make a test and then I could see and entry for CHANGED event into SWEL event trace.
As I say before i think the problem now is: the lock entry for BKPF table. This is the reason why the document cant be modified or deleted. When I press the "Save as completed" and "Delete preliminary document" the transaction shows success message for changing/deleting but doesnt save changes and make the lock for BKPF table.
Regards,
Gregory.
Hi Gregory,
I assume that you are parking a customer invoice, correct me if I am wrong.
1. I think if you provide the event linkages it doesn't mean you have to trigger the workflow with those events(CHANGED,DELETED), but use it to act upon your workflow. Only those events which you provide in START EVENTS of workflow will help you in triggering workflow hence don't give CHANGED and DELETED in start events of workflow but use it in wait for event.
2. I understand you are creating a customer invoice and when you try to change the same its not allowing, so try to remove the the lock on the document by using the FM i mentioned in my previous message.
3. Also check the binding in the wait for event step and the container element should act as both import and export paramter.
Regards,
Karthik
Hi Gregory,
I wish to suggest fm PRELIMINARY_POSTING_WF_RESET for unlocking the document or the method PrelPostingDocument.WfReleaseReset of FIPP BOR will do the same.
Regards,
Karthik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.