<?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: I need help with the code... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974912#M1339829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well then try something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a seperate internal table for ADRC table and do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * 
into corresponding fields of table int 
from IFLO as a 
LEFT OUTER JOIN 
AUSP as b 
( on a~TPLNR = b~OBJEK )
INNER JOIN
ILOA as c
( ON a~TPLNR = c~TPLNR)         "----------------&amp;gt; Add the inner join statement 
where ( TPLNR IN TPlNR ) and 
( TPLMA IN TPLMA ) AND 
( FLTYP IN FLTYP ) AND 
( erdat IN erdat ) AND 
( aedat IN aedat ) AND 
( spras = 'E' ). 


select * 
from adrc 
into table it_adrc 
for all entries in it
where addrnumber = it-adrnr.

sort it by adrnr.

loop at it_adrc.
read table it with key adrnr = it_adrc-addrnumber.
if sy-subrc = 0.
move-corresponding it_adrc to it.
modify it index sy-index.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 06:23:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-20T06:23:44Z</dc:date>
    <item>
      <title>I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974907#M1339824</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 conected two tables with left outer join, but now I need some additional data fro othher table... How I can put it togeather?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample doesn't put the additional data from ADRC table into int table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;into corresponding fields of table int&lt;/P&gt;&lt;P&gt;from IFLO as a&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN&lt;/P&gt;&lt;P&gt;AUSP as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;TPLNR = b&lt;/SUB&gt;OBJEK&lt;/P&gt;&lt;P&gt;where ( TPLNR IN TPlNR ) and&lt;/P&gt;&lt;P&gt;      ( TPLMA IN TPLMA ) AND&lt;/P&gt;&lt;P&gt;      ( FLTYP IN FLTYP ) AND&lt;/P&gt;&lt;P&gt;      ( erdat IN erdat ) AND&lt;/P&gt;&lt;P&gt;      ( aedat IN aedat ) AND&lt;/P&gt;&lt;P&gt;      ( spras = 'E' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************************************&lt;/P&gt;&lt;P&gt;SELECT SINGLE * from ILOA WHERE ( TPLNR = iflo-TPLNR ) .&lt;/P&gt;&lt;P&gt;SELECT SINGLE * from ADRC WHERE ( addrnumber = iloa-adrnr ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;       MOVE-CORRESPONDING adrc TO int.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt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/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 13:06:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974907#M1339824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974908#M1339825</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;Try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select *
into corresponding fields of table int
from IFLO as a
LEFT OUTER JOIN
AUSP as b
(on a~TPLNR = b~OBJEK)
LEFT OUTER JOIN 
IOLA as c
(ON a~TPLNR = c~TPLNR)
LEFT OUTER JOIN
ADRC as d
(ON c~adrnr = d~addrnumber)
where ( TPLNR IN TPlNR ) and
(a~TPLMA IN TPLMA ) AND
( a~FLTYP IN FLTYP ) AND
( a~erdat IN erdat ) AND
( c~aedat IN aedat ) AND
( c~spras = 'E' ).

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: vikred on Aug 19, 2009 7:10 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 13:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974908#M1339825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T13:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974909#M1339826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got an error message: The column name "TPLNR" is unclear . &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 14:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974909#M1339826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T14:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974910#M1339827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my SAP system i dint find any tables such as IFLO and IOLA. So just based the select query you posted i suggested my solution. Check which fields correspond to which table and assign them correctly in the select join statement. It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 14:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974910#M1339827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T14:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974911#M1339828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vid, please help me a little bit more... i will explain more in details.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to connect IFLO (standard table for Functional Location (View)) with the AUSP (Characteristic Values) as left outer join, then I need to connect IFLO and ILOA (with the key TPLNR) as inner join and check from  ADRC table if there address exist and fill up the internal table also with adresses.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;into corresponding fields of table int &lt;/P&gt;&lt;P&gt;from IFLO as a &lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN &lt;/P&gt;&lt;P&gt;AUSP as b &lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;TPLNR = b&lt;/SUB&gt;OBJEK &lt;/P&gt;&lt;P&gt;where ( TPLNR IN TPlNR ) and &lt;/P&gt;&lt;P&gt;      ( TPLMA IN TPLMA ) AND &lt;/P&gt;&lt;P&gt;      ( FLTYP IN FLTYP ) AND &lt;/P&gt;&lt;P&gt;      ( erdat IN erdat ) AND &lt;/P&gt;&lt;P&gt;      ( aedat IN aedat ) AND &lt;/P&gt;&lt;P&gt;      ( spras = 'E' ). &lt;/P&gt;&lt;P&gt;This is ok &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL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t;Here I want to conect IFLO-ILOA and ADRC and fill in the internal table with adress data....&lt;/U&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * from ILOA WHERE ( TPLNR = iflo-TPLNR ) . &lt;/P&gt;&lt;P&gt;SELECT SINGLE * from ADRC WHERE ( addrnumber = iloa-adrnr ) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF sy-subrc = 0. &lt;/P&gt;&lt;P&gt;       MOVE-CORRESPONDING adrc TO int. &lt;/P&gt;&lt;P&gt;    ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND int. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt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UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot and nice day &lt;/P&gt;&lt;P&gt;Saso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 06:04:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974911#M1339828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T06:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974912#M1339829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well then try something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a seperate internal table for ADRC table and do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * 
into corresponding fields of table int 
from IFLO as a 
LEFT OUTER JOIN 
AUSP as b 
( on a~TPLNR = b~OBJEK )
INNER JOIN
ILOA as c
( ON a~TPLNR = c~TPLNR)         "----------------&amp;gt; Add the inner join statement 
where ( TPLNR IN TPlNR ) and 
( TPLMA IN TPLMA ) AND 
( FLTYP IN FLTYP ) AND 
( erdat IN erdat ) AND 
( aedat IN aedat ) AND 
( spras = 'E' ). 


select * 
from adrc 
into table it_adrc 
for all entries in it
where addrnumber = it-adrnr.

sort it by adrnr.

loop at it_adrc.
read table it with key adrnr = it_adrc-addrnumber.
if sy-subrc = 0.
move-corresponding it_adrc to it.
modify it index sy-index.
endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 06:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974912#M1339829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T06:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974913#M1339830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vik, &lt;/P&gt;&lt;P&gt;Still the same error (The column name "TPLNR" is unclear) , i think the problem starts here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where ( TPLNR IN TPlNR ) and&lt;/P&gt;&lt;P&gt;( TPLMA IN TPLMA ) AND&lt;/P&gt;&lt;P&gt;( FLTYP IN FLTYP ) AND&lt;/P&gt;&lt;P&gt;( erdat IN erdat ) AND&lt;/P&gt;&lt;P&gt;( aedat IN aedat ) AND&lt;/P&gt;&lt;P&gt;( spras = 'E' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is related to IFLO table... without the new connection, sample is down, it works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;into corresponding fields of table int&lt;/P&gt;&lt;P&gt;from IFLO as a&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN&lt;/P&gt;&lt;P&gt;AUSP as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;TPLNR = b&lt;/SUB&gt;OBJEK&lt;/P&gt;&lt;P&gt;where ( TPLNR IN TPlNR ) and&lt;/P&gt;&lt;P&gt;      ( TPLMA IN TPLMA ) AND&lt;/P&gt;&lt;P&gt;      ( FLTYP IN FLTYP ) AND&lt;/P&gt;&lt;P&gt;      ( erdat IN erdat ) AND&lt;/P&gt;&lt;P&gt;      ( aedat IN aedat ) AND&lt;/P&gt;&lt;P&gt;      ( spras = 'E' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for my "ABAP blondness" &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Saso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 08:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974913#M1339830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T08:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with the code...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974914#M1339831</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;The problem lies in the where condition. Even in the where conditions you have to use the alias name of the fields which correspond to the respective tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select * 
into corresponding fields of table int 
from IFLO as a 
LEFT OUTER JOIN 
AUSP as b 
( on a~TPLNR = b~OBJEK )
INNER JOIN
ILOA as c
( ON a~TPLNR = c~TPLNR)   
where a~TPLNR IN TPlNR and
a~TPLMA IN TPLMA  AND
a~FLTYP IN FLTYP  AND
 c~erdat IN erdat )AND
c~aedat IN aedat AND
c~spras = 'E' .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where a~ * fields refer to the fields of IFLO&lt;/P&gt;&lt;P&gt;and c~ * fields refer to the fields of ILOA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just given a sample am not sure which field corresponds to which table. So assign the alias name to the fields in the where conditions and check if its working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 08:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-help-with-the-code/m-p/5974914#M1339831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T08:29:56Z</dc:date>
    </item>
  </channel>
</rss>

