<?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: Error using CS Operator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801641#M914299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry my earlier reply is not possible....better u select the data first..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the loop at itab and then use cs or cp....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 05:28:32 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2008-05-21T05:28:32Z</dc:date>
    <item>
      <title>Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801638#M914296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m generating an report in which i have to display Vendor code and vendor name, against some short description of name entered in selection screen.&lt;/P&gt;&lt;P&gt;For this i use cs operator , but it is showind an error&lt;/P&gt;&lt;P&gt;"CS" is not a valid comparison operator.		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_lifnr is not initial .&lt;/P&gt;&lt;P&gt;    select lifnr bukrs  from lfb1&lt;/P&gt;&lt;P&gt;    into table i_lfb1&lt;/P&gt;&lt;P&gt;    where  lifnr in  s_lifnr&lt;/P&gt;&lt;P&gt;    and ( bukrs eq p_bukrs ).&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  if i_lfb1[] is not initial. &lt;/P&gt;&lt;P&gt;  select  lifnr name1 &lt;/P&gt;&lt;P&gt;  from   lfa1&lt;/P&gt;&lt;P&gt;  into  corresponding fields of table i_lfa1&lt;/P&gt;&lt;P&gt;  for all entries in i_lfb1&lt;/P&gt;&lt;P&gt;  where lifnr =  i_lfb1-lifnr &lt;/P&gt;&lt;P&gt;       and ( name1 cs s_name1 ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me where i m wrong.&lt;/P&gt;&lt;P&gt;Definitely rewards pts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Aastha Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 05:19:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801638#M914296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T05:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801639#M914297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi AAstha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is you s_name1 is an select-option?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case please use name1 cs s_name1-low or name1 cs s_name1-high to get it correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&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;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 05:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801639#M914297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T05:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801640#M914298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u cannot use cs in a query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select lifnr name1&lt;/P&gt;&lt;P&gt;from lfa1&lt;/P&gt;&lt;P&gt;into corresponding fields of table i_lfa1&lt;/P&gt;&lt;P&gt;for all entries in i_lfb1&lt;/P&gt;&lt;P&gt;where lifnr = i_lfb1-lifnr&lt;/P&gt;&lt;P&gt;and ( name1 like '%s_name1%' ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 05:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801640#M914298</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T05:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801641#M914299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry my earlier reply is not possible....better u select the data first..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the loop at itab and then use cs or cp....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 05:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801641#M914299</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T05:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801642#M914300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edit it, as u said.&lt;/P&gt;&lt;P&gt;But it is again showing the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Aastha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 05:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801642#M914300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T05:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801643#M914301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select lifnr name1&lt;/P&gt;&lt;P&gt;from lfa1&lt;/P&gt;&lt;P&gt;into corresponding fields of table i_lfa1&lt;/P&gt;&lt;P&gt;for all entries in i_lfb1&lt;/P&gt;&lt;P&gt;where lifnr = i_lfb1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check i_lfa1-name1 cs s_name1.  "some thing like this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 05:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801643#M914301</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T05:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801644#M914302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Keshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m stuck up in b/w while generating that report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No data is coming in my internal table i_lfb1, if i m giving input only the lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_name1 is not initial or s_lifnr is not initial or p_bukrs is not&lt;/P&gt;&lt;P&gt;initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u resolve this  1 too.&lt;/P&gt;&lt;P&gt;    select lifnr bukrs  from lfb1&lt;/P&gt;&lt;P&gt;    into table i_lfb1&lt;/P&gt;&lt;P&gt;    where  lifnr in  s_lifnr &lt;/P&gt;&lt;P&gt;    and ( bukrs = p_bukrs ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if i_lfb1[] is not initial.&lt;/P&gt;&lt;P&gt;  select  lifnr name1&lt;/P&gt;&lt;P&gt;  from   lfa1&lt;/P&gt;&lt;P&gt;  into  corresponding fields of table i_lfa1&lt;/P&gt;&lt;P&gt;  for all entries in i_lfb1&lt;/P&gt;&lt;P&gt;  where lifnr =  i_lfb1-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_lfa1.&lt;/P&gt;&lt;P&gt;  check i_lfa1-name1 cs s_name1.&lt;/P&gt;&lt;P&gt;  append i_lfa1.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if i_lfa1[] is not initial.&lt;/P&gt;&lt;P&gt;  select  lifnr ekorg&lt;/P&gt;&lt;P&gt;  from   lfm1&lt;/P&gt;&lt;P&gt;  into  corresponding fields of table i_lfm1&lt;/P&gt;&lt;P&gt; for all entries in i_lfa1&lt;/P&gt;&lt;P&gt; where lifnr = i_lfa1-lifnr&lt;/P&gt;&lt;P&gt;      and ( ekorg eq p_ekorg ) .&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if i_lfa1[] is not initial.&lt;/P&gt;&lt;P&gt;  select  werks ekorg&lt;/P&gt;&lt;P&gt;  from   t024w&lt;/P&gt;&lt;P&gt;  into  corresponding fields of table i_t024w&lt;/P&gt;&lt;P&gt; for all entries in i_lfm1&lt;/P&gt;&lt;P&gt; where  ekorg = i_lfm1-ekorg&lt;/P&gt;&lt;P&gt;     and ( werks eq p_werks ).&lt;/P&gt;&lt;P&gt; endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 06:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801644#M914302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T06:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error using CS Operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801645#M914303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do remove that initial statement above....it becomes correct...mean while check the code below...this meets ur req.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

tables:lfa1.

select-options:so_name1 for lfa1-name1 no intervals.

data:t_lfa1 like standard table of lfa1.
data:search_pattern type string.

loop at so_name1.
concatenate '%' so_name1-low '%' into search_pattern.
select * from lfa1 appending table t_lfa1 where name1 like
search_pattern.
clear search_pattern.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 06:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-using-cs-operator/m-p/3801645#M914303</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-05-21T06:57:53Z</dc:date>
    </item>
  </channel>
</rss>

