<?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: help req with table updation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036336#M418306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you update the table ztab1 use&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;commit work and wait&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2007 22:02:05 GMT</pubDate>
    <dc:creator>former_member187255</dc:creator>
    <dc:date>2007-03-09T22:02:05Z</dc:date>
    <item>
      <title>help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036333#M418303</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 AM FACING A PECULIAR SITUATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE TWO ZPROGRAMS  SAY ZPGM1 AND ZPGM2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IAM CALLING ZPGM2 AT THE END OF ZPM1. sO WHEN I EXECUTE ZPGM1 , IAM INDIRECTLY EXECUTING BOTH PROGRAMS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN zpgm1 before calling zpgm2 , iam updating a ztable (say ztab1) with a record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i am retriving the same record from ztab1 in the zpgm2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reasons its behaves in a odd way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some times zpgm2 is unable to retrieve that record from ztab1, but some times i am able to retrieve it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After updating the ztab1 in zpgm1 i am using commit work and wait for 1 sec too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for some reason its nt able to retrieve the record when the control goes to zpgm2 because i guess its not updated .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most difficult part is i don't know when its happening .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i execute 100 times it works fine and in the next when i execute it won't for the first but after first time it works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know as to what iam missing in here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Kajol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 21:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036333#M418303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T21:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036334#M418304</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;INstead of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;WAIT FOR 1 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 21:57:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036334#M418304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T21:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036335#M418305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kajol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Parameter ID for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some times wat happens after updating the table immideatly if you are executing any another comment for the same entery it doesnt work. So first check weather table is getting updated after execution of first report and without executing second if it working then you can use Parameter ID.&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;Swapnil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 21:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036335#M418305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T21:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036336#M418306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After you update the table ztab1 use&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;commit work and wait&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 22:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036336#M418306</guid>
      <dc:creator>former_member187255</dc:creator>
      <dc:date>2007-03-09T22:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036337#M418307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kajol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the way you are working opens the door for data inconsistencies. Do not call a program from another program if table update processes are involved. This opens the door for data inconsistencies. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create functions modules for the table update processes, put the logic into modules and create one program for both purposes.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 22:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036337#M418307</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-03-09T22:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036338#M418308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kajol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah this type of Errors occur Rarely, But you need to use BAPI_Transaction_commit. Because this module is used only when the BAPI Function modules is used. I dont your Requirement, But usage of Commit work statement is not efficient, Even i experienced same problem for Account postings where for first time the first record was missing, The same thing happened where they have used Commit work statement. Instead of that i have used BAPI_TRANSACTION_COMMIT, It worked well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 23:25:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036338#M418308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-09T23:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036339#M418309</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;Clemens Li  -can you explain this in detail---- Create functions modules for the table update processes, put the logic into modules and create one program for both purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I never used  function modules to update tables.can u throw some light&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam not using BAPI in my program so i cannot use BAPI_TRANSACTION_COMMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE REASON I AM CALLING MY SECOND PROGRAM IS BECAUSE I HAVE AN OPTION IN MY SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when they select it i have to call second program , my second program is adriver program for script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;by using comit and wait works in this case.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;kajol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 00:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036339#M418309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T00:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036340#M418310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi keerthipati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you look at the coding of BAPI_TRANSACTION_COMMIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
function bapi_transaction_commit.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"       IMPORTING
*"             VALUE(WAIT) LIKE  BAPITA-WAIT OPTIONAL
*"       EXPORTING
*"             VALUE(RETURN) LIKE  BAPIRET2 STRUCTURE  BAPIRET2
*"----------------------------------------------------------------------

if wait eq space.
  commit work.
else.
  commit work and wait.
  if sy-subrc ne 0.
    call function 'BALW_BAPIRETURN_GET2'
         exporting
              type       = 'E'
              cl         = 'S&amp;amp;'
              number     = '150'
         importing
              return     = return.
  endif.
endif.
call function 'BUFFER_REFRESH_ALL'.
endfunction.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may notice that this FM does just a COMMIT WORK. The  function 'BUFFER_REFRESH_ALL' will only do something, if &lt;/P&gt;&lt;P&gt;BUFFER_SUBSCRIBE_FOR_REFRESH has been called before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, Commit work and BAPI_TRANSACTION_COMMIT is just the same.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 14:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036340#M418310</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-03-10T14:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036341#M418311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didnot get your point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me as what i should with my problem. I would apperciate if you tell me with an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 22:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036341#M418311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-10T22:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036342#M418312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kajol,  are you saying that COMMIT WORK AND WAIT does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 22:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036342#M418312</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-03-10T22:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036343#M418313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kajol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a comment on  keerthipati recommending BAPI_COMMIT as opposed to simple COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommended earlier not to call one program from the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about the question Rich asked?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2007 23:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036343#M418313</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-03-10T23:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036344#M418314</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;Is there a differnce between &lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;P&gt;WAIT FOR 1 SECONDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK AND WAIT ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i thought both function the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dodnot tried COMMIT WORK AND WAIT  statment, AGAIN IT WORKS MOST OF THE TIMES BUT SOMETIMES IT DOESN'T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2007 04:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036344#M418314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-11T04:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: help req with table updation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036345#M418315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI kajol&lt;/P&gt;&lt;P&gt;  How are u retreiving this record in your second program. If you are using a Select statement, then try to use BYPASSING BUFFER addition in your select statement. Check if this works out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;FROM spfli &lt;/P&gt;&lt;P&gt;INTO TABLE t_spfli &lt;/P&gt;&lt;P&gt;BYPASSING BUFFER &lt;/P&gt;&lt;P&gt;WHERE carrid EQ 'AA'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2007 05:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-req-with-table-updation/m-p/2036345#M418315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-11T05:14:09Z</dc:date>
    </item>
  </channel>
</rss>

