<?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: background updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249587#M486046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sundeep,&lt;/P&gt;&lt;P&gt;                    have u used Bapi_transaction_commit after using the bapi so that it will trigger the database. Use BAPI alone cant hit the D/B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;alosn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 May 2007 05:09:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-12T05:09:25Z</dc:date>
    <item>
      <title>background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249586#M486045</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 hav a program , in which i am creating a material document( using bapi goods mvt create). and using the generated material document number am updating a custom table. am running this in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is when i cancell the background job, some times , the last generated material document is not updated in my custom table . ( since i might hav cancelled the job immediatley after the material document is created )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do we hav any provision , so that my job should get cancelled only after the custom table is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 04:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249586#M486045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T04:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249587#M486046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sundeep,&lt;/P&gt;&lt;P&gt;                    have u used Bapi_transaction_commit after using the bapi so that it will trigger the database. Use BAPI alone cant hit the D/B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;alosn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 05:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249587#M486046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T05:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249588#M486047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alson ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hav used transaction commit. after doing the transaction commit , am updating a custom table with the material number. My problem is , when i cancel the background job , some times the material doc no is not getting updated into the custom table . i want to prevent this situation . Do we hav any provision in sap , so that the background program should get cancelled only after updation of custom table with the material document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 05:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249588#M486047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T05:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249589#M486048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sudeep,&lt;/P&gt;&lt;P&gt;               i guess u must be using either update or modify stmt to udpdate ur custom table bcz i guess a standard bapi cant update a ztable.&lt;/P&gt;&lt;P&gt;             can u clarify regarding this, i mean wht happens when u run that bapi.&lt;/P&gt;&lt;P&gt;if u use update or modify they will directly hit the d/b table but u have to use comiit work and wait stmt. if u can elaborate ur reqmt i can give a sol. one morething if u r using upload or download functionmodules, they doesnt support BG processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;alson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 06:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249589#M486048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T06:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249590#M486049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi alson ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Yes , u r right. I am  using moidfy statement in order to update the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can use commit and wait while updating the ztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandeep .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 08:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249590#M486049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249591#M486050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the statement commit work and wait for 5 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But can you please elaborate your requirement, as you are saying you need to update the ZTABLE even if you are canceling the background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 08:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249591#M486050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T08:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249592#M486051</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; i am creating material document using bapi_goods_mvt .  &lt;/P&gt;&lt;P&gt;this material creation is in a loop . i.e. I am creating more than one material documents at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after creating every material document number, with that material document number (MBLNR), am manually updating a ztable using modify statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now , my porblem is when  my user cancel the job . &lt;/P&gt;&lt;P&gt;In a situation , a material document is generated and begore it gets updated into ztable if my user cancelles the job ,my ztable is not updated with the newly created material document.&lt;/P&gt;&lt;P&gt; I should program in such a way that after generating a material document , it must update the ztable , then only the program should be stopped.How can i do dat?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;evidently , i Hav no problem if my user doesnt cancel the job .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 08:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249592#M486051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T08:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249593#M486052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;You can't stop the user from canceling the background job. &lt;/P&gt;&lt;P&gt;So what you can do is if the user is canceling the job then you should invoke the Fm BAPI_TRANSACTION_ROLLBACK instead of commit.&lt;/P&gt;&lt;P&gt;This will make sure that the material document will not get created if the user cancels the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 08:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249593#M486052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: background updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249594#M486053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Probably u can try to invoke a deliberate delay time to update the table, so that there is enough time to update ur ZTable. This u can do by, creating a dummy loop, for the necessary delay time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2007 09:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-updation/m-p/2249594#M486053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-12T09:13:40Z</dc:date>
    </item>
  </channel>
</rss>

