2005 Aug 04 11:17 AM
Hi All,
I want to execute my sub-routine after commit work, not on commit work.
If any one have answer please mail me at emmanuelevy@gmail.com
2005 Aug 04 1:33 PM
thanks for your answer , but i have a user exit before the commit of sap standard .
and there aren't user exit after .
it's about transaction vl32n . i need to use batch input after the commit .
2005 Aug 04 11:24 AM
Hi,
use the addition ON COMMIT in the perform.
PERFORM sub_form ON COMMIT.
2005 Aug 04 11:48 AM
2005 Aug 04 11:57 AM
Hi,
You can use the level (LEVEL idx) with perform on commit.
Give a high value like 99. This will ensure that your subroutine will be the last one which will be executed from the commit queue.
But this will be still in the commit work not after.
Thanks
Vinod
2005 Aug 04 12:45 PM
Not sure if this helps you but this event is fired, when commit work is fired.
Christian
report test.
class lcl_event_handler definition.
public section.
class-methods: on_commit_finished
for event COMMIT_FINISHED
of CL_OS_TRANSACTION_END_NOTIFIER.
endclass.
set handler lcl_event_handler=>on_commit_finished.
commit work.
class lcl_event_handler implementation.
method on_commit_finished.
break-point.
endmethod.
endclass.
But check also oss note 704577
2005 Aug 04 11:55 AM
Hi,
in which context do you want to do something? I guess, it's not a Z-report, that would be simple.
But it's also not every commit in system. There is no general answer (at least I don't know any), but there might be several options in a special case.
Regards,
Christian
2005 Aug 04 1:33 PM
thanks for your answer , but i have a user exit before the commit of sap standard .
and there aren't user exit after .
it's about transaction vl32n . i need to use batch input after the commit .
2005 Aug 04 1:59 PM
so I guess you would like to perform the routne after to avoid lock conflicts.
I am not sure about that transaction but since you are talking of batch input why not scheduling the BI (via Job scheduling - there are a couple of Function modules to achieve that rather easily) with some kind of delay to avoid these conflicts.
Christian