<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IS-OIL - Invalid ROLLBACK WORK in an update function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939227#M388039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump points to method PO_POST in class CL_PO_HEADER_HANDLE_MM, i.e.;&lt;/P&gt;&lt;P&gt;000540     IF l_result &amp;lt;&amp;gt; 0.                   &lt;/P&gt;&lt;P&gt;000550       IF l_result EQ 1.                 &lt;/P&gt;&lt;P&gt;000560         MESSAGE a816(me) WITH 'po_post'.&lt;/P&gt;&lt;P&gt;000570       ELSE.                             &lt;/P&gt;&lt;P&gt;000580   *                                     &lt;/P&gt;&lt;P&gt;000590   * a desaster occured: rollback work   &lt;/P&gt;&lt;P&gt;000600   *                                     &lt;/P&gt;&lt;P&gt;     &amp;gt;         ROLLBACK WORK.                  &lt;/P&gt;&lt;P&gt;000620       ENDIF.                            &lt;/P&gt;&lt;P&gt;000630       RAISE failure.                    &lt;/P&gt;&lt;P&gt;000640     ENDIF.                              &lt;/P&gt;&lt;P&gt;000650                                         &lt;/P&gt;&lt;P&gt;000660   ENDMETHOD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SM13 is as follows:&lt;/P&gt;&lt;P&gt;OIJ_STAGES_WRITE_DOCUMENT       V1 NORMAL         OK                  &lt;/P&gt;&lt;P&gt;OIJ_NOMST_UPDATE                V1 NORMAL         OK                  &lt;/P&gt;&lt;P&gt;ZOIJ_UPDATE_RELATED_DOCS        V2 NORMAL         Err                 &lt;/P&gt;&lt;P&gt;                           &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Warren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2007 09:07:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-23T09:07:39Z</dc:date>
    <item>
      <title>IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939223#M388035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting this dump which points to CL_PO_HEADER_HANDLE_MM========CP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the system Update Records (SM13) there is an error for transaction O4NM for custom function ZOIJ_UPDATE_RELATED_DOCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no experience with OIL module so any advice on how to go about tracing the cause of this error would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Warren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 13:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939223#M388035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-22T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939224#M388036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Warren!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is nothing module specific, it's only bad coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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 -&amp;gt; shortdump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not trigger any (even implicit) commit work (or rollback work). So no call transaction, call screen, call function remotely... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2007 21:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939224#M388036</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-02-22T21:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939225#M388037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help. The error occurs when they run O4NM so am trying to get the documents they are using on Prod replicated in QA to debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Warren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 07:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939225#M388037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T07:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939226#M388038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Warren!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought you have short dumps, linked to update termination (SM13). Just have a look inside the short dump, the 'wrong' statement should be pointed at in the source code extract. No need for difficult debugging, simple code analysis of the dump should be enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 08:14:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939226#M388038</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-02-23T08:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939227#M388039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump points to method PO_POST in class CL_PO_HEADER_HANDLE_MM, i.e.;&lt;/P&gt;&lt;P&gt;000540     IF l_result &amp;lt;&amp;gt; 0.                   &lt;/P&gt;&lt;P&gt;000550       IF l_result EQ 1.                 &lt;/P&gt;&lt;P&gt;000560         MESSAGE a816(me) WITH 'po_post'.&lt;/P&gt;&lt;P&gt;000570       ELSE.                             &lt;/P&gt;&lt;P&gt;000580   *                                     &lt;/P&gt;&lt;P&gt;000590   * a desaster occured: rollback work   &lt;/P&gt;&lt;P&gt;000600   *                                     &lt;/P&gt;&lt;P&gt;     &amp;gt;         ROLLBACK WORK.                  &lt;/P&gt;&lt;P&gt;000620       ENDIF.                            &lt;/P&gt;&lt;P&gt;000630       RAISE failure.                    &lt;/P&gt;&lt;P&gt;000640     ENDIF.                              &lt;/P&gt;&lt;P&gt;000650                                         &lt;/P&gt;&lt;P&gt;000660   ENDMETHOD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SM13 is as follows:&lt;/P&gt;&lt;P&gt;OIJ_STAGES_WRITE_DOCUMENT       V1 NORMAL         OK                  &lt;/P&gt;&lt;P&gt;OIJ_NOMST_UPDATE                V1 NORMAL         OK                  &lt;/P&gt;&lt;P&gt;ZOIJ_UPDATE_RELATED_DOCS        V2 NORMAL         Err                 &lt;/P&gt;&lt;P&gt;                           &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Warren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 09:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939227#M388039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939228#M388040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found identical coding in my (non IS-OIL) system, so this is pure standard SAP coding. Would be something for an OSS message call, but on the other hand, your SM13 looks like you have a process, where in an update task a Z-function module tries to change some data with standard functions in a buggy way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1): you can re-produce the error without the Z-function in a different way -&amp;gt; OSS message&lt;/P&gt;&lt;P&gt;Option 2): whatever the Z-function is trying to do, in this circumstance (update task) it's not OK -&amp;gt; program design change. Obviously in an update task, a rollback work is to late - update tasks are only &amp;lt;i&amp;gt;started&amp;lt;/i&amp;gt; after a commit work. The different sessions run independently, so no consistent way back is possible.&lt;/P&gt;&lt;P&gt;What is done in ZOIJ_UPDATE_RELATED_DOCS? Can it be performed in a different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 09:28:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939228#M388040</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-02-23T09:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939229#M388041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZOIJ_UPDATE_RELATED_DOCS is doing an Update of related documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I need to get hold of the actual documents and try and replicate this on QA?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weird thing is that there is a Update error message today (exactly the same error for the same function module) for transaction VA03 which is simply to display Sales Orders?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM, ZOIJ_UPDATE_RELATED_DOCS, gets the document data using standard functions OIJNOMH_SINGLE_READ and OIJNOMI_ARRAY_READ. Then it performs various data checks followed by the updates. I think I will have to include additional checks at this point to exclude certain documents from being included in the update. Does this sound correct to you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Warren.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 09:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939229#M388041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T09:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939230#M388042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Warren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem in VA03 only tells, the same enhancement was done in exits of VA0x (and maybe no check for 'is this creation / change / display' was included!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your reading functions should have no effect for the update. If you have to reduce the number of found documents - it's a business question, not a technical question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is: how is this update done? Even if you have some standard FM for this - this function might be desinged to run in a dialog session - then you can't use it in an update task exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slowly I begin to understand, your dump occurs only rarely, not every time. Then it's perhaps indeed a special situation of the documents, where the document update is not possible, an internal error message get's raised, which is followed later with the rollback work -&amp;gt; dump. But it's not just a simple invalid call, there is a serious problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case it's VA03, try to find the sales doc number somewhere in the variable value display of the dump. Then you should be able to reproduce the error, maybe even find a sales doc in QA system of same kind (and problem).&lt;/P&gt;&lt;P&gt;Then even update debugging with breakpoints at statement 'raise' (and maybe 'message', too) can help you, if you don't have any other idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 10:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939230#M388042</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-02-23T10:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939231#M388043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how the update is being done. Am trying to hold of the documents that caused the error so that I can replicate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct, the dump only occurs occassionally and not every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to find the sales doc number but unfortunately this is not in the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a where used list on the function and found one where it is called in update task which I think is where it is falling over:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in cases where the nomination update is called&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from a CT contract, sales order etc&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;we dont want to update the related document&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;or it will cause locking issues and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;circular reference&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;flag can be set in BAPI header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Further to this&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;there are cases where there are many nomination Idocs&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;entering the system,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the nomination update calls the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OIJU_RD_UPDATE_OBJ_ENTRIES function&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the related document update calls the same function&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this is normally not a problem as the V2 update will&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;not intefere with the normal V1 update&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;but in the case of multiple nomiantions, even when called&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;synchronously, the V2 update from the first related doc\&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;update is causing issues with the secon nomination V1 update&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;deadlocks ensue&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;therefore - setting the flag to '1' in the BAPI header will e&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ensure the related document update is called in the same task&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in cases = '1' the update is called from validation&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;routine in order for message handling&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CASE is_nom_header-zz_no_rel_upd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WHEN space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;gt;&amp;gt;&amp;gt; lock CT contracts to be updated in update task      "SD1K952062&lt;/P&gt;&lt;P&gt;**--- exported in method DATABASE_UPDATE_PREPROCESSING&lt;/P&gt;&lt;P&gt;        import ZOIJ_EVENT to ct_nom_event from memory id 'ZOIJCTLOCK'&lt;/P&gt;&lt;P&gt; .&lt;/P&gt;&lt;P&gt;        delete ct_nom_event&lt;/P&gt;&lt;P&gt;           where cre_name eq space&lt;/P&gt;&lt;P&gt;           and   updkz    eq space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&amp;gt;&amp;gt;&amp;gt; field changes which also need to be updated        &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   into the related document (STO/PO/SO) will be&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   updted into CT via the related doc i.e.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   BAPI update to STO/PO/SO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   other changes i.e. the event dates are updated&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   directly from NOMI into the CT contract&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   for those cases we need to lock the CT contract&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;**&amp;gt;&amp;gt;&amp;gt; check how the CT contract needs to be updated&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   Nothing changed =  from NOMI directly&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   Data changed    =  via related document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;        call function 'ZOIJ_CHECK_DATA_CHANGED'&lt;/P&gt;&lt;P&gt;           EXPORTING  nomtk    = is_nom_header-nomtk&lt;/P&gt;&lt;P&gt;                      i_nomh   = is_cd_oijnomh_new&lt;/P&gt;&lt;P&gt;                      i_nomi   = lt_nomi&lt;/P&gt;&lt;P&gt;           CHANGING   chg_flag = chg_flag&lt;/P&gt;&lt;P&gt;           EXCEPTIONS nothing_changed = 4&lt;/P&gt;&lt;P&gt;                      data_changed    = 8&lt;/P&gt;&lt;P&gt;                      others          = 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if sy-subrc eq 4 and                             &lt;/P&gt;&lt;P&gt;           chg_flag is initial.                         &lt;/P&gt;&lt;P&gt;**--- direct update from NOMI if event dates have changed&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;   check if such changes and lock the CT contract&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;          call function 'ZOIJ_LOCK_RELATED_CONTRACTS'&lt;/P&gt;&lt;P&gt;             tables it_oijnomi = lt_nomi&lt;/P&gt;&lt;P&gt;                    it_oijne   = ct_nom_event.&lt;/P&gt;&lt;P&gt;       endif.                                            &lt;/P&gt;&lt;P&gt;**&amp;lt;&amp;lt;&amp;lt; end                                                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'ZOIJ_UPDATE_RELATED_DOCS' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;             EXPORTING&lt;/P&gt;&lt;P&gt;                  nomtk    = is_nom_header-nomtk&lt;/P&gt;&lt;P&gt;                  mem_tab  = mem_tab&lt;/P&gt;&lt;P&gt;                  i_nomh   = is_cd_oijnomh_new&lt;/P&gt;&lt;P&gt;                  i_nomi   = lt_nomi&lt;/P&gt;&lt;P&gt;             TABLES&lt;/P&gt;&lt;P&gt;                  it_oijne = lt_oijne                       &lt;/P&gt;&lt;P&gt;             EXCEPTIONS&lt;/P&gt;&lt;P&gt;                  error    = 1&lt;/P&gt;&lt;P&gt;                  OTHERS   = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 12:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939231#M388043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-23T12:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939232#M388044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the last FM should use an update task, that's not necessarily the place, where it is already in update task. But the parameter 'in update task' is ignored, when the coding is already in update task.&lt;/P&gt;&lt;P&gt;In the comments already problems with locking and circular references are mentioned - seems like there is another person, which knows a little bit more about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you need an example and you have to find out, what causes the error in the update inside of ZOIJ_LOCK_RELATED_CONTRACTS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2007 13:17:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939232#M388044</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-02-23T13:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939233#M388045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2007 09:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939233#M388045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-26T09:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939234#M388046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error was in contract.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 09:37:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939234#M388046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T09:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: IS-OIL - Invalid ROLLBACK WORK in an update function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939235#M388047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What was wrong with the contract?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 10:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/is-oil-invalid-rollback-work-in-an-update-function-module/m-p/1939235#M388047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T10:55:07Z</dc:date>
    </item>
  </channel>
</rss>

