<?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: Refresh problem after call transaction in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625281#M1441072</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;Sometimes a normal committ statement doesnt work.&lt;/P&gt;&lt;P&gt;Instead use a BAPI and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        wait = wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thoufique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 05:41:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-04T05:41:51Z</dc:date>
    <item>
      <title>Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625276#M1441067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;           I am building a BDC to a transaction and commiting it. When i hit the database, i get the oder values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using any select query. Selection is done using FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i call the BDC again, its happening perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things i have tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Changed mode to S, A, L -  Nothing worked&lt;/P&gt;&lt;P&gt;2. Used wait up to 4 seconds. - Didnt work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other pointers???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 14:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625276#M1441067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625277#M1441068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Your question is not clear.&lt;/P&gt;&lt;P&gt;Please explain clearly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 14:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625277#M1441068</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-03T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625278#M1441069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;            I have a report program developed using OOPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i click on refresh button, the changes should be updated in database using call transaction method and the entire ALV needs to be refreshed with updated values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have coded like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

When 'REFRESH'.
                                    Perform save_to_database.

PERFORM save_to_database.
...... build BDC...
call transaction 'IW32' using mode 'N' update 'A' messages lt_messages.
if sy-subrc eq 0.
commit work and wait.
endif.

endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the above code is executed, the ALV is not refreshed with updated value. Where as when i call perform save_to_database again( twice ), the values are refreshed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Niyaz Ahamed on Feb 3, 2010 3:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 14:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625278#M1441069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-03T14:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625279#M1441070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niyaz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we are going for standard transactions the most reliable way to do it is by using a &lt;STRONG&gt;BAPI&lt;/STRONG&gt; if available.&lt;/P&gt;&lt;P&gt;If any BAPI is available try using it and see the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 05:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625279#M1441070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T05:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625280#M1441071</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;After the BDC is sucessfull U have to modify the internal table whihc is dispalyed in the ALV and in the PBO event before dispalying the container Use the follwoing mehtod &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_alv_grid-&amp;gt;refresh_table_display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jyo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 05:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625280#M1441071</guid>
      <dc:creator>jyotheswar_p2</dc:creator>
      <dc:date>2010-02-04T05:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625281#M1441072</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;Sometimes a normal committ statement doesnt work.&lt;/P&gt;&lt;P&gt;Instead use a BAPI and check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        wait = wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thoufique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 05:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625281#M1441072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T05:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625282#M1441073</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;you have to refresh ALV after performing save_to_database. There are refresh methods for both CL_GUI_ALV_GRID, CL_SALV_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 06:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625282#M1441073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T06:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625283#M1441074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is not with the ALV refresh. The problem is with the Fm which retrives the data, its still returning old values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM CY01_EXTERNAL_INTERNFACE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 06:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625283#M1441074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625284#M1441075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So set importing parameter RESET_ALL_TABLES_IMP to 'X. Maybe also set FLG_RESET_PROFILES to 'X'. Alternatively call CY01_REFRESH_ALL_TABLES and CY27_INITIALIZE_LIMITED_PLAN after (or before) each call of CY01_EXTERNAL_INTERNFACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 06:59:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625284#M1441075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T06:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625285#M1441076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesnt work. Any other solutions???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 09:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625285#M1441076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T09:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625286#M1441077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When i Quit the program completely and execute again, it returns the correct data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to refresh the buffers???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 11:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625286#M1441077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T11:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625287#M1441078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like some global variable is still remaining uncleared. I am sorry, but I have no other ideas. Only to debug it by first run and also by second run and find out on which place a program flow differs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 13:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625287#M1441078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T13:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625288#M1441079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check whether u r clearing &amp;amp; refreshing  ur BDCDATA table after your call tranmsaction statemnet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 14:06:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625288#M1441079</guid>
      <dc:creator>sangeetha_sk</dc:creator>
      <dc:date>2010-02-04T14:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh problem after call transaction</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625289#M1441080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you calling the alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you place the exact structure of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;saving to database&lt;/P&gt;&lt;P&gt;Displayiung alv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 14:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-problem-after-call-transaction/m-p/6625289#M1441080</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-02-04T14:12:21Z</dc:date>
    </item>
  </channel>
</rss>

