<?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/2103790#M438812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select &amp;lt;data fields&amp;gt; into it_linv from LINV where LGNUM = linv-lgnum and IVNUM = linv-ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;data fields&amp;gt; into it_mch1 from mch1 as a inner join makt as b on a&lt;SUB&gt;MATNR = b&lt;/SUB&gt;MATNR for all entries of it_linv where a&lt;SUB&gt;matnr = it_linv-matnr and a&lt;/SUB&gt;charg = it_linv-charg and b~langu = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;data fields&amp;gt; into it_ausp from ausp for all entries of it_mch1 where AUSP-OBJEK = it_mch1- CUOBJ_BM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop it_linv and use read statement for it_mch1, it_ausp and move data to final table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward and close duplicate threads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 10:34:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T10:34:51Z</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/2103789#M438811</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:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103789#M438811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T10:24:34Z</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/2103790#M438812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select &amp;lt;data fields&amp;gt; into it_linv from LINV where LGNUM = linv-lgnum and IVNUM = linv-ivnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;data fields&amp;gt; into it_mch1 from mch1 as a inner join makt as b on a&lt;SUB&gt;MATNR = b&lt;/SUB&gt;MATNR for all entries of it_linv where a&lt;SUB&gt;matnr = it_linv-matnr and a&lt;/SUB&gt;charg = it_linv-charg and b~langu = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;data fields&amp;gt; into it_ausp from ausp for all entries of it_mch1 where AUSP-OBJEK = it_mch1- CUOBJ_BM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop it_linv and use read statement for it_mch1, it_ausp and move data to final table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward and close duplicate threads.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 10:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieving-data-into-internal-table/m-p/2103790#M438812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T10:34:51Z</dc:date>
    </item>
  </channel>
</rss>

