<?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 Update Task and Submit Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617209#M1941522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a job scheduled to run every minute. In this program's update task I used SUBMIT custom report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this led to dump. So, I called a new wrapper FM for this SUBMIT statement and called it in background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this cause any issues related to conflicts in LUWs or conflicts in update ? Or what might happen if SUBMIT takes too long to return and by that time if it calls another SUBMIT ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 16:46:14 GMT</pubDate>
    <dc:creator>kirankerudi</dc:creator>
    <dc:date>2016-03-11T16:46:14Z</dc:date>
    <item>
      <title>Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617209#M1941522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a job scheduled to run every minute. In this program's update task I used SUBMIT custom report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this led to dump. So, I called a new wrapper FM for this SUBMIT statement and called it in background task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this cause any issues related to conflicts in LUWs or conflicts in update ? Or what might happen if SUBMIT takes too long to return and by that time if it calls another SUBMIT ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617209#M1941522</guid>
      <dc:creator>kirankerudi</dc:creator>
      <dc:date>2016-03-11T16:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617210#M1941523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose of the report? - it's best IMHO not to mess with the update task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 16:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617210#M1941523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-11T16:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617211#M1941524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider converting the report to another object allowed in update task like a FM or method of class that won't break the update task and won't execute in another LUW (raising risk of object already locked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As &lt;SPAN style="font-weight: normal;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/people/richard.harper"&gt;Richard&lt;/A&gt;&lt;/SPAN&gt; wrote, what do you try to perform in the report?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&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>Mon, 14 Mar 2016 12:59:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617211#M1941524</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-03-14T12:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617212#M1941525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please elaborate , why did you called a report from a Update Task and what is this report doing? And now that you call a function module in background task ,do you wait for this background thing to return something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should be registered as part of the current LUW unless you write AS SEPARATE UNIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 13:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617212#M1941525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-14T13:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617213#M1941526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of the report program is to check delivery completion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in update task, I have written logic to update a custom Z-TABLE with delivery quantities. So after update I will call this report which will check for delivery completion and would set a flag for those which delivery has been completed in the same Z-TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what might be the possible conflicts ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:28:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617213#M1941526</guid>
      <dc:creator>kirankerudi</dc:creator>
      <dc:date>2016-03-16T13:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617214#M1941527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The update task for one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not write a report in the update task.&amp;nbsp; In fact I wouldn't do anything that I would consider 'standard' business processing in the update task,&amp;nbsp; and what you are doing is basically a standard business process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abandon the idea of doing this in the update task.&amp;nbsp; Find an appropriate user exit and write to your ztable there - making it in the form of a queue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then write your report to report on what is in the queue,&amp;nbsp; removing or marking entries as printed so that they are not reported a second time (I don't know your full scenario),&amp;nbsp; and then submit that as a batch job every so often.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617214#M1941527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-16T13:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617215#M1941528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no suitable exits for this one (J_BNFECALLRFC).. We have created an implicit enhancement just before the commit call. Here in this enhancement we have called an FM in Update Task. This FM will update Z-Table. Within this FM, I called the report update program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617215#M1941528</guid>
      <dc:creator>kirankerudi</dc:creator>
      <dc:date>2016-03-16T13:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617216#M1941529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a different approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a workflow standard task, and point that to your program.&lt;/P&gt;&lt;P&gt;From your implicit enhancement call function SWE_EVENT_CREATE in update task, passing NO_COMMIT_FOR_QUEUE as TRUE, so that a commit doesn't happen.&lt;/P&gt;&lt;P&gt;This call should create a workflow event in the system and trigger your standard task, which will in turn call the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Juwin. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 13:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617216#M1941529</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-03-16T13:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Update Task and Submit Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617217#M1941530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your update program is running as a V1 update right so, why don't you write the statistical update kind of stuff that you want through your report in a V2 update and may be even update a log for better system wide visibility. Try to run the V2 steps in a collective run for optimised performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 06:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-task-and-submit-program/m-p/11617217#M1941530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-17T06:36:45Z</dc:date>
    </item>
  </channel>
</rss>

