<?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: retrieving data into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103481#M438698</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;Create a database view for the tables which you are using. The view itself will propose the join conditions which you can consider. Also you can specify the Where clause conditions in the tab 'select conditions'. This will also helps you to retreive the data at a faster rate in programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sksingh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 14:13:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T14:13:32Z</dc:date>
    <item>
      <title>retrieving data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103479#M438696</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 struck at a point where i have to retrieve data from 4 database table to a single internal table with some conditions. can anyone please help me in resolving this issue. your help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some details are: tables used are-linv,mch1,makt,ausp.&lt;/P&gt;&lt;P&gt;data: begin of t_outtab,--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="------------" /&gt;final internal table.---output to be displayed&lt;P&gt;&lt;/P&gt;&lt;P&gt;lgnum LIKE linv-lgnum,&lt;/P&gt;&lt;P&gt;ivnum LIKE linv-ivnum,&lt;/P&gt;&lt;P&gt;werks LIKE linv-werks,&lt;/P&gt;&lt;P&gt;lgtyp LIKE linv-lgtyp,&lt;/P&gt;&lt;P&gt;matnr LIKE linv-matnr,&lt;/P&gt;&lt;P&gt;bestq LIKE linv-bestq,&lt;/P&gt;&lt;P&gt;charg LIKE linv-charg,&lt;/P&gt;&lt;P&gt;maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;vfdat LIKE mch1-vfdat,&lt;/P&gt;&lt;P&gt;atwrt LIKE ausp-atwrt,&lt;/P&gt;&lt;P&gt;END OF t_outtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input parameters:-- linv-lgnum and linv-ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;conditions:1. Where MAKT-MATNR = LINV-MATNR and MAKT-SPRAS = &amp;#145;logon language user&amp;#146;&lt;/P&gt;&lt;P&gt;2. Where MCH1-CHARG = LINV-CHARG AND MCH1-MATNR = LINV-MATNR)&lt;/P&gt;&lt;P&gt;3. SELECT AUSP-ATWRT Where AUSP-OBJEK = MCH1- CUOBJ_BM and MCH1-CHARG = LINV-CHARG AND MCH1-MATNR = LINV-MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 10:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103479#M438696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T10:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103480#M438697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is&amp;lt;b&amp;gt; better to create a database&amp;lt;/b&amp;gt; view for your problem because each time the time to run the query takes much larger time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to the solution ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a database view with the condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.. Where MAKT-MATNR = LINV-MATNR and MAKT-SPRAS = &amp;#145;logon language user&amp;#146;&lt;/P&gt;&lt;P&gt;2. Where MCH1-CHARG = LINV-CHARG AND MCH1-MATNR = LINV-MATNR)&lt;/P&gt;&lt;P&gt;3. SELECT AUSP-ATWRT Where AUSP-OBJEK = MCH1- CUOBJ_BM and MCH1-CHARG = LINV-CHARG AND MCH1-MATNR = LINV-MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The view itself takes the duty of joining and checking the conditions after mensioning the joining conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps you.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Rama chary.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 10:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103480#M438697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T10:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: retrieving data into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103481#M438698</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;Create a database view for the tables which you are using. The view itself will propose the join conditions which you can consider. Also you can specify the Where clause conditions in the tab 'select conditions'. This will also helps you to retreive the data at a faster rate in programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sksingh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103481#M438698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:13:32Z</dc:date>
    </item>
  </channel>
</rss>

