<?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: Comparing two character fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972081#M1800867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pritee, If you need more information about comparing two strings, check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2013 10:03:37 GMT</pubDate>
    <dc:creator>bernat_loscos</dc:creator>
    <dc:date>2013-12-12T10:03:37Z</dc:date>
    <item>
      <title>Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972072#M1800858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a peculiar issue even though it is an easy one but i am facing and so far unable to find the solution. in my reporting to create vendor, i have to compare to fields of character type, and if both character fields having the same content then CONTINUE should be triggered. but in my case it is not at all triggering the CONTINUE. my sample code is as follow. am just giving an abstract code as original is restricted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of gty_itab,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f1 type char10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2 type char24,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3 type char10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of gty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gt_itab type table of gty_itab,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gw_itab type gty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_text type c length 24 value 'DO NOT ADD TO THE OUTPUT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = '1st qtr'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'do not add to the output'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'vendor'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = '2nd qtr'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'Regular'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'customer'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = '3rd qtr'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'do not add to the output'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'vendor1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = '4th qtr'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'irregular'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'vendor'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_itab into gw_itab.&lt;/P&gt;&lt;P&gt;*translate gw_itab-f2 to upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( gw_itab-f2 = c_text )..&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / gw_itab-f1, gw_itab-f2, gw_itab-f3.&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;Early reply will be apprecieated and rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972072#M1800858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T09:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972073#M1800859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uncomment this line&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;translate&lt;SPAN style="font-size: 10pt;"&gt; gw_itab-f2 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972073#M1800859</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-12-12T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972074#M1800860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveet,&lt;/P&gt;&lt;P&gt;Translate gw_itab-f2 to upper case is needed as sometime the user may input "Do not add to the output" and there is a chance that some time the user may give "do not add to the output".so need to change it to upper case and checking against the content of c_text(DO NOT ADD TO THE OUTPUT). if both are same then CONTINUE should be executed and that particular line should not be displayed in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if you any other solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972074#M1800860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T09:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972075#M1800861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi pritee,&lt;/P&gt;&lt;P&gt;just uncoment your&amp;nbsp; line which starts wit translate it works fine..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972075#M1800861</guid>
      <dc:creator>sivaganesh_krishnan</dc:creator>
      <dc:date>2013-12-12T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972076#M1800862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even after commenting the "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;translate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #333333;"&gt; gw_itab-f2 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;case&lt;/SPAN&gt;", it is still not executing the CONTINUE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972076#M1800862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972077#M1800863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is executing , in my case . i just uncommented it and it worked as you suggested . check whether the condition values are equal or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:50:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972077#M1800863</guid>
      <dc:creator>sivaganesh_krishnan</dc:creator>
      <dc:date>2013-12-12T09:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972078#M1800864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sivaganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. and also thanks to Nabheet also for his response.&lt;/P&gt;&lt;P&gt;Even after uncommenting the "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;translate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #333333;"&gt; gw_itab-f2 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #333333;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;case"&lt;/SPAN&gt;, it is still not executing the CONTINUE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other solution for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972078#M1800864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972079#M1800865</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;it works fine... but you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( gw_itab-f2 CS c_text ).&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972079#M1800865</guid>
      <dc:creator>bernat_loscos</dc:creator>
      <dc:date>2013-12-12T09:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972080#M1800866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try with CO (Contains only ) also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;if ( gw_itab-f2 CO c_text ).&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;continue.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 09:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972080#M1800866</guid>
      <dc:creator>sivaganesh_krishnan</dc:creator>
      <dc:date>2013-12-12T09:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972081#M1800867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pritee, If you need more information about comparing two strings, check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972081#M1800867</guid>
      <dc:creator>bernat_loscos</dc:creator>
      <dc:date>2013-12-12T10:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972082#M1800868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bernat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your timely help. it solved my problem.thanks to Nabheet and Sivaganesh also. for ref purpose I am putting the code as follow.&lt;/P&gt;&lt;P&gt;types: begin of gty_itab,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f1 type char10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2 type char21,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3 type char10,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of gty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : gt_itab type table of gty_itab,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gw_itab type gty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants: c_text type c length 21 value 'Non-entity contractor'."'NON-ENTITY CONTRACTOR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = 'rajesh'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'Non-entity Contractor'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'vendor'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = 'rajesh1'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'Regular'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'customer'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = 'rajesh2'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'Non-entity Contractor'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'vendor1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gw_itab-f1 = 'rajesh5'.&lt;/P&gt;&lt;P&gt;gw_itab-f2 = 'irregular'.&lt;/P&gt;&lt;P&gt;gw_itab-f3 = 'vendor'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gw_itab to gt_itab.&lt;/P&gt;&lt;P&gt;clear gw_itab.&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;loop at gt_itab into gw_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*translate gw_itab-f2 to upper case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( gw_itab-f2 CS c_text )..&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / gw_itab-f1, gw_itab-f2, gw_itab-f3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972082#M1800868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T10:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972083#M1800869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Bernat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Priteeranjan Nayak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972083#M1800869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T10:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972084#M1800870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sample code works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not the continue line but the translate line you should bother about. Make sure it is executed.&lt;/P&gt;&lt;P&gt;set a break-point after the translate statemnt and check in debugger.&lt;/P&gt;&lt;P&gt;If in doubt, make use of the compare feature in debugger (second last tab).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Jörg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972084#M1800870</guid>
      <dc:creator>jrg_wulf</dc:creator>
      <dc:date>2013-12-12T10:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972085#M1800871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Siva Ganesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try out your suggested solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Priteeranjan Nayak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972085#M1800871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T10:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972086#M1800872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jorg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the input. for the time being it is working. will be waiting for the client to come up with any other requirement related to this. will be trying out as told by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Priteeranjan Nayak &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972086#M1800872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T10:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two character fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972087#M1800873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pritee Ranjan Nayak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code you have a field&amp;nbsp; '&lt;SPAN style="color: #333333; font-size: 12px;"&gt; c_text&lt;/SPAN&gt;' which contains a constant value &lt;SPAN style="color: #333333; font-size: 12px;"&gt;'DO NOT ADD TO THE OUTPUT'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are filling the internal table with the 4 rows of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have rewritten your code&amp;nbsp; plz go through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;REPORT&amp;nbsp; &lt;/SPAN&gt;ZTEM&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;types&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;begin &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;gty_itab&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f1 &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;char10&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f2 &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;char24&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f3 &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;char10&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;end &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;gty_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;data &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;gt_itab &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;table &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;gty_itab&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gw_itab &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;gty_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;constants&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;c_text&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;24&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&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;value &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'DO NOT ADD TO THE OUTPUT'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'1st qtr'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f2 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'do not add to the output'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f3 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'vendor'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;gw_itab &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;gt_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;clear &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'2nd qtr'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f2 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'Regular'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f3 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'customer'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;gw_itab &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;gt_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;clear &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'3rd qtr'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f2 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'do not add to the output'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f3 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'vendor1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;gw_itab &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;gt_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;clear &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f1 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'4th qtr'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f2 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'irregular'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f3 &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'vendor'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;gw_itab &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;gt_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;clear &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;gt_itab &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;translate &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f2 &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;upper &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;case&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;c_text &lt;SPAN class="L0S52"&gt;eq &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f2&amp;nbsp; &lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;continue&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;write&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f1&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f2&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;f3&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="L0S52"&gt;clear &lt;/SPAN&gt;gw_itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;endloop&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Output of your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/342057" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Hope this helps you &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Rounak &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/408/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 10:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparing-two-character-fields/m-p/9972087#M1800873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-12T10:19:28Z</dc:date>
    </item>
  </channel>
</rss>

