<?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: read table dbtable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052737#M722839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Satish for the response. But when I looked in SAP HELP, it's mentioned in that you can use 'Read' Statement on Database Tables. Isn't it true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2007 21:12:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-04T21:12:01Z</dc:date>
    <item>
      <title>read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052734#M722836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am "read table dbtable" in a program and iam getting an error that 'field does not eixts'. Can anybody please let me know what is the reason?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB table &amp;lt;b&amp;gt;ZTABLE&amp;lt;/b&amp;gt; has the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KUNNR&lt;/P&gt;&lt;P&gt;BSTNK&lt;/P&gt;&lt;P&gt;VBELN&lt;/P&gt;&lt;P&gt;POSNR&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;MAKTX&lt;/P&gt;&lt;P&gt;ZZWKTNR2&lt;/P&gt;&lt;P&gt;PRSDT&lt;/P&gt;&lt;P&gt;ZNEWDT&lt;/P&gt;&lt;P&gt;ERNAM&lt;/P&gt;&lt;P&gt;ZPOSTDT&lt;/P&gt;&lt;P&gt;ZPOSTTIME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: i_ztable like ztable occurs 0 with header line.

sort i_ztable by kunnr bstnk vbeln posnr matnr zzwktnr2.

  if not i_ztable is initial.
*   loop at i_ztable.
     read table ztable with key
            kunnr = i_ztable-kunnr
            bstnk = i_ztable-bstnk
            vbeln = i_ztable-chargeback
            posnr = i_ztable-posnr
            matnr = i_ztable-matnr
            zzwktnr2 = i_ztable-zzwktnr2
            binary search.
* endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;During syntax check it's giving error: &amp;lt;i&amp;gt;The field KUNNR is unknown&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 20:44:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052734#M722836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T20:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052735#M722837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can not use READ Statement on DBTABLE, you can only use on Internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 20:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052735#M722837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T20:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052736#M722838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa type ztable.
Select single * from ztable into wa where 
            kunnr = i_ztable-kunnr and
            bstnk = i_ztable-bstnk and
            vbeln = i_ztable-chargeback and
            posnr = i_ztable-posnr and
            matnr = i_ztable-matnr and
            zzwktnr2 = i_ztable-zzwktnr2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 20:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052736#M722838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T20:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052737#M722839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Satish for the response. But when I looked in SAP HELP, it's mentioned in that you can use 'Read' Statement on Database Tables. Isn't it true?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 21:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052737#M722839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T21:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052738#M722840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is true, but not recommended. Use SELECTs instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 21:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052738#M722840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T21:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052739#M722841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide the link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 21:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052739#M722841</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-12-04T21:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052740#M722842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Thanks Satish for the response. But when I looked in&lt;/P&gt;&lt;P&gt;&amp;gt; SAP HELP, it's mentioned in that you can use 'Read'&lt;/P&gt;&lt;P&gt;&amp;gt; Statement on Database Tables. Isn't it true?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same help document, also says that it is obsolete and the following statement needs special attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;For dbtab, you must specify the name of a &amp;lt;b&amp;gt;database table that begins with "T" and is not longer than five characters&amp;lt;/b&amp;gt;. The table work area must have been declared with statement TABLES for database table dbtab. If a database table is specified that does not begin with "T", then the first letter is implicitly replaced by "T".&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 21:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052740#M722842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T21:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: read table dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052741#M722843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I haven't paid attention to that comments. Thanks for clearing.&lt;/P&gt;&lt;P&gt;Thanks all for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2007 21:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-dbtable/m-p/3052741#M722843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-04T21:46:48Z</dc:date>
    </item>
  </channel>
</rss>

