<?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: Select upper/lowercase in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232113#M1380770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt; I tried with the below sample program by giving matnr 100* , *100.
&amp;lt;li&amp;gt;You do not need to worry about your case you mentioned TE* te* *ST. It automatically converts to capital letters.
Try this way.
&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTEST_NOTEPAD.
TABLES:MARC.
DATA: IT_MARC TYPE STANDARD TABLE OF MARC WITH HEADER LINE.
SELECT-OPTIONS: S_MATNR FOR MARC-MATNR.

START-OF-SELECTION.
SELECT * FROM MARC INTO TABLE IT_MARC WHERE MATNR IN S_MATNR.
LOOP AT IT_MARC.
  LOOP AT S_MATNR.
    IF MARC-MATNR CP S_MATNR-LOW.
      WRITE:/ IT_MARC-MATNR.
    ENDIF.
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 26 Sep 2009 18:27:44 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2009-09-26T18:27:44Z</dc:date>
    <item>
      <title>Select upper/lowercase</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232111#M1380768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a table where I got data in upper and lower case (like "TeSt".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My selection must find this entry if the selct-options contain:&lt;/P&gt;&lt;P&gt;TE*&lt;/P&gt;&lt;P&gt;te*&lt;/P&gt;&lt;P&gt;*ST&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my program I select all my data in an internal table.&lt;/P&gt;&lt;P&gt;Then the text field (TeSt) from the internal table is converted into a local field in upper-case .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do I get the the right data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this, but it is not a succes...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP at ITAB
    lv_firm = ITAB-company.

    lv_strln = STRLEN( lv_firm ).

    DO lv_strln TIMES.

      TRANSLATE lv_ITAB+lv_count(1) TO UPPER CASE .
      ADD 1 TO lv_count.

    ENDDO.

    IF lv_firm IN r_firm.

      CONTINUE.
    ELSE.
      DELETE ITAB.
    ENDIF.

  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 17:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232111#M1380768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-26T17:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select upper/lowercase</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232112#M1380769</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;You dont have to convert the field to uppercase character by character. You can directly use the translate command on the whole field. If r_firm is the select-options, convert even those to upper case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: v_firm(10) type c.
SELECT-OPTIONS: r_firm for v_firm.

loop at r_firm.
    TRANSLATE r_firm-low TO UPPER CASE .
modify r_firm.
endloop.

LOOP at ITAB
    TRANSLATE ITAB-company TO UPPER CASE .
    IF NOT ITAB-comapny IN r_firm.
       DELETE ITAB.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 18:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232112#M1380769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-26T18:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select upper/lowercase</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232113#M1380770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi, 
&amp;lt;li&amp;gt; I tried with the below sample program by giving matnr 100* , *100.
&amp;lt;li&amp;gt;You do not need to worry about your case you mentioned TE* te* *ST. It automatically converts to capital letters.
Try this way.
&lt;PRE&gt;&lt;CODE&gt;
REPORT  ZTEST_NOTEPAD.
TABLES:MARC.
DATA: IT_MARC TYPE STANDARD TABLE OF MARC WITH HEADER LINE.
SELECT-OPTIONS: S_MATNR FOR MARC-MATNR.

START-OF-SELECTION.
SELECT * FROM MARC INTO TABLE IT_MARC WHERE MATNR IN S_MATNR.
LOOP AT IT_MARC.
  LOOP AT S_MATNR.
    IF MARC-MATNR CP S_MATNR-LOW.
      WRITE:/ IT_MARC-MATNR.
    ENDIF.
  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 18:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232113#M1380770</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-09-26T18:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Select upper/lowercase</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232114#M1380771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply - My range was wrong... (the option should be CP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway I could use your optimized code &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 18:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232114#M1380771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-26T18:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select upper/lowercase</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232115#M1380772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA v_field(10) TYPE c.
SELECT-OPTIONS s_field FOR v_field LOWER CASE.

START-OF-SELECTION.
  SELECT FIELD1
    FROM DATA_TABLE
    INTO TABLE IT_TAB
    WHERE FIELD1 IN s_field.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the keywords 'LOWER CASE' to set select-option upper and lower sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2009 06:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-upper-lowercase/m-p/6232115#M1380772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-27T06:57:31Z</dc:date>
    </item>
  </channel>
</rss>

