<?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 take appropiate value. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708250#M1453369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an Internal table and i have two records where i &lt;/P&gt;&lt;P&gt;HIST_TYPE = 'E' and&lt;/P&gt;&lt;P&gt;HIST_TYPE = 'Q'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i find both  E and Q then i should take into consideration of  = Q.&lt;/P&gt;&lt;P&gt;If i find only E then i should take E alone.&lt;/P&gt;&lt;P&gt;the second one is fine. but if i have both E and Q how can i take Q Into consideration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i have some input please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;pasala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Mar 2010 09:56:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-18T09:56:01Z</dc:date>
    <item>
      <title>take appropiate value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708250#M1453369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have an Internal table and i have two records where i &lt;/P&gt;&lt;P&gt;HIST_TYPE = 'E' and&lt;/P&gt;&lt;P&gt;HIST_TYPE = 'Q'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i find both  E and Q then i should take into consideration of  = Q.&lt;/P&gt;&lt;P&gt;If i find only E then i should take E alone.&lt;/P&gt;&lt;P&gt;the second one is fine. but if i have both E and Q how can i take Q Into consideration?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i have some input please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;pasala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 09:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708250#M1453369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T09:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: take appropiate value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708251#M1453370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No big deal&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table itab with key HIST_TYPE = 'E'.
if sy-subrc = 0.
  "then look for Q
  read table itab with key HIST_TYPE = 'Q'.
  if sy-subrc = 0.
      "take Q
  else.
     "take E
  endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 10:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708251#M1453370</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-03-18T10:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: take appropiate value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708252#M1453371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;i have an Internal table and i have two records where i &lt;/P&gt;&lt;P&gt;HIST_TYPE = 'E' and&lt;/P&gt;&lt;P&gt;HIST_TYPE = 'Q'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i find both E and Q then i should take into consideration of = Q.&lt;/P&gt;&lt;P&gt;If i find only E then i should take E alone.&lt;/P&gt;&lt;P&gt;the second one is fine. but if i have both E and Q how can i take Q Into consideration?//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to give an idea . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the itab has only two records then set up a flag for condition 1 when E and Q are there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop will iterate for two times . one first occurance of E set it to 1 . for occurance of Q set it to 2 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the flag becomes 2 it means you have to consider Q. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If iterated for 1  then you can see it is E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if inside the loop u need to clear thh count eveytime for new item / Uniqe no and process this with ctrl break statements . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br, &lt;/P&gt;&lt;P&gt;VIjay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 10:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708252#M1453371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T10:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: take appropiate value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708253#M1453372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try logic:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read itab with key HIST_TYPE = 'E'.
if sy-subrc = 0.
  read table itab with key HIST_TYPE = 'Q'.
  if sy-subrc = 0.
    result = 'Q'.
  else.
    result = 'E'.
  endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 10:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/take-appropiate-value/m-p/6708253#M1453372</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-18T10:02:59Z</dc:date>
    </item>
  </channel>
</rss>

