<?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: Data retrival problem from BSEG table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605111#M868313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have taken 3 key fields in the where condition , we have 4 keyfields in the BSEG. i am selecting the 4th key field in the internal table..Is it may be reason....Do i need to take all the key fields in the internal table ....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2008 12:13:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-02T12:13:32Z</dc:date>
    <item>
      <title>Data retrival problem from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605108#M868310</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 am retriving data from BSEG table using BELNR, BUKRS, GJAHR in the where condition. I have to get 4 records which are present in the BSEG table. I am getting only 3 records from the select. What May be the problem in the retrival.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 11:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605108#M868310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T11:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data retrival problem from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605109#M868311</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 have written a sample query on BSEG table . It is fetching the correct number of records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just compare the actual values in BSEG .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_bseg type standard table of bseg.&lt;/P&gt;&lt;P&gt;data: wa_bseg type bseg.&lt;/P&gt;&lt;P&gt;data:v_belnr type BELNR_D.&lt;/P&gt;&lt;P&gt;v_belnr = '100000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input         = v_belnr&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   OUTPUT        = v_belnr.&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *  into table i_bseg&lt;/P&gt;&lt;P&gt;                 from BSEG&lt;/P&gt;&lt;P&gt;                 where BUKRS = '2580'&lt;/P&gt;&lt;P&gt;                  and BELNR = v_belnr&lt;/P&gt;&lt;P&gt;                  and GJAHR = '2006'.&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;&lt;/P&gt;&lt;P&gt;                  loop at i_bseg into wa_bseg.&lt;/P&gt;&lt;P&gt;                  write : / wa_bseg-bukrs,&lt;/P&gt;&lt;P&gt;                            wa_bseg-belnr,&lt;/P&gt;&lt;P&gt;                            wa_bseg-gjahr.&lt;/P&gt;&lt;P&gt;                  endloop.&lt;/P&gt;&lt;P&gt;endif.&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;Kind Regards,&lt;/P&gt;&lt;P&gt;Ravi Sankar.Z&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 11:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605109#M868311</guid>
      <dc:creator>ravisankara_varaprasad</dc:creator>
      <dc:date>2008-04-02T11:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data retrival problem from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605110#M868312</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;are you working in the same client as your information ?? have you proved in SE16 that the 4 records that you mention fulfill the conditions in WHERE ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, you write that your select condition is loke this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from BSEG&lt;/P&gt;&lt;P&gt;   where BELNR = something&lt;/P&gt;&lt;P&gt;            BUKRS = something &lt;/P&gt;&lt;P&gt;            GJAHR = something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is true, you might have some day a performance problem, ´cause you are not following the correct sequence of the key fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from BSEG&lt;/P&gt;&lt;P&gt;   where BUKRS = something &lt;/P&gt;&lt;P&gt;            BELNR = something&lt;/P&gt;&lt;P&gt;            GJAHR = something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something else. In the data base you might find the records like '0000012345' and you´re probably searching with '12345'. Pay attention to this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 12:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605110#M868312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data retrival problem from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605111#M868313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have taken 3 key fields in the where condition , we have 4 keyfields in the BSEG. i am selecting the 4th key field in the internal table..Is it may be reason....Do i need to take all the key fields in the internal table ....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 12:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605111#M868313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T12:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data retrival problem from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605112#M868314</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;Go to Se11, and input the data similar to the data pass in the where condition of the select statement, and execute.&lt;/P&gt;&lt;P&gt;Check how any records are retrieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 12:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605112#M868314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T12:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data retrival problem from BSEG table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605113#M868315</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 not suggesting you to use BSEG table,Because performancewise it is poor.&lt;/P&gt;&lt;P&gt;Just know what you need to display exact detaisl and search&lt;/P&gt;&lt;P&gt;for relevant tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 12:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-retrival-problem-from-bseg-table/m-p/3605113#M868315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T12:25:58Z</dc:date>
    </item>
  </channel>
</rss>

