<?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: ABAP - Case Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013412#M1166751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is one case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Case IDocSegment-QUALF.

When '001'

&amp;lt;Some statements&amp;gt;.

When '002'.

&amp;lt;Some statements&amp;gt;.

endcase. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An IDoc segment can have two qualifiers in the same IDoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1EDK02-QUALF = '001' = Customer PO&lt;/P&gt;&lt;P&gt;E1EDK02-QUALF = '002' = Sales Order No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there is a case. In my case, all the IDocs contain both the qualifiers. It executes both the 'WHEN' statements. I don't want to. I want only one 'WHEN' statment to be executed depending upon the success of the first 'WHEN' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you clearly understand now. Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can i do in this situation. Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Creasy Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Creasy Matthew on Jan 20, 2009 3:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2009 02:32:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-20T02:32:19Z</dc:date>
    <item>
      <title>ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013406#M1166745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ABAPers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ABAP code just like the pseudo code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
Case Val.

When 'A'.

&amp;lt;Some Conditional Statements&amp;gt;.

When 'B'.

&amp;lt;Some Statements&amp;gt;.

endcase.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A and B values are depend on 'Val'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program executes the above code almost everytime. when the conditional statement of Case (A) is successful, then I dont want my program to execute the case(B).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the conditional statement of case(A) is unsuccessful, then only i want to execute case (B). Can anyone please tell me how to correct my code to suit the above situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Creasy Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Jan 19, 2009 11:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 01:49:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013406#M1166745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T01:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013407#M1166746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea, you are coding it right.  What's the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,.&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 01:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013407#M1166746</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-01-20T01:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013408#M1166747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is most of the time , the value of 'VAL' can be A and B at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want  both the 'WHEN' statements to be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to modify the above code in a way that if the 'WHEN' statement 'A' is success, i don't want to execute 'WHEN' statement 'B'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got the problem now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should i do to correct it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 01:56:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013408#M1166747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T01:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013409#M1166748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Pseudo code written by you is right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what else you would like to know., in this.. Pls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 01:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013409#M1166748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T01:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013410#M1166749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mathew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the Pseudo code written by you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Case Val.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When 'A'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;Some Conditional Statements&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When 'B'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;Some Statements&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you won't get such true conditional , both the WHEN executed in a single Check... do you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 02:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013410#M1166749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T02:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013411#M1166750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;the value of 'VAL' can be A and B at the same time&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THat, my friend, is an impossibility.  The CASE statement that you have coded is correct.  There is really nothing more I can say about it.  If the value of VAL = A, then that code under the WHEN 'A' statement will be executed, and then processing will leave the CASE statement, and not do the code under the WHEN 'B' statement.  If the value of VAL = B, then it will do the reverse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 02:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013411#M1166750</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-01-20T02:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013412#M1166751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is one case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Case IDocSegment-QUALF.

When '001'

&amp;lt;Some statements&amp;gt;.

When '002'.

&amp;lt;Some statements&amp;gt;.

endcase. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An IDoc segment can have two qualifiers in the same IDoc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E1EDK02-QUALF = '001' = Customer PO&lt;/P&gt;&lt;P&gt;E1EDK02-QUALF = '002' = Sales Order No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there is a case. In my case, all the IDocs contain both the qualifiers. It executes both the 'WHEN' statements. I don't want to. I want only one 'WHEN' statment to be executed depending upon the success of the first 'WHEN' statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you clearly understand now. Sorry for the confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can i do in this situation. Please reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Creasy Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Creasy Matthew on Jan 20, 2009 3:32 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 02:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013412#M1166751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T02:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013413#M1166752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Creasy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Try using IF.....ElseIf....endif. Hope that should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 02:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013413#M1166752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T02:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013414#M1166753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If qualf = '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Executes this part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif qualf = '002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always this part will be skipped.&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;I dont think it will solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway thanks for your advice. Anymore suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 02:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013414#M1166753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T02:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013415#M1166754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, then this coding would have to be inside some loop.  If idocsegment is an internal table, then you must loop through the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at idocsegment. 

Case IDocSegment-QUALF.
 
When '001'
 
&amp;lt;Some statements&amp;gt;.
 
When '002'.
 
&amp;lt;Some statements&amp;gt;.
 
endcase. 

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 03:03:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013415#M1166754</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-01-20T03:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013416#M1166755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Creasy Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Just check how did you declare VAL type it should either C or a STRING, If not this case will allow all time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 03:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013416#M1166755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T03:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013417#M1166756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; Case IDocSegment-QUALF.
 
When '001'
 
&amp;lt;Some statements&amp;gt;.

Exit.
 
When '002'.
 
&amp;lt;Some statements&amp;gt;.
 
endcase. 
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Creasy Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2009 03:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013417#M1166756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-20T03:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013418#M1166757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Why case statement does&amp;nbsp; not support for small alphabet letters ( a, b, c,..z) ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;here i have attached some code .. this is not working for small letters but works for caps letter.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;what is the reason . ? &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-family: 'courier new', courier; color: #ff0000;"&gt; PARAMETERS&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;uname&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;10&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;C&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;CASE &lt;/SPAN&gt;uname&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'karthi'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" but work for caps letter . when 'KARTHI'.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;' user name is' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;uname&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OTHERS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Your name is not karthi'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDCASE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thank you friends &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1949/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 15:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013418#M1166757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-26T15:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013419#M1166758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So... if the IDoc segment table starts with the value '002' this will fail miserably I think...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 15:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013419#M1166758</guid>
      <dc:creator>bruno_esperanca</dc:creator>
      <dc:date>2013-11-26T15:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013420#M1166759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should post this question on a new topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the answer for you is that type C does not differentiate between lower and upper case (it automatically translates to upper case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, when you execute the program the variable 'uname' will always be in upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to differentiate between upper and lower case you need to use another data element with the respective check box ticked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/332157" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 15:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013420#M1166759</guid>
      <dc:creator>bruno_esperanca</dc:creator>
      <dc:date>2013-11-26T15:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013421#M1166760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A _jive_internal="true" href="https://answers.sap.com/people/bruno.esperanca" style="font-weight: bold; font-style: inherit; font-size: 11px; font-family: inherit; text-decoration: underline !important; color: #8b8b8b;"&gt;Bruno Esperanca&lt;/A&gt;. How to create new post here? i couldn't find it . that's why i post here. anyway thanks a lot for your information. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1949/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013421#M1166760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-26T17:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013422#M1166761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In selection screen all the character value which we give will convert into uppercase because SAP thinks that we will be using as a key to retrieve data from tables. if you want only lowercase then you can go with bruno suggestion &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1949/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Saikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 17:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013422#M1166761</guid>
      <dc:creator>sai_krishna24</dc:creator>
      <dc:date>2013-11-26T17:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013423#M1166762</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;Both at a time is not possible,but as you are saying that is possible then use &lt;STRONG&gt;OTHERS.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case VAL.&lt;/P&gt;&lt;P&gt;when 'A'.&lt;/P&gt;&lt;P&gt;Logic&lt;/P&gt;&lt;P&gt;when 'B'.&lt;/P&gt;&lt;P&gt;Logic&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when others.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Logic&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 06:22:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013423#M1166762</guid>
      <dc:creator>former_member221372</dc:creator>
      <dc:date>2013-11-27T06:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013424#M1166763</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;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;PARAMETERS&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;uname&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;10&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;c&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;STRONG&gt;&lt;SPAN class="L0S52"&gt;TRANSLATE &lt;/SPAN&gt;uname &lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;LOWER &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;CASE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;CASE &lt;/SPAN&gt;uname&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'karthi'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" but work for caps letter . when 'KARTHI'.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;' user name is' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;uname&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WHEN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OTHERS&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Your name is not karthi'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN class="L0S52"&gt;ENDCASE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 06:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013424#M1166763</guid>
      <dc:creator>former_member221372</dc:creator>
      <dc:date>2013-11-27T06:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - Case Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013425#M1166764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome Karthi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To post a new discussion, scroll all the way up, click on the link "ABAP Development", then on your right in the 'Actions' pane click on "Start a new discussion".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be cool as I haven't had a "right answer" yet for my missions badges, but it's ok you don't need to create a new discussion only for this if you don't want to &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote jiveImage" src="https://community.sap.com/1949/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 07:54:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-case-statement/m-p/5013425#M1166764</guid>
      <dc:creator>bruno_esperanca</dc:creator>
      <dc:date>2013-11-27T07:54:53Z</dc:date>
    </item>
  </channel>
</rss>

