<?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: Change Notification Data when saving a maintenance order - Notification is locked in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720939#M2019764</link>
    <description>&lt;P&gt;Thanks a lot for your help. &lt;/P&gt;&lt;P&gt;That didn't solve my issue but maybe it was me who missed some step after the function call.&lt;/P&gt;&lt;P&gt;I solved the issue with a batch program. This was not the way I wanted to solve it but the deadline is very close.&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 11:40:37 GMT</pubDate>
    <dc:creator>former_member324377</dc:creator>
    <dc:date>2022-12-06T11:40:37Z</dc:date>
    <item>
      <title>Change Notification Data when saving a maintenance order - Notification is locked</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720937#M2019762</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I am trying to edit two fields in notification header data when I save the associated maintenance order.&lt;/P&gt;
  &lt;P&gt;For that I'm using user-exit EXIT_SAPLCOIH_009. I am doing some checks in this user-exit and if all is true, I call a Z function in UPDATE TASK that calls FM: BAPI_ALM_NOTIF_DATA_MODIFY and BAPI_ALM_NOTIF_SAVE.&lt;/P&gt;
  &lt;P&gt;The problem here is that I always get the error message from the first BAPI IM 416 - Notification x locked by user (that's me).&lt;/P&gt;
  &lt;P&gt;I've tried BADI WORKORDER_UPDATE but the problem remain and already set an WAIT UP TO 2 SECONDS in the top of the update task function.&lt;/P&gt;
  &lt;P&gt;Can anyone help? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 18:05:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720937#M2019762</guid>
      <dc:creator>former_member324377</dc:creator>
      <dc:date>2022-12-05T18:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Notification Data when saving a maintenance order - Notification is locked</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720938#M2019763</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;carlos91moreira&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'd suggest to call the notification update in a separate logical unit of work (LUW) using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION func IN BACKGROUND TASK AS SEPARATE UNIT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That's basically the same approach that I'v suggested here: &lt;A href="https://answers.sap.com/questions/13768145/what-is-badiexit-to-enhance-cj20n-after-click-save.html?childToView=13768150" target="_blank"&gt;https://answers.sap.com/questions/13768145/what-is-badiexit-to-enhance-cj20n-after-click-save.html?childToView=13768150&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You'd need to create a custom RFC-enabled function module. The function should call both BAPI_ALM_NOTIF_DATA_MODIFY and BAPI_ALM_NOTIF_SAVE to update the notification. Make sure to test the RFC function first, to make sure the notification is updated correctly. Then integrated a call with "IN BACKGROUND TASK AS SEPARATE UNIT" in the BAdI implementation.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 18:46:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720938#M2019763</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2022-12-05T18:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Change Notification Data when saving a maintenance order - Notification is locked</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720939#M2019764</link>
      <description>&lt;P&gt;Thanks a lot for your help. &lt;/P&gt;&lt;P&gt;That didn't solve my issue but maybe it was me who missed some step after the function call.&lt;/P&gt;&lt;P&gt;I solved the issue with a batch program. This was not the way I wanted to solve it but the deadline is very close.&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 11:40:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720939#M2019764</guid>
      <dc:creator>former_member324377</dc:creator>
      <dc:date>2022-12-06T11:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change Notification Data when saving a maintenance order - Notification is locked</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720940#M2019765</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;carlos91moreira&lt;/SPAN&gt; Probably my explanation was too brief. I've updated the answer. See if that helps you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 12:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720940#M2019765</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2022-12-06T12:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change Notification Data when saving a maintenance order - Notification is locked</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720941#M2019766</link>
      <description>&lt;P&gt;Hello, I did all of that the first time but didn't work. Tried again and it worked. It was very late, probably did something wrong that I didn't double check. Anyway, just to thank you once again. That solution worked.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 11:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-notification-data-when-saving-a-maintenance-order-notification-is/m-p/12720941#M2019766</guid>
      <dc:creator>former_member324377</dc:creator>
      <dc:date>2022-12-14T11:55:26Z</dc:date>
    </item>
  </channel>
</rss>

