<?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: Handle error or warning message in updata task fm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194400#M1824295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using in Update task, that is asynchronous. The values to update are send in a separate LUW, an update LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will nedd to add checks before you call the update module like read the database if the entry already exist or any other error warning that you are expecting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 10:28:17 GMT</pubDate>
    <dc:creator>PeterJonker</dc:creator>
    <dc:date>2014-03-19T10:28:17Z</dc:date>
    <item>
      <title>Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194395#M1824290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an requirement of creating materials. I am doing this in an update task FM. Now i want that if some error comes during creation of material then i display them in an alv on the screen.So inside the FM in case of error i populated it in the tables parameter of FM.But when i come back to the calling program this table is always coming empty. Could anybody please explain how to solved this problem or how we can pass the data back to the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 09:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194395#M1824290</guid>
      <dc:creator>abhishek_diwvedi</dc:creator>
      <dc:date>2014-03-19T09:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194396#M1824291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, this type of error cannot be handled in the calling routine. They occur after the update has been passed. &lt;/P&gt;&lt;P&gt;You have to use SM13 or SM14 to examine the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 09:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194396#M1824291</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2014-03-19T09:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194397#M1824292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you cant use exporting / changing / tables parameters in update task as it is not synchronous. You can't easily get the success / erro information. Therefore your code has to be written so that all errors are catched before the update task function module is called. You can turn on the update debugging and test, what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 09:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194397#M1824292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-19T09:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194398#M1824293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 10:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194398#M1824293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-19T10:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194399#M1824294</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;But if i am updating in synchronus mode then the calling routine wait for the update work to be completed.But even in this case i am getting the tables parameters empty..If we are not able to find out in calling routine that whethere updation has been successful or not then what is the advantage of synchronus update.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 10:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194399#M1824294</guid>
      <dc:creator>abhishek_diwvedi</dc:creator>
      <dc:date>2014-03-19T10:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194400#M1824295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using in Update task, that is asynchronous. The values to update are send in a separate LUW, an update LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will nedd to add checks before you call the update module like read the database if the entry already exist or any other error warning that you are expecting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 10:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194400#M1824295</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2014-03-19T10:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194401#M1824296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why Update Task FM? If you can use STARTING NEW TASK.....then I think below option is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether this is correct (haven't tried)....but there is one more addition called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;... {CALLING meth}|{PERFORMING subr} ON END OF TASK&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case....u can mention a subroutine which would be called after the FM is executed in ....&lt;/P&gt;&lt;P&gt;and you can pass your parameters also...which could be retrieved using below addition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;RECEIVE RESULTS FROM FUNCTION func&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [KEEPING TASK]&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A class="blue" href="https://community.sap.com/"&gt;parameter_list&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="qtext"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194401#M1824296</guid>
      <dc:creator>former_member212005</dc:creator>
      <dc:date>2014-03-19T13:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194402#M1824297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess because it is an Update Function Module that is the reason why he used Update task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194402#M1824297</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2014-03-19T13:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194403#M1824298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what has been written....it seems he designed the FM as an update function module....So I am trying to understand what might be the reason behind this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:33:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194403#M1824298</guid>
      <dc:creator>former_member212005</dc:creator>
      <dc:date>2014-03-19T13:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194404#M1824299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you confirm you are creating a material reference by directly calling a standard update task FM without any database consistency check and only raising database-sql errors ? (Correct answer is 'No')&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, 19 Mar 2014 13:33:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194404#M1824299</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-03-19T13:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Handle error or warning message in updata task fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194405#M1824300</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;Do you know how an update BAPI&amp;nbsp; ( Create, Change ) works .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) At First, it does validation for important fields for every tables passed in the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;perform check_on_header. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp; In the subroutine called, if error occurs, it sets sy-subrc value to 8 and fills the bapireturn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc &amp;lt; 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;perform check_on_items.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check sy-subrc &amp;lt; 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end, when all the data is clean, it calls the update task&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'BAPI_XXX_POST' in update task.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) We check the return parameters of the bapi call and if successful call '&lt;STRONG&gt;BAPI_TRANSACTION_COMMIT'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) The actual posting in '&lt;STRONG&gt;BAPI_XXX_POST'&lt;/STRONG&gt; happens once commit work statement is called in &lt;STRONG&gt;'BAPI_TRANSACTION_COMMIT'&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You too have to adopt similar approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DPM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 13:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-error-or-warning-message-in-updata-task-fm/m-p/10194405#M1824300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-19T13:57:19Z</dc:date>
    </item>
  </channel>
</rss>

