<?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: Commit within an enhancement point in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193955#M1625511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No..not recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with link:[CALL FUNCTION - IN BACKGROUND TASK|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_BACKGROUND_TASK.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use this before the actual commit of the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 08:37:23 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2011-09-15T08:37:23Z</dc:date>
    <item>
      <title>Commit within an enhancement point</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193954#M1625510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requiremenet to create a notification for a work order at the time of releasing and saving the order. I tried using the BAPI_ALM_NOTIF_CREATE with a save user exit and it worked fine. But failed in 1 case which is, if I manually enter another notification in the object list tab and then release and save the order, there would be an update termination error. In the requirement I have to have all the manually entered notifications as well as the newly created notification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I did is, I found out an enhancement section wherein the order is actually getting saved by a FM CO_ZV_ORDER_POST (which exists already in the enh. point) This FM is internally using a commit work. After this FM call, I am using a Submit program to call a report that i created which uses BAPI to create a notification. And I'm also using a Commit work within this report. WIthout this commit, I will not be able to create the notification. Now my question is that, I'm aware that a commit should not be written in the enhancement point. But since a commit work is already encountered in the FM to save the order, am I safe to use a commit work within the submit program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 07:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193954#M1625510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T07:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Commit within an enhancement point</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193955#M1625511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No..not recommended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with link:[CALL FUNCTION - IN BACKGROUND TASK|http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_BACKGROUND_TASK.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use this before the actual commit of the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 08:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193955#M1625511</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-15T08:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Commit within an enhancement point</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193956#M1625512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the actual commit is happening within a FM CV_ZV_ORDER_POST which was already present in the enhancement section. Do you mean I have to create another FM with my logic in it and call this FM before the order post FM? Can I use a commit in my custom FM? ANd also I have to make sure that even if I have manually entered notifications in the object list tab, all these notifications have to be committed to the database table before I can create a notif. in the background. I'm not getting how this Call FM in background task works. Could you please explain in simple terms?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 09:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193956#M1625512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Commit within an enhancement point</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193957#M1625513</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;First of all did you check for standard badi methods available for this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the actual commit is happening within a FM CV_ZV_ORDER_POST which was already present in the enhancement section. Do you mean I have to create another FM with my logic in it and call this FM before the order post FM? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Remote enabled FM with your logic in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use a commit in my custom FM? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not required. But has to be called just before the commit of CV_ZV_ORDER_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the RFC in background task as seperate unit. You will find several examples( search in SCN )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANd also I have to make sure that even if I have manually entered notifications in the object list tab, all these notifications have to be committed to the database table before I can create a notif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain this more clearly. What do you mean by manually entered notifications ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not getting how this Call FM in background task works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP help explains it clearly. For examples search in SCN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kesav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 09:25:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193957#M1625513</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-09-15T09:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Commit within an enhancement point</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193958#M1625514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have to call the FM just before CO_ZV_ORDER_POST FM commit, then i will have to enhance this FM. But I do not want to modify this FM. &lt;/P&gt;&lt;P&gt;By manually entering notifications, I mean that, earlier I had implemented my logic in a save user exit and it worked fine if the notifications in the object list tab are already saved in the database. But it failed when I release the order, then enter some notifications manually in the object list and then save. This is the time my logic of creating a new notification should should meet. But the new notification is over writing the manually entered notification and in some cases, an update termination error happens. Hence I made a decision to write my logic after the commit in the order post FM and then use a commit again in my logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as per what you said, if i write my logic before the actual commit, then I will be facing the same problem as before i.e., my new notification overwriting the manually entered notification at the time of saving a released order. Hope I'm clear this time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 09:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/commit-within-an-enhancement-point/m-p/8193958#M1625514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T09:41:29Z</dc:date>
    </item>
  </channel>
</rss>

