<?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: 2 internal tabels in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766676#M1305788</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;Initially select data from EKPO table and then use for all entries on EKET table and read table into final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jun 2009 08:31:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-29T08:31:25Z</dc:date>
    <item>
      <title>2 internal tabels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766675#M1305787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i select from the EKPO the PO number, PO position, material and quantity and write this into a internal table.&lt;/P&gt;&lt;P&gt;Now i want to select form EKET the delivery date only for the materials which are in my first internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats my declatrion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: iekpo type standard table of ekpo,
      zekpo type ekpo,
      ieket type standard table of eket,
      zeket type eket,
      imenge like ekpo-menge,
      i_menge(6) type c,
      izaehler1 type n,
      ztest,
      i_beleg like eket-ebeln,
      i_pos like eket-ebelp.

FIELD-SYMBOLS: &amp;lt;fs_menge1&amp;gt; TYPE ANY.
FIELD-SYMBOLS: &amp;lt;fs_beleg1&amp;gt; TYPE ANY.
FIELD-SYMBOLS: &amp;lt;fs_pos1&amp;gt; TYPE ANY.

.
.
.

* fill table from IEKET delivery date
loop at iekpo into zekpo.
i_beleg = 'EBELN'.
i_pos = 'EBELP'.
ASSIGN COMPONENT i_beleg OF STRUCTURE zekpo TO &amp;lt;fs_beleg1&amp;gt;.
ASSIGN COMPONENT i_pos OF STRUCTURE zekpo TO &amp;lt;fs_pos1&amp;gt;.
SELECT ebeln ebelp eindt
FROM eket
INTO CORRESPONDING FIELDS OF TABLE ieket
WHERE ebeln = &amp;lt;fs_beleg1&amp;gt; AND
ebelp = &amp;lt;fs_pos1&amp;gt;.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i get a short dump: "Data objects in Unicode programs cannot be converted" at the seleciton line at the "Select ebeln ..." line&lt;/P&gt;&lt;P&gt;What is my mistake there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For sure there is a better way to do this but i am a ABAP newbie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766675#M1305787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: 2 internal tabels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766676#M1305788</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;Initially select data from EKPO table and then use for all entries on EKET table and read table into final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766676#M1305788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: 2 internal tabels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766677#M1305789</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;Try with FOR ALL ENTRIES, instead of querying DB each time in a loop.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT ebeln ebelp eindt
FROM eket
INTO CORRESPONDING FIELDS OF TABLE ieket
FOR ALL ENTRIES IN iekpo
WHERE ebeln = iekpo-ebeln AND
ebelp = iekpo-ebelp.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:32:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766677#M1305789</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-06-29T08:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: 2 internal tabels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766678#M1305790</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;Instead of selecting the data from EKET in the Loop of iekpo. You can use the FOR ALL ENTRIES statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT ebeln ebelp eindt
FROM eket
INTO CORRESPONDING FIELDS OF TABLE ieket
FOR ALL ENTRIES in iekpo
WHERE ebeln = iekpo-ebeln AND
ebelp = iekpo-ebelp.

After getting the data in IEKET 

loop at iekpo into zekpo.
 " Read table IEKET usinh wbwln &amp;amp; ebelp to fetch the delivery date.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This improves the performance of the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766678#M1305790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: 2 internal tabels</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766679#M1305791</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; firstly u make the two internal table t_ekpo of some required field and then agian make a internal table t_eket with required field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  now select required data from EKPO table .&lt;/P&gt;&lt;P&gt;2) after that data select from EKET for all entries in table EKPO based on ebeln and ebelp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax is below for (2)&lt;/P&gt;&lt;P&gt; if t_ekpo is not initial.&lt;/P&gt;&lt;P&gt;   select * from eket into t_eket&lt;/P&gt;&lt;P&gt;   for all entries in table t_ekpo&lt;/P&gt;&lt;P&gt;   where ebeln = t_ekpo-ebeln&lt;/P&gt;&lt;P&gt;        and ebelp = t_ekpo-ebelp. &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this .........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopes it works&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;Shambhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2009 08:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-internal-tabels/m-p/5766679#M1305791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-29T08:38:37Z</dc:date>
    </item>
  </channel>
</rss>

