<?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: using CS in read in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260473#M778907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the READ TABLE statement, key fields are &lt;STRONG&gt;assigned&lt;/STRONG&gt; values using '=' operator. Most people confuse '=' with the 'EQ' operator in the READ statement as this interchangeabilty is allowed in other statements like IF e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF something EQ something_else.

vs

IF something = something_else.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both the above IF statements work correctly. But the same is not true with READ TABLE. You have to use '=' operator (instead of CS) as that is the operator for the assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, you need to use a loop for i_nast with a where clause and then in the where clause you may use CS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2008 15:56:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-09T15:56:24Z</dc:date>
    <item>
      <title>using CS in read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260472#M778906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anyone can help and advise how i can use contain string coz below it doesn't work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you think &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may b i can concatenate wa_edmse-lfsnr + * in a variable &lt;/P&gt;&lt;P&gt;then read where that variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop i_edmsa into wa_edmse&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table i_nast into wa_nast &lt;/P&gt;&lt;P&gt;                      with key objky CS wa_edmse-lfsnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 12:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260472#M778906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T12:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: using CS in read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260473#M778907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the READ TABLE statement, key fields are &lt;STRONG&gt;assigned&lt;/STRONG&gt; values using '=' operator. Most people confuse '=' with the 'EQ' operator in the READ statement as this interchangeabilty is allowed in other statements like IF e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF something EQ something_else.

vs

IF something = something_else.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Both the above IF statements work correctly. But the same is not true with READ TABLE. You have to use '=' operator (instead of CS) as that is the operator for the assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, you need to use a loop for i_nast with a where clause and then in the where clause you may use CS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2008 15:56:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260473#M778907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-09T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: using CS in read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260474#M778908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if i do like that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT objky datvr uhrvr&lt;/P&gt;&lt;P&gt;     FROM nast&lt;/P&gt;&lt;P&gt;     INTO TABLE i_nast&lt;/P&gt;&lt;P&gt;     WHERE kappl EQ c_v2&lt;/P&gt;&lt;P&gt;       AND vstat EQ c_1&lt;/P&gt;&lt;P&gt;       AND kschl EQ lv_zzparm1.&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;      SORT i_nast BY objky.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_EDMSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CLEAR: wa_nast, lv_lfnr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Search object key that contain delivery note&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CONCATENATE wa_edmse-lfsnr c_ast INTO lv_lfnr.&lt;/P&gt;&lt;P&gt;      READ TABLE i_nast INTO wa_nast&lt;/P&gt;&lt;P&gt;                        WITH KEY objky = lv_lfnr.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   exclude AAD print output that was processed after goods issue&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        IF wa_nast-datvr LT wa_edmse-budat.&lt;/P&gt;&lt;P&gt;        CONTINUE.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 04:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260474#M778908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T04:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: using CS in read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260475#M778909</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;I don't think read table can work with CS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 04:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260475#M778909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T04:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: using CS in read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260476#M778910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     you can do this way :&lt;/P&gt;&lt;P&gt;       Loop at itab.&lt;/P&gt;&lt;P&gt;if not fld CS 'xxxxx'&lt;/P&gt;&lt;P&gt;delete the row .&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 04:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260476#M778910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T04:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: using CS in read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260477#M778911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;you can do this way :&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;if not fld CS 'xxxxx'&lt;/P&gt;&lt;P&gt;Do the reqd processing..&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 04:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260477#M778911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T04:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: using CS in read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260478#M778912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONCATENATE wa_edmse-lfsnr c_ast INTO lv_lfnr.&lt;/P&gt;&lt;P&gt;READ TABLE i_nast INTO wa_nast&lt;/P&gt;&lt;P&gt;WITH KEY objky = lv_lfnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that lv_lfnr = wa_edmse-lfsnr + *&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 05:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-cs-in-read/m-p/3260478#M778912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T05:06:52Z</dc:date>
    </item>
  </channel>
</rss>

