<?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: ALV prb in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282710#M1021758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;see my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case r_ucomm.&lt;/P&gt;&lt;P&gt;when '&amp;amp;IC1'. "for double click&lt;/P&gt;&lt;P&gt;*if rs_selfield-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;read table it_main index rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set parameter id 'BES' field it_main-ebeln.&lt;/P&gt;&lt;P&gt;call transaction 'ME22N' and skip first screen.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;*when 'REFRESH'.&lt;/P&gt;&lt;P&gt;  rs_selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;  rs_selfield-exit = 'X'.&lt;/P&gt;&lt;P&gt;*wait up to 1 seconds.&lt;/P&gt;&lt;P&gt;    perform fetch_data.&lt;/P&gt;&lt;P&gt;    refresh it_fieldcat.&lt;/P&gt;&lt;P&gt;    PERFORM fieldcat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM display_ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Jul 2008 11:28:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-30T11:28:47Z</dc:date>
    <item>
      <title>ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282708#M1021756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends, &lt;/P&gt;&lt;P&gt;                  i have completely developed one interactive ALV report in which PO line items are calling ME22n and corresponding changes are getting reflected back to alv list.but what i have observed is it does not reflect the changes immediately..When i save the me22n transaction and alv list comes back,at that time that values does not change in the list..but when i put a break-point and go slowly then the reflection does come..or when i write "wait up to 1 seconds." then also it works..But can't it reflect immediately..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:24:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282708#M1021756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T11:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282709#M1021757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;STRONG&gt;refresh&lt;/STRONG&gt;  to get the alv refreshed with the values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282709#M1021757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T11:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282710#M1021758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;see my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case r_ucomm.&lt;/P&gt;&lt;P&gt;when '&amp;amp;IC1'. "for double click&lt;/P&gt;&lt;P&gt;*if rs_selfield-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;read table it_main index rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set parameter id 'BES' field it_main-ebeln.&lt;/P&gt;&lt;P&gt;call transaction 'ME22N' and skip first screen.&lt;/P&gt;&lt;P&gt;*endif.&lt;/P&gt;&lt;P&gt;*when 'REFRESH'.&lt;/P&gt;&lt;P&gt;  rs_selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;  rs_selfield-exit = 'X'.&lt;/P&gt;&lt;P&gt;*wait up to 1 seconds.&lt;/P&gt;&lt;P&gt;    perform fetch_data.&lt;/P&gt;&lt;P&gt;    refresh it_fieldcat.&lt;/P&gt;&lt;P&gt;    PERFORM fieldcat1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM display_ALV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282710#M1021758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T11:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282711#M1021759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are updating the data and coming back every thing is in one session so you can say &lt;STRONG&gt;commit work&lt;/STRONG&gt; or else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;STRONG&gt;wait up to 1 seconds&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282711#M1021759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T11:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282712#M1021760</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; Use method refresh_table_display just after where u want updation..... dont pass any parameter to this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ashu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282712#M1021760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T11:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282713#M1021761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijay,&lt;/P&gt;&lt;P&gt;              commit work is not working and i dont want to use wait up to 1 sec..pls suggest different..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 11:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282713#M1021761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T11:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282714#M1021762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can not know when the update process will come at end, ME22N may already have called a COMMIT WORK without WAIT (So maybe already be finished or may yet need a long time on a huge order on a slow server or at rush hour)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it is a CALL TRANSACTION you are not in the same LUW (Forget to use COMMIT WORK in your LUW, no hope) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to lock  the purchase order (with WAIT) until the purchase order is locked by you, then release it and read the data before refreshing the ALV. (The update process keeps the order locked until the final database commit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Function modules ENQUEUE_EMEKKOE (DO until locked) and then DEQUEUE_EMEKKOE. (or MM_ENQUEUE_DOCUMENT and a COMMIT WORK or DEQUEUE_ALL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may collect messages from transaction call, so in case of error message, don't try to lock the purchase order (Imagine that if someone else is locking the purchase order, then the call transaction fails and then if you try to lock the order yourself, not very useful)&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, 30 Jul 2008 11:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282714#M1021762</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-07-30T11:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282715#M1021763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi,&lt;/P&gt;&lt;P&gt;&amp;gt; see my code.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; case r_ucomm.&lt;/P&gt;&lt;P&gt;&amp;gt; when '&amp;amp;IC1'. "for double click&lt;/P&gt;&lt;P&gt;&amp;gt; *if rs_selfield-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;&amp;gt; read table it_main index rs_selfield-tabindex.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; set parameter id 'BES' field it_main-ebeln.&lt;/P&gt;&lt;P&gt;&amp;gt; call transaction 'ME22N' and skip first screen.&lt;/P&gt;&lt;P&gt;&amp;gt; *endif.&lt;/P&gt;&lt;P&gt;&amp;gt; *when 'REFRESH'.&lt;/P&gt;&lt;P&gt;&amp;gt;   rs_selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;&amp;gt;   rs_selfield-exit = 'X'.&lt;/P&gt;&lt;P&gt;&amp;gt; *wait up to 1 seconds.&lt;/P&gt;&lt;P&gt;&amp;gt;     perform fetch_data.&lt;/P&gt;&lt;P&gt;&amp;gt;     refresh it_fieldcat.&lt;/P&gt;&lt;P&gt;&amp;gt;     PERFORM fieldcat1.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;     PERFORM display_ALV.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please add the following statement before calling the transaction and check if it works&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET UPDATE TASK LOCAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282715#M1021763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T12:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: ALV prb</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282716#M1021764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rajesh,&lt;/P&gt;&lt;P&gt;               thanks for reply...but its not working &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2008 12:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-prb/m-p/4282716#M1021764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-30T12:05:05Z</dc:date>
    </item>
  </channel>
</rss>

