Skip to Content
0
Former Member
Jan 10, 2011 at 03:16 PM

Problem in workflow

41 Views

Hi All,

We have business process defined to release delivery block in Sales order.

A) Basically we are using 2 methods to remove delivery blocks.

1) Through custom transaction(User has option to release/reject).

2) Workfow(calls custom transaction to enable user to take action). A Custom object (subtype of BUS2032) is created with a DIALOG, ASYNCHRONOUS method to call custom transaction.

B) Delivery block is released using FM 'SD_SALESDOCUMENT_CHANGE', once SO is changed FM SAP_WAPI_CREATE_EVENT is called to raise event 'RELEASED'.

C) After raising event, COMMIT WORK statement is called to commit changes to database.

Now, the problem is, user is able to release delivery block using custom transaction but not using workflow. What I found in debugging mode is, after raising 'RELEASED' event control is not returing to COMMIT WORK statement.

Does it have anything to do with the way the method is defined? If not, what should be done to overcome the issue.

Thanks in advance.

Regards

Balu