<?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 statement-Problem while case sensitve in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305917#M1026702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Savitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the only way is to convert the internal table data into UPPER case and you need to loop at that internal table and use the statement TRANSLATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;    TRANSLATE ITAB-BISMT TO UPPER CASE.&lt;/P&gt;&lt;P&gt;  MODIFY ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2008 03:38:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-01T03:38:29Z</dc:date>
    <item>
      <title>Select statement-Problem while case sensitve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305914#M1026699</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 am trying to select the Material number(MATNR) from MARA based on the old material number(BISMT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  MATNR FROM MARA INTO ITAB_MARA&lt;/P&gt;&lt;P&gt;              FOR ALL ENTRIES IN ITAB&lt;/P&gt;&lt;P&gt;              WHERE BISMT = ITAB-BISMT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field MARA-BISMT contains data in upper case and my Internal table contains as lower case.So the select statement is not populating the corresponding records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know is it possible to give a check in the select statement.&lt;/P&gt;&lt;P&gt;Or is there any way to change the BISMT column data in ITAB to upper case in one shot rather than going for TRANSLATE in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Savitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 01:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305914#M1026699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T01:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement-Problem while case sensitve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305915#M1026700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that your only way to do it is to update your internal table first and change the case.  I don't belive that SAP's Open SQL contains an operator that allows you to compare ignoring case.  Atleast not that I remember seeing ever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There isn't an easy way to do it updating all records for that field in one shot, but from a performance perspecitive if there was a command that could do it it would be doing a loop anyways in it's implimentation so it should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that the best optimized loop for this would be to do a loop assigning the record to a field- symbol instead of into a work-area.  By using a field symbol you can directly access the data in the internal table and also it is faster since it isn't doing any transfer of data.  In the loop you can then do a conversion to uper case on the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 01:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305915#M1026700</guid>
      <dc:creator>ian_maxwell2</dc:creator>
      <dc:date>2008-08-01T01:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement-Problem while case sensitve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305916#M1026701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi savitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No other way u need to convert itab content in to lower case...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 03:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305916#M1026701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T03:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement-Problem while case sensitve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305917#M1026702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Savitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the only way is to convert the internal table data into UPPER case and you need to loop at that internal table and use the statement TRANSLATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;    TRANSLATE ITAB-BISMT TO UPPER CASE.&lt;/P&gt;&lt;P&gt;  MODIFY ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 03:38:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305917#M1026702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T03:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement-Problem while case sensitve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305918#M1026703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FROM WHERE YOU ARE GETTING THIS, Which table you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ITAB-BISMT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 03:40:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305918#M1026703</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T03:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement-Problem while case sensitve</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305919#M1026704</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;From where you are getting data into ITAB? If it is a Z table, while inputing data into Z table, you can convert into upper case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the only other way is to loop through ITAB and use TRANSLATE command to convert the data into upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also you have to check for the preceeding zeros for fields, if any you are using in WHERE clause in other SELECT statements. Use CONVERSION_EXIT_ALPHA_INPUT to add leading zeros to the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 05:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-while-case-sensitve/m-p/4305919#M1026704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T05:52:56Z</dc:date>
    </item>
  </channel>
</rss>

