<?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: help need in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570004#M257379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT &lt;SPAN __jive_macro_name="Fields"&gt; MAX(DATBI)
into table itab
From A903 where
KAPPL in S_KAPPL
AND KSCHL in S_KSCHL
AND VKORG in S_VKORG
AND VTWEG in S_VTWEG
AND PLTYP in S_PLTYP
AND KFRST in S_KFRST
AND KNUMH = CDHDR-OBJECTID 
GROUP BY &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Sep 2006 11:48:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-08T11:48:47Z</dc:date>
    <item>
      <title>help need</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1569998#M257373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u please help me&lt;/P&gt;&lt;P&gt;SELECT all the records from A903 where&lt;/P&gt;&lt;P&gt;	    KAPPL in S_KAPPL&lt;/P&gt;&lt;P&gt;	AND KSCHL in S_KSCHL&lt;/P&gt;&lt;P&gt;	AND VKORG in S_VKORG&lt;/P&gt;&lt;P&gt;	AND VTWEG in S_VTWEG&lt;/P&gt;&lt;P&gt;	AND PLTYP in S_PLTYP&lt;/P&gt;&lt;P&gt;	AND KFRST in S_KFRST&lt;/P&gt;&lt;P&gt;	AND KNUMH = CDHDR-OBJECTID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;up to this i have written the coading&lt;/P&gt;&lt;P&gt;for below one i have a little bit confusion could u please help me how to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select all condition records for all materials in which the Condition Type = &amp;#145;ZPR0&amp;#146;, Sales Organization = &amp;#145;1100&amp;#146; and Distribution Channel = &amp;#145;01&amp;#146; and the Price List = &amp;#145;01&amp;#146; or &amp;#145;02&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF there are multiple records (unlikely, but &amp;#133;) take ONLY the one with the highest end date (DATBI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this record the program will get the required values for all the dates needed on the outbound record and the KNUNH is the required condition record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srilavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1569998#M257373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: help need</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1569999#M257374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put like this &lt;/P&gt;&lt;P&gt;SELECT all the records from A903 where&lt;/P&gt;&lt;P&gt;KAPPL in S_KAPPL&lt;/P&gt;&lt;P&gt;AND KSCHL in S_KSCHL&lt;/P&gt;&lt;P&gt;AND VKORG in S_VKORG&lt;/P&gt;&lt;P&gt;AND VTWEG in S_VTWEG&lt;/P&gt;&lt;P&gt;AND PLTYP in S_PLTYP&lt;/P&gt;&lt;P&gt;AND KFRST in S_KFRST&lt;/P&gt;&lt;P&gt;AND KNUMH = CDHDR-OBJECTID &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AND DATBI GE S_budat_low or HIGN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;While Creating the Conition Records each and very record has validation dates.
So DATBI for latest records always will be '99991231'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Prabhu Peram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1569999#M257374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: help need</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570000#M257375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Thanks a lot&lt;/P&gt;&lt;P&gt;but i did nt under stood below one coul u please elabrate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND DATBI GE S_budat_low or HIGN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srilavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570000#M257375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: help need</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570001#M257376</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;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort the internal table by the date (DATBI) field in descending order,and read the first record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by datbi descending.&lt;/P&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sowjanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570001#M257376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: help need</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570002#M257377</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;its simple,first get the data without this condition and then you can just add the records that satisfies the date condition. just sort the internal table fields kschl vkorg vtweg pltyp datbi in descending order and read the first record and append this record to the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570002#M257377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: help need</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570003#M257378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   sort itab by kschl vkorg vtweg pltyp datbi descending.&lt;/P&gt;&lt;P&gt;   loop at itab where kschl = 'ZPRO'&lt;/P&gt;&lt;P&gt;                and vkorg = '1100'&lt;/P&gt;&lt;P&gt;                and vtweg = '01'&lt;/P&gt;&lt;P&gt;                and ( pltyp = '01 or pltyp ='02'). &lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&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>Fri, 08 Sep 2006 11:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570003#M257378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: help need</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570004#M257379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT &lt;SPAN __jive_macro_name="Fields"&gt; MAX(DATBI)
into table itab
From A903 where
KAPPL in S_KAPPL
AND KSCHL in S_KSCHL
AND VKORG in S_VKORG
AND VTWEG in S_VTWEG
AND PLTYP in S_PLTYP
AND KFRST in S_KFRST
AND KNUMH = CDHDR-OBJECTID 
GROUP BY &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 11:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-need/m-p/1570004#M257379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T11:48:47Z</dc:date>
    </item>
  </channel>
</rss>

