<?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: Compare Variable value in a Variable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-variable-value-in-a-variable/m-p/10152231#M1820495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Florian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It got resolved by the below way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If V1 &amp;amp; V2 are variables&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE any.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;V2 = 'X'&lt;/P&gt;&lt;P&gt;V1 = 'V2'.&lt;/P&gt;&lt;P&gt;ASSIGN (V1) TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &amp;lt;FS&amp;gt; is ASSIGNED then &amp;lt;FS&amp;gt; will be having its value as 'X'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Mar 2014 04:22:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-15T04:22:45Z</dc:date>
    <item>
      <title>Compare Variable value in a Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-variable-value-in-a-variable/m-p/10152229#M1820493</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 have Variable V2 populated into another Variable V1(not value, directly the variable name).&lt;/P&gt;&lt;P&gt;Now I have to check the value of Variable V2.&lt;/P&gt;&lt;P&gt;In my case the value in V2 can be 'X' or space.&lt;/P&gt;&lt;P&gt;So how to check the value of V2.&lt;/P&gt;&lt;P&gt;Is there anything like IF value(V1) = 'X' comparison.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is dynamically populated into V1 i.e., it can have 'V2', 'V3'...etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Adithya M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 19:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-variable-value-in-a-variable/m-p/10152229#M1820493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-13T19:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Variable value in a Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-variable-value-in-a-variable/m-p/10152230#M1820494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adithya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your problem can be solved by using the assigning statement.&lt;/P&gt;&lt;P&gt;See this link to the help-site:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_470/helpdata/en/fc/eb3923358411d1829f0000e829fbfe/content.htm" title="http://help.sap.com/saphelp_470/helpdata/en/fc/eb3923358411d1829f0000e829fbfe/content.htm"&gt;Assigning Components of Structures to a Field Symbol (SAP Library - ABAP Programming (BC-ABA))&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the copy-paste coding from the site:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;DATA: BEGIN OF LINE,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COL1 TYPE I VALUE '11',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COL2 TYPE I VALUE '22',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; COL3 TYPE I VALUE '33',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END OF LINE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;DATA COMP(5) VALUE 'COL3'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;FIELD-SYMBOLS: &amp;lt;F1&amp;gt;, &amp;lt;F2&amp;gt;, &amp;lt;F3&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;ASSIGN LINE TO &amp;lt;F1&amp;gt;.&lt;BR /&gt;ASSIGN COMP TO &amp;lt;F2&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;DO 3 TIMES.&lt;BR /&gt;&amp;nbsp; ASSIGN COMPONENT SY-INDEX OF STRUCTURE &amp;lt;F1&amp;gt; TO &amp;lt;F3&amp;gt;.&lt;BR /&gt;&amp;nbsp; WRITE &amp;lt;F3&amp;gt;.&lt;BR /&gt;ENDDO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;ASSIGN COMPONENT &amp;lt;F2&amp;gt; OF STRUCTURE &amp;lt;F1&amp;gt; TO &amp;lt;F3&amp;gt;.&lt;BR /&gt;WRITE / &amp;lt;F3&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;The output is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;33&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have fun&lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/651/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;~Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 21:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-variable-value-in-a-variable/m-p/10152230#M1820494</guid>
      <dc:creator>Florian</dc:creator>
      <dc:date>2014-03-13T21:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Variable value in a Variable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-variable-value-in-a-variable/m-p/10152231#M1820495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Florian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It got resolved by the below way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If V1 &amp;amp; V2 are variables&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;FS&amp;gt; &lt;SPAN class="L0S52"&gt;TYPE any.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;V2 = 'X'&lt;/P&gt;&lt;P&gt;V1 = 'V2'.&lt;/P&gt;&lt;P&gt;ASSIGN (V1) TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &amp;lt;FS&amp;gt; is ASSIGNED then &amp;lt;FS&amp;gt; will be having its value as 'X'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 04:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-variable-value-in-a-variable/m-p/10152231#M1820495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-15T04:22:45Z</dc:date>
    </item>
  </channel>
</rss>

