<?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: Problem with read table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773421#M908005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HOw am i going to convert the type? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2008 13:59:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T13:59:17Z</dc:date>
    <item>
      <title>Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773415#M907999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used READ TABLE statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the code below... does it need to for the key to have the same data type? i_reqitem2 has not header line... does it need to have header line? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE i_reqitem2 into x_reqitem2&lt;/P&gt;&lt;P&gt;                            WITH KEY material   = x_eban-matnr&lt;/P&gt;&lt;P&gt;                                     plant      = x_eban-werks&lt;/P&gt;&lt;P&gt;                                     unit       = x_eban-meins&lt;/P&gt;&lt;P&gt;                                     deliv_date = x_eban-lfdat&lt;/P&gt;&lt;P&gt;                                     item_cat   = x_eban-pstyp&lt;/P&gt;&lt;P&gt;                                     quantity   = x_eban-menge&lt;/P&gt;&lt;P&gt;                                     fixed_vend = x_eban-flief.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 13:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773415#M907999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773416#M908000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is not compulsary for table i_reqitem2  to have header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while it is necessary for the key to have the same data type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 23, 2008 9:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 13:47:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773416#M908000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T13:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773417#M908001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fields you are testing with the KEY list should all be of the same data type and what you are comparing to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 13:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773417#M908001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T13:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773418#M908002</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;What would be the alternative for READ TABLE if the key has not same data type? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 13:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773418#M908002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T13:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773419#M908003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no alternative but doing a type conversion of the fields having a different type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 13:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773419#M908003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773420#M908004</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;declare another internal table(itab2) with the same structure of the itab u r reading(itab1) except for the field which is not matching..... declare that field as the one which matches with taht of itab u loop at(itab3),......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now  move all entries of this internal table itab1 to itab2 ( by looping at itab1 and moving field by field to itab2) and use itab2 for reading....!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vasu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 13:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773420#M908004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773421#M908005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HOw am i going to convert the type? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 13:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773421#M908005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773422#M908006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In most cases, moving from one data type to another will do the conversion for you in ABAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 14:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773422#M908006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T14:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773423#M908007</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;How is it being done in abap? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 14:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773423#M908007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T14:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773424#M908008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The compiler will take care of it in resolving the move.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  fld1 TYPE p VALUE '1000',
  fld2(10) TYPE c.

fld2 = fld1.    " fld 2 will now contain 1000 right justified.

WRITE:/1 fld2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 14:56:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-read-table/m-p/3773424#M908008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T14:56:23Z</dc:date>
    </item>
  </channel>
</rss>

