<?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 READ TABLE statement in ECC 6.0 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087222#M977217</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;in 4.6, my statement was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE S_XVTTS WHERE TKNUM = S_XVTTK-TKNUM&lt;/P&gt;&lt;P&gt;AND NOT S_XVTTS-VSTEL IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This wont work in ECC 6.0, hence I need to modify this. so i write like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE S_XVTTS INTO wa_vttsvb WITH KEY TKNUM = S_XVTTK-TKNUM ..................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to accomodate the check for NOT initial of S_XVTTS-VSTEL .. how will my statement look like ? thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 17:47:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-27T17:47:06Z</dc:date>
    <item>
      <title>READ TABLE statement in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087222#M977217</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;in 4.6, my statement was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE S_XVTTS WHERE TKNUM = S_XVTTK-TKNUM&lt;/P&gt;&lt;P&gt;AND NOT S_XVTTS-VSTEL IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This wont work in ECC 6.0, hence I need to modify this. so i write like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE S_XVTTS INTO wa_vttsvb WITH KEY TKNUM = S_XVTTK-TKNUM ..................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to accomodate the check for NOT initial of S_XVTTS-VSTEL .. how will my statement look like ? thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 17:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087222#M977217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T17:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE statement in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087223#M977218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;After the READ stmnt, use a CHECK stmnt for the logic that follows after ur READ stmnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ... .&lt;/P&gt;&lt;P&gt;CHECK NOT XVTTS-VSTEL IS INITIAL.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt; ur logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 17:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087223#M977218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T17:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE statement in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087224#M977219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sdnuser1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use LOOP statement as follow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"// This LOOP read only one line of table s_xvtt exactly as READ TABLE do.
LOOP AT s_xvtts INTO wa_vttsv WHERE tknum EQ s_xvttk-tknum AND s_xvtts-vstel IS NOT INITIAL.
  EXIT.
ENDLOOP.

IF sy-subrc IS INITIAL.
   "// You can use wa_vttsv
ELSE.
    "// Do something
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps yous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcelo Ramos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 18:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087224#M977219</guid>
      <dc:creator>marcelo_ramos1</dc:creator>
      <dc:date>2008-06-27T18:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE statement in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087225#M977220</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;If the value you are checking is initial then what is the purpose to read the table...&lt;/P&gt;&lt;P&gt;If this is your context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that particular field whether it is initial or not before reading the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not then read the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 18:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087225#M977220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T18:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE statement in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087226#M977221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 18:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087226#M977221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T18:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: READ TABLE statement in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087227#M977222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use inequality condition in READ TABLE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
S_XVTTS1[] =  S_XVTTS[].
DELETE  S_XVTTS1 where S_XVTTS-VSTEL IS NOT INITIAL. 

READ TABLE S_XVTTS1 INTO wa_vttsvb WITH KEY TKNUM = S_XVTTK-TKNUM.
IF sy-subrc = 0.

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 18:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-statement-in-ecc-6-0/m-p/4087227#M977222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-27T18:50:45Z</dc:date>
    </item>
  </channel>
</rss>

