<?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: Report Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634445#M282950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier to provide the solution if you describe in detail your requirement with table structure and example if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as what I can understand you can do the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To fectch the 'H' datas and at the same time i want to fetch the 's'.&lt;/P&gt;&lt;P&gt;--&amp;gt; U can simply use the filter in where clause to fetch both example  &lt;/P&gt;&lt;P&gt;SELECT * from ztable &lt;/P&gt;&lt;P&gt;WHERE SHKZG in ('H','S').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Latest data&lt;/P&gt;&lt;P&gt;The latest data can be resolved by sorting the data in descending for the update date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. U can group by material number find the last one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 10:05:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T10:05:31Z</dc:date>
    <item>
      <title>Report Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634443#M282948</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;     I am using a custm table to fectch the 'H' datas and at the same time i want to fetch the 's' in that i want to take the latest data which they updated last.here i use sort using descending to get the latest one.here i cant take the latest one.how to solve pls help .i have the multiple matl no so i want to take the latest one for all material no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 09:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634443#M282948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T09:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Report Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634444#M282949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rajendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Your Q is not clear, probably you can elaborate using an example.. What I feel is you need to pull all data in an internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have one more table .&lt;/P&gt;&lt;P&gt; itab2[] = itab1[].&lt;/P&gt;&lt;P&gt; delete utab2 where field = 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; delete itab1 where fiels = 'H'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then sort your itab1 by the latest record field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop thru and append/modify the details to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you explain ur problem further, i can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634444#M282949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Report Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634445#M282950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would be easier to provide the solution if you describe in detail your requirement with table structure and example if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as what I can understand you can do the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To fectch the 'H' datas and at the same time i want to fetch the 's'.&lt;/P&gt;&lt;P&gt;--&amp;gt; U can simply use the filter in where clause to fetch both example  &lt;/P&gt;&lt;P&gt;SELECT * from ztable &lt;/P&gt;&lt;P&gt;WHERE SHKZG in ('H','S').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Latest data&lt;/P&gt;&lt;P&gt;The latest data can be resolved by sorting the data in descending for the update date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. U can group by material number find the last one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634445#M282950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Report Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634446#M282951</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;You can loop on the internal table after sort, and keep updating the variable which points to the record which has the latest date/time. If you find a record having a date/time earlier to the one pointed by the variable, update the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally after coming out of the loop, record pointed by the variable will be the latest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634446#M282951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Report Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634447#M282952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    after fetching H,S data in itab.&lt;/P&gt;&lt;P&gt;     sort matnr date(last changed if any present) descending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;or use cdhdr,cdpos table to get latest updated &lt;/P&gt;&lt;P&gt;date &lt;/P&gt;&lt;P&gt;    &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;RegarDs&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634447#M282952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Report Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634448#M282953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I am using a customised table having matl no,date,docu no and status field.here the status field having 'H' OR 'S'.Now i want to display all the data having the condition 'h' and at the same time i want to display latest data in 'S'.to find the latest date only the date is available but in the same date they entered three times also so even i use date i want to get the latest one .i am using two internal tables for 'H' and 'S'.Help me how to do this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634448#M282953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Report Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634449#M282954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can follow the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ih ===&amp;gt; internal table with H data.&lt;/P&gt;&lt;P&gt;is ===&amp;gt; internal table with S data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort is by matlno docno descending date descending.&lt;/P&gt;&lt;P&gt;loop at ih.&lt;/P&gt;&lt;P&gt;  clear is.&lt;/P&gt;&lt;P&gt;  loop at is where matlno = ih-matlno.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;     no data in is&lt;/P&gt;&lt;P&gt;  else. &lt;/P&gt;&lt;P&gt;    is data with latest date.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:53:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-issue/m-p/1634449#M282954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:53:33Z</dc:date>
    </item>
  </channel>
</rss>

