<?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: How do we know if  the Update function module is executed? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731264#M1874085</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A third alternative could be coded in an implicit enhancement at start of BELEG_SICHERN, just set us_syncro so COMMIT will be executed with a WAIT option. But don't forget to bypass buffer when reading database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also did you look for PR number in xvbep internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Nov 2014 12:23:53 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2014-11-26T12:23:53Z</dc:date>
    <item>
      <title>How do we know if  the Update function module is executed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731261#M1874082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement of showing the corresponding purchase requisition number when we create the sales order. I have Created an Implicit enhancement at the end of the subroutine BELEG_SICHERN in the program SAPMV45A. This is the subroutine that shows the sales order number creation status message at the status bar. I am supposed to query the VBEP here to pull the Purchase Requisition No. However the problem is that the process of creating the Purchase requisition is an asynchronous process and it is done via an update function module ( ME_UPDATE_REQUISITION ). I am not always getting the corresponding purchase requisition number due to this. I have done a work around by adding a 1 sec delay. Just wanted to check if there is any other method to wait till the update function module is done with the PR creation so that I get the PR number always. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Ajith Cheruvally &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 09:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731261#M1874082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-26T09:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do we know if  the Update function module is executed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731262#M1874083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could wrap your code in a RFC enabled function, and CALL it &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_background_task.htm"&gt;IN BACKGROUND TASK&lt;/A&gt;, so it will be executed after the execution of high-priority update function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Alternative 1 : The end of high-priority update FM will release the locks of the transaction, so a call to the relative ENQUEUE FM with WAIT option could also do the job (Better than a WAIT for 1 second).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Alternative 2 : If you only want to update some customer table, you could also create a low-priority ("VB2") update function module and CALL it &lt;A href="http://help.sap.com/abapdocu_731/en/abapcall_function_update.htm"&gt;IN UPDATE TASK&lt;/A&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 09:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731262#M1874083</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-11-26T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do we know if  the Update function module is executed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731263#M1874084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The objective is to concatenate the the newly generated Purchase Requisition Number along with the sales order number and show at the VA01 status bar message. So, we need to be able to get the PR number before the VA01 screen displays the newly created sales order number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/594561" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I think I have to try the alternative 1 suggested by you.. not sure how to do it though .. any other thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Ajith Cheruvally&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 10:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731263#M1874084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-26T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do we know if  the Update function module is executed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731264#M1874085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A third alternative could be coded in an implicit enhancement at start of BELEG_SICHERN, just set us_syncro so COMMIT will be executed with a WAIT option. But don't forget to bypass buffer when reading database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also did you look for PR number in xvbep internal table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 12:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731264#M1874085</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-11-26T12:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do we know if  the Update function module is executed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731265#M1874086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will give a try. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you asked about the xvbep internal table, yes.. I had checked it and I am able to see the PR number there. But I was not sure whether to use it before the update is really committed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajith Cheruvally &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731265#M1874086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-26T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do we know if  the Update function module is executed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731266#M1874087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the commit and wait does not raise an error (SM13) you can use the value of xvebp. And if the update task fails, then the order number too will be false too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731266#M1874087</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-11-26T13:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do we know if  the Update function module is executed?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731267#M1874088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Raymond, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am considering implement &lt;SPAN class="L0S52"&gt;enhancement-section&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;beleg_sichern_21 &lt;SPAN class="L0S52"&gt;spots &lt;/SPAN&gt;es_sapmv45a because the &lt;SPAN style="color: #333333; font-size: 12px;"&gt; us_syncro&lt;/SPAN&gt; flag has been used in other parts of the program as well and we could avoid any conflicts. I will replace the code with just the addition of setting this flag in the beginning and then clearing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;ENHANCEMENT &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;2&amp;nbsp; &lt;/SPAN&gt;ZEM_SHOW_PR_WITH_SO&lt;SPAN class="L0S55"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"inactive version&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;CONSTANTS &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;c_dcps_order&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c &lt;/SPAN&gt;LENGTH &lt;SPAN class="L0S32"&gt;4 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;VALUE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZPRT'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" DCPS Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;vbak&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;auart &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;c_dcps_order&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" The sales order being created is DCPS Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; us_syncron &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;abap_true&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;call_function &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;space &lt;SPAN class="L0S52"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;us_syncron &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;charx &lt;SPAN class="L0S52"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call_activity &lt;SPAN class="L0S52"&gt;ne &lt;/SPAN&gt;gc_activity_lord &lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;call_activity &lt;SPAN class="L0S52"&gt;eq &lt;/SPAN&gt;gc_activity_lord &lt;SPAN class="L0S52"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gf_no_commit &lt;SPAN class="L0S52"&gt;is &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;initial &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;us_syncron &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;space&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;commit &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;work&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;else&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;commit &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;work &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;wait&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;else&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;call_activity &lt;SPAN class="L0S52"&gt;ne &lt;/SPAN&gt;gc_activity_lord&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do not set these indicators if the LORD-API&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; saves w/o COMMIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_no_init_config_data &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;charx&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_no_dequeue_sd_sales &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;charx&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;vbak&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;auart &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;c_dcps_order&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" The sales order being created is DCPS Order&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;clear &lt;/SPAN&gt;us_syncron&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDENHANCEMENT&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think this is okay? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Ajith Cheruvally &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 07:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-we-know-if-the-update-function-module-is-executed/m-p/10731267#M1874088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-27T07:30:40Z</dc:date>
    </item>
  </channel>
</rss>

