<?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: problem with Read stat.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819421#M918602</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 think you didnt use proper sort statement for internal table.&lt;/P&gt;&lt;P&gt;or because leading zero's the value is not coming to workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use sort stmts before loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_afvc   by PROJN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_aufk  by pspel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Parvathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 10:55:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T10:55:53Z</dc:date>
    <item>
      <title>problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819419#M918600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; here am trying to read 2 internal tables, by loping one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the problem am using READ stat for 2 tables,  for these case i ve proper data in all internal tables before looping tables.&lt;/P&gt;&lt;P&gt;while reading first( it_aufk ) is ok, but 2nd table ( it_afvc ) is not reading, for this while debugging i found correct data in internal tables. even though it_afvc is not reading ( i.e data is nt coming to header ) at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;my peace of code is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_tab2.&lt;/P&gt;&lt;P&gt; it_dummy-psphi = it_tab2-psphi.&lt;/P&gt;&lt;P&gt; it_dummy-posid = it_tab2-posid.&lt;/P&gt;&lt;P&gt; it_dummy-pspid = it_tab2-pspid.&lt;/P&gt;&lt;P&gt; it_dummy-pspnr = it_tab2-pspnr.&lt;/P&gt;&lt;P&gt; it_dummy-post1 = it_tab2-post1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE it_aufk WITH KEY pspel = it_tab2-pspnr BINARY SEARCH.&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    it_dummy-pspel = it_aufk-pspel.&lt;/P&gt;&lt;P&gt;    it_dummy-objnr = it_aufk-objnr.&lt;/P&gt;&lt;P&gt;    it_dummy-bukrs = it_aufk-bukrs.&lt;/P&gt;&lt;P&gt;    it_dummy-aufnr = it_aufk-aufnr.&lt;/P&gt;&lt;P&gt;    it_dummy-ktext = it_aufk-ktext.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;problem is below table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_afvc WITH KEY PROJN = it_tab2-pspnr&lt;/P&gt;&lt;P&gt;                                      BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      it_dummy-projn = it_afvc-projn.&lt;/P&gt;&lt;P&gt;      it_dummy-vornr = it_afvc-vornr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  APPEND it_dummy.&lt;/P&gt;&lt;P&gt;  CLEAR it_dummy.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone tell where i ve gone wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819419#M918600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819420#M918601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check if the internal table it_afvc is sorted properly ... &lt;/P&gt;&lt;P&gt;or remove the BINARY SEARCH ... from read&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE it_afvc WITH KEY PROJN = it_tab2-pspnr&lt;/P&gt;&lt;P&gt;BINARY SEARCH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819420#M918601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819421#M918602</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 think you didnt use proper sort statement for internal table.&lt;/P&gt;&lt;P&gt;or because leading zero's the value is not coming to workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use sort stmts before loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_afvc   by PROJN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_aufk  by pspel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Parvathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:55:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819421#M918602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819422#M918603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well binary search works ONLY for sorted tables.&lt;/P&gt;&lt;P&gt;Even they muist be sorted  by the field you are searching for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i dont see any sort in your program so i dont wonder too much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819422#M918603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819423#M918604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; the table it_afvc is storing data properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually according to tables data the 2 read statments will execute same time.&lt;/P&gt;&lt;P&gt;i.e as per data the, it_aufk and it_afvc both will execute at a time, but it_aufk is ok, but it_afvc is not executing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819423#M918604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819424#M918605</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;As you are useing Binary serch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that table  it_aufk is sorted on pspel&lt;/P&gt;&lt;P&gt;and table it_afvc  is sorted on PROJN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other then that I don't find any error on your code&lt;/P&gt;&lt;P&gt;if data is maintained properly it is bound to come &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 10:58:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819424#M918605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T10:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819425#M918606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends, u people r right, i forgot to sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ve rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819425#M918606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819426#M918607</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;&lt;/P&gt;&lt;P&gt;sort the internal table it_afvc is sorted properly ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819426#M918607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: problem with Read stat..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819427#M918608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;READ TABLE it_afvc WITH KEY PROJN = it_tab2-pspnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-stat/m-p/3819427#M918608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:42:35Z</dc:date>
    </item>
  </channel>
</rss>

