Skip to Content
author's profile photo Former Member
Former Member

IS-OIL - Invalid ROLLBACK WORK in an update function module


I am getting this dump which points to CL_PO_HEADER_HANDLE_MM========CP.

In the system Update Records (SM13) there is an error for transaction O4NM for custom function ZOIJ_UPDATE_RELATED_DOCS.

I have no experience with OIL module so any advice on how to go about tracing the cause of this error would be appreciated.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 22, 2007 at 09:59 PM

    Hi Warren!

    This is nothing module specific, it's only bad coding.

    You seem to be in a BADI, which is called in update task. There the FM ZOIJ_UPDATE_RELATED_DOCS is called (if I get you right). Somewhere there a rollback work was triggered - which is not allowed in update task -> shortdump.

    You should not trigger any (even implicit) commit work (or rollback work). So no call transaction, call screen, call function remotely...

    Maybe you have to split your task in writing some to do list into a Z-table (without commit) and later a report, which can make the update of the related docs (including a commit).



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Christian Wohlfahrt

      Hi Christian,

      I have an example which I am debugging. The nomination still dumps but with a different message this time SAPSQL_ARRAY_INSERT_DUPREC. Which means there are duplicate records on a database table somewhere! Possibly the logon id I have been assigned causes a different dump message? There is only one nomination causing dumps, the rest are fine. Any ideas?

  • author's profile photo Former Member
    Former Member
    Posted on Mar 14, 2007 at 09:37 AM

    Error was in contract.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.