<?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: Internal table issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913107#M685556</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;Please try somthing like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of it_tab2 occurs 0,
        ebeln like ekpo-ebeln,
        ebelp like ekpo-ebelp,
        matnr like ekpo-matnr,
        netpr like ekpo-netpr.
data: end of it_tab2.

loop at it_tab1.
  select ebeln ebelp matnr netpr
  into (ekpo-ebeln, ekpo-ebelp, ekpo-matnr, ekpo-netpr)
  from ekpo
  where ebeln = it_tab1-ebeln.

    it_tab2-ebeln = ekpo-ebeln.
    it_tab2-ebelp = ekpo-ebelp.
    it_tab2-matnr = ekpo-matnr.
    it_tab2-netpr = ekpo-netpr.
    append it_tab2.

  endselect.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2007 19:54:31 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-10-22T19:54:31Z</dc:date>
    <item>
      <title>Internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913103#M685552</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;I have an internal table itab1 and in this I have the po numbers, now I need to maintain another internal table that will have the details of the PO's that are stored in itab2 such as material no, price, line item no. and po number. &lt;/P&gt;&lt;P&gt;so can you please tell me how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_tab2 occurs 0,&lt;/P&gt;&lt;P&gt;        ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;     end of it_tab2&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;Rajeev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rajeev  Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913103#M685552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T19:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913104#M685553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll have to add the material number to the second table and then retrieve the material number form EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913104#M685553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T19:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913105#M685554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, &lt;/P&gt;&lt;P&gt;Thanks for the reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I need is to retrieve the information of PO's in an internal table, so basically if in itab2 PO # is 12345, then I need to get the materials associated with that PO (12345), item no. and price of the materials in the PO in the other internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get my point ...please try to explain in detail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913105#M685554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T19:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913106#M685555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like I said - it's in EKPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913106#M685555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T19:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913107#M685556</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;Please try somthing like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of it_tab2 occurs 0,
        ebeln like ekpo-ebeln,
        ebelp like ekpo-ebelp,
        matnr like ekpo-matnr,
        netpr like ekpo-netpr.
data: end of it_tab2.

loop at it_tab1.
  select ebeln ebelp matnr netpr
  into (ekpo-ebeln, ekpo-ebelp, ekpo-matnr, ekpo-netpr)
  from ekpo
  where ebeln = it_tab1-ebeln.

    it_tab2-ebeln = ekpo-ebeln.
    it_tab2-ebelp = ekpo-ebelp.
    it_tab2-matnr = ekpo-matnr.
    it_tab2-netpr = ekpo-netpr.
    append it_tab2.

  endselect.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 19:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913107#M685556</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-22T19:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913108#M685557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Give the first select to select all PO Numbers from EKKO and store them in internal table I_EKKO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to get the details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBELN EBELP NETPR&lt;/P&gt;&lt;P&gt;              FROM EKPO&lt;/P&gt;&lt;P&gt;              INTO TABLE I_EKPO&lt;/P&gt;&lt;P&gt;              FOR ALL ENTRIES IN I_EKKO&lt;/P&gt;&lt;P&gt;              WHERE EBELN = EKKO-EBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it is useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasa Rada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 23:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-issue/m-p/2913108#M685557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T23:17:50Z</dc:date>
    </item>
  </channel>
</rss>

