<?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 problem in string operations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-string-operations/m-p/1870417#M366534</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 am using module pool.in the first screen,i have two fields.in that one fielad is name field.i want to search the records with any charecter given in that field.i used contains,but it is not working,following is the code i am using,can any body help me it is urgent.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N = strlen( ZCOMM_ULT_PARENT-Z_CUP_NAME ).&lt;/P&gt;&lt;P&gt;      SELECT Z_CUP_NAME FROM zcomm_ult_parent INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;      LOOP AT ITAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IF ITAB-NAME+0(N) = ZCOMM_ULT_PARENT-Z_CUP_NAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IF ITAB-NAME CA ZCOMM_ULT_PARENT-Z_CUP_NAME.&lt;/P&gt;&lt;P&gt;          MOVE ITAB TO ITAB1.&lt;/P&gt;&lt;P&gt;          APPEND ITAB1.&lt;/P&gt;&lt;P&gt;          CLEAR ITAB1.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE E002(Z_BALANCE_SCCARD).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not itab1[] is initial .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select f&lt;SUB&gt;z_cup_number f&lt;/SUB&gt;z_class_range_id f~z_class_type_id&lt;/P&gt;&lt;P&gt;               f&lt;SUB&gt;seqno f&lt;/SUB&gt;z_ind_sector f~z_cup_sub_class&lt;/P&gt;&lt;P&gt;               p~z_cup_name from zcup_class as f&lt;/P&gt;&lt;P&gt;               inner join zcomm_ult_parent as&lt;/P&gt;&lt;P&gt;               p on f&lt;SUB&gt;z_cup_number = p&lt;/SUB&gt;z_cup_number&lt;/P&gt;&lt;P&gt;               into corresponding fields of table lt_zcupclass&lt;/P&gt;&lt;P&gt;               for all entries in itab1 where Z_CUP_NAME = ITAB1-NAME.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;but it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2007 10:43:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-01T10:43:43Z</dc:date>
    <item>
      <title>problem in string operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-string-operations/m-p/1870417#M366534</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 am using module pool.in the first screen,i have two fields.in that one fielad is name field.i want to search the records with any charecter given in that field.i used contains,but it is not working,following is the code i am using,can any body help me it is urgent.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N = strlen( ZCOMM_ULT_PARENT-Z_CUP_NAME ).&lt;/P&gt;&lt;P&gt;      SELECT Z_CUP_NAME FROM zcomm_ult_parent INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;      LOOP AT ITAB.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       IF ITAB-NAME+0(N) = ZCOMM_ULT_PARENT-Z_CUP_NAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           IF ITAB-NAME CA ZCOMM_ULT_PARENT-Z_CUP_NAME.&lt;/P&gt;&lt;P&gt;          MOVE ITAB TO ITAB1.&lt;/P&gt;&lt;P&gt;          APPEND ITAB1.&lt;/P&gt;&lt;P&gt;          CLEAR ITAB1.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MESSAGE E002(Z_BALANCE_SCCARD).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      if not itab1[] is initial .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        select f&lt;SUB&gt;z_cup_number f&lt;/SUB&gt;z_class_range_id f~z_class_type_id&lt;/P&gt;&lt;P&gt;               f&lt;SUB&gt;seqno f&lt;/SUB&gt;z_ind_sector f~z_cup_sub_class&lt;/P&gt;&lt;P&gt;               p~z_cup_name from zcup_class as f&lt;/P&gt;&lt;P&gt;               inner join zcomm_ult_parent as&lt;/P&gt;&lt;P&gt;               p on f&lt;SUB&gt;z_cup_number = p&lt;/SUB&gt;z_cup_number&lt;/P&gt;&lt;P&gt;               into corresponding fields of table lt_zcupclass&lt;/P&gt;&lt;P&gt;               for all entries in itab1 where Z_CUP_NAME = ITAB1-NAME.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;but it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 10:43:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-string-operations/m-p/1870417#M366534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T10:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem in string operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-string-operations/m-p/1870418#M366535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram,&lt;/P&gt;&lt;P&gt; Make the highlighted change:&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;concatenate '&lt;STRONG&gt;' ZCOMM_ULT_PARENT-Z_CUP_NAME '&lt;/STRONG&gt;' into lv_str.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF ITAB-NAME+0(N) = ZCOMM_ULT_PARENT-Z_CUP_NAME.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;IF ITAB-NAME CP lv_str.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;MOVE ITAB TO ITAB1.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;CLEAR ITAB1.&lt;/P&gt;&lt;P&gt;ENDIF.&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;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 10:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-string-operations/m-p/1870418#M366535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T10:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in string operations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-string-operations/m-p/1870419#M366536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt; Or you can directly do this at the select statement level itslef.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate '%' ZCOMM_ULT_PARENT-Z_CUP_NAME '%' into v_zcupname.&lt;/P&gt;&lt;P&gt;SELECT Z_CUP_NAME FROM zcomm_ult_parent INTO TABLE ITAB&lt;/P&gt;&lt;P&gt;  where Z_CUP_NAME like v_zcupname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 11:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-string-operations/m-p/1870419#M366536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-01T11:03:29Z</dc:date>
    </item>
  </channel>
</rss>

