<?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: Strange issues with select statement after FM execution. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545315#M1266178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Information(I) message give a Success(S) message ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2009 13:58:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-16T13:58:01Z</dc:date>
    <item>
      <title>Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545312#M1266175</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;My issues is as follows. I am backflushing a Serial Number &amp;amp; Material.&lt;/P&gt;&lt;P&gt;I'm giving the sceudo code to explain the issue more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call funtion 'RM_BACKFLUSH_GO'&lt;/P&gt;&lt;P&gt; importing&lt;/P&gt;&lt;P&gt; parameter = lv_mat_doc&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  commit work and wait.&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;information message to user&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;  do 3 times&lt;/P&gt;&lt;P&gt;    select tbnum from mseg into lv_tbnum where mblnr = lv_mat_doc&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      else&lt;/P&gt;&lt;P&gt;        wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;   enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   do 3 times.&lt;/P&gt;&lt;P&gt;     select tanum from ltbp where tbnum = lv_tbnum&lt;/P&gt;&lt;P&gt;     if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       exit.&lt;/P&gt;&lt;P&gt;     else.&lt;/P&gt;&lt;P&gt;       wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  do 3 times.&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;select nlenr from ltap where lanum = lv_tanum&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;     exit&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;     if sy-index = 3.&lt;/P&gt;&lt;P&gt;      error message.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;     wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The select statement in bold letters(3rd) is failing in normal program execution. but the same select is working fine when i am running the program in debugging mode or give an information message(striked above) to the user. I think the problem is I'm accessing LTAP table before an entry is made by the system(thru function module above). User don't want the information message to be displayed and i increase the time lag even up to 30 seconds by do 15 times its not working. So, I'm stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please let me know, how can I fix this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks n Regards&lt;/P&gt;&lt;P&gt;Maruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 13:49:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545312#M1266175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T13:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545313#M1266176</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;Make a COMMIT WORK AND WAIT or call FM BAPI_TRANSACTION_COMMIT before your select..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 13:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545313#M1266176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T13:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545314#M1266177</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;It seems that the execution is faster so it is not waiting until the FM retrives data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like below.I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait up to 2 seconds. &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;Vamshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 13:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545314#M1266177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545315#M1266178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Information(I) message give a Success(S) message ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 13:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545315#M1266178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T13:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545316#M1266179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User don't want any type of message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me try with commit work before select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 14:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545316#M1266179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T14:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545317#M1266180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use commit work and wait.&lt;/P&gt;&lt;P&gt;In this increase the wait time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 14:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545317#M1266180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T14:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545318#M1266181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried as follows &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 3 times.&lt;/P&gt;&lt;P&gt;select statement&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0&lt;/P&gt;&lt;P&gt;   exit.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;   commit work and wait&lt;/P&gt;&lt;P&gt;   if sy-index = 3.&lt;/P&gt;&lt;P&gt;     error message &lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   wait up to 2 seconds.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still its not working......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2009 14:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545318#M1266181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-16T14:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Strange issues with select statement after FM execution.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545319#M1266182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solved myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 19:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-issues-with-select-statement-after-fm-execution/m-p/5545319#M1266182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T19:10:38Z</dc:date>
    </item>
  </channel>
</rss>

