<?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: Retrieve data from LIPS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-from-lips/m-p/1092513#M101219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;i presume you want to do the join&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select *
into corresponding fields of table itab
from mch1 as m inner join lips as p on p~matnr = m~matnr
                                   and p~charg = m~charg
where p~posnr = ( select max( posnr ) from lips
                   where vbeln = p~vbeln ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select statement should read every lips record linked to mch1 (given matnr/charg) and considers only those lips record with the greatest posnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'm not sure if for each mch1 record (matnr/charg) it exists only 1 occurrence of likp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider to reward points for useful answers.&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2005 12:57:13 GMT</pubDate>
    <dc:creator>manuel_bassani</dc:creator>
    <dc:date>2005-12-12T12:57:13Z</dc:date>
    <item>
      <title>Retrieve data from LIPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-from-lips/m-p/1092511#M101217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to retrieve data from LIPS starting from MCH1...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;into itab&lt;/P&gt;&lt;P&gt;from mch1 as m&lt;/P&gt;&lt;P&gt;inner join lips as p on&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;But i need the join the be done only on the last record of LIPS do you this it is possible that way or not ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think so but just to be sure...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 12:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-from-lips/m-p/1092511#M101217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve data from LIPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-from-lips/m-p/1092512#M101218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you clearly specify what do you want...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 12:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-from-lips/m-p/1092512#M101218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-12T12:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve data from LIPS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-from-lips/m-p/1092513#M101219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephan,&lt;/P&gt;&lt;P&gt;i presume you want to do the join&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select *
into corresponding fields of table itab
from mch1 as m inner join lips as p on p~matnr = m~matnr
                                   and p~charg = m~charg
where p~posnr = ( select max( posnr ) from lips
                   where vbeln = p~vbeln ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This select statement should read every lips record linked to mch1 (given matnr/charg) and considers only those lips record with the greatest posnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i'm not sure if for each mch1 record (matnr/charg) it exists only 1 occurrence of likp...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider to reward points for useful answers.&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2005 12:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-data-from-lips/m-p/1092513#M101219</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2005-12-12T12:57:13Z</dc:date>
    </item>
  </channel>
</rss>

