cancel
Showing results for 
Search instead for 
Did you mean: 

FIPP- CHANGED/DELETED Events are not triggering

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi all,

Thanks all for ur answers.

The problem was a data consistency issue between FI and CO instead a WF problem.

Regards,

Gregory.

Former Member
0 Kudos

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

bpawanchand
Active Contributor
0 Kudos

Hi,

I think you need to make use of the BTE to raise the evetn explicityl Check this thread I hope it might help you

Regards

Pavan

Former Member
0 Kudos

Hi Pavan,

Thanks for ur answer. I am taking the BTE option as the last one.

Regards.

Gregory.