Skip to Content
Feb 23, 2010 at 06:13 PM

OO perform on commit



I have written some code to update a bespoke table.

The class used is based on interface IF_SWF_IFS_WORKITEM_EXIT (workflow exit)

The issue is that my code is getting called too early before the updates have been made to the database tables, what I want to do is use a perform on commit, this of course can't be done in OO programming.

So I've written 2 function modules

The first FM carries out a perform on commit and variables are exported to memory

The second FM is called in update task, and the variables are imported from memory. The aim is that the database table will be updated at this point.

I have debugged the class and I can see that a commit is called however my update is not happening and when I switch on update debugger my second FM is not triggered.

Not sure what I'm doing wrong, is there another way of doing the update in OO rather than use a perform on commit i.e the old way!

Any help will be appreciated

Regards J-J