<?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 dynamic report scheduling / submit report AND CONTINUE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884286#M1325421</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;I have a requirement a bit complicated for me (I've never done before): I have to launch a material price update while registering with MIGO: I found the correct exit but I cannot update, because while registering, MIGO locks material and the exit is triggered while lock is still on and so my update cannot be done; I have a report that makes update and I thought I can solve it in two ways (that I don't know if are possible):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) in user exit, I could launch report without stopping transaction waiting report has finisched(like to start a thread ) then I should put a WAIT UNTIL n SECONDS in the report to let the MIGO release lock on material and then update data.&lt;/P&gt;&lt;P&gt;2) schedule a job dynamically to start n seconds after the user exit is reached so that the MIGO ends its processes and material lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody can give me an hint about these solutions?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2009 14:33:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-20T14:33:39Z</dc:date>
    <item>
      <title>dynamic report scheduling / submit report AND CONTINUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884286#M1325421</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;I have a requirement a bit complicated for me (I've never done before): I have to launch a material price update while registering with MIGO: I found the correct exit but I cannot update, because while registering, MIGO locks material and the exit is triggered while lock is still on and so my update cannot be done; I have a report that makes update and I thought I can solve it in two ways (that I don't know if are possible):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) in user exit, I could launch report without stopping transaction waiting report has finisched(like to start a thread ) then I should put a WAIT UNTIL n SECONDS in the report to let the MIGO release lock on material and then update data.&lt;/P&gt;&lt;P&gt;2) schedule a job dynamically to start n seconds after the user exit is reached so that the MIGO ends its processes and material lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody can give me an hint about these solutions?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;gabriele&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884286#M1325421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T14:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic report scheduling / submit report AND CONTINUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884287#M1325422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriele,&lt;/P&gt;&lt;P&gt;I finally understand your requirment. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i suggest is that after the MIGO is done trigger a workflow.&lt;/P&gt;&lt;P&gt;In this workflow you can submit your program to update the material price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An another alternative is to call a FM in background as a separate task in the BADI MB_DOCUMENT_BADI in the method MB_DOCUMENT_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this FM write your code to update the material price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the material document is posted, this FM will start as a separate task on commit work and it will update the price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankur Parab on Jul 20, 2009 8:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884287#M1325422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T14:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic report scheduling / submit report AND CONTINUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884288#M1325423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will not suggest 1 option you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. if any user locks a for longer time, then in that case whether do your program wait till that time ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible options&lt;/P&gt;&lt;P&gt;1. Find a after save user exit in MIGO, and code it&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Within the user exit update data to custom table, then write a background program take entries from this and process. and schedule this for 2 to 5 minutes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884288#M1325423</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-07-20T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic report scheduling / submit report AND CONTINUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884289#M1325424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what exactly is workflow because I am really new ni this world (can you explain me pleaz or post me some link about this); for now I solved in this way: I submit the report for update via a job scheduled in background with VIA JOB statement and in the report I wait 15 seconds for the MIGO ends.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:57:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884289#M1325424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic report scheduling / submit report AND CONTINUE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884290#M1325425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Creating a JOB is not a ideal solution.&lt;/P&gt;&lt;P&gt;Since if MIGO goes into error your JOb might still run which is not advisable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incase you do not know a workflow then you can try the other solution.&lt;/P&gt;&lt;P&gt;Create a FM in which you add your code to update the material price.&lt;/P&gt;&lt;P&gt;Make this FM as a RFC FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implement the BADI MB_DOCUMENT_BADI&lt;/P&gt;&lt;P&gt;In the method MB_DOCUMENT_UPDATE  call this FM in background starting as a new task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION func IN BACKGROUND TASK &lt;/P&gt;&lt;P&gt;DESTINATION 'NONE'&lt;/P&gt;&lt;P&gt;[AS SEPARATE UNIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO f1 on CALL FUNCTION and read the documentation on CALL RFC function for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use commit work or submit or call transaction statements in this BADI. It will lead to a message termination.&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;Ankur Parab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ankur Parab on Jul 20, 2009 8:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 15:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-report-scheduling-submit-report-and-continue/m-p/5884290#M1325425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T15:06:23Z</dc:date>
    </item>
  </channel>
</rss>

