<?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 Problem with left outer join + table AUSP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729530#M897646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was trying to do a SELECT statement reading data from mara and AUSP. Therefore I want to use a left outer join. The problem is that it doesn't want to accept the on clause using the OBJEK attribut in AUSP. The Strange thing is that I know that I could access it in another programm.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: ausp, mara.

* temporary table to work with
DATA:
BEGIN OF line,
* Attributes from AUSP
atwrt TYPE AUSP-atwrt,
ATINN TYPE AUSP-ATINN,
OBJEK TYPE AUSP-OBJEK,
* Attributes from MARA
mbrsh TYPE mara-mbrsh,
MANDT TYPE mara-MANDT,
MATNR TYPE mara-MATNR,
* ...
END OF line,
itab LIKE SORTED TABLE OF line
                WITH NON-UNIQUE KEY MATNR.
* Put the requested values in temporary table
SELECT 
ausp-atwrt
ausp-ATINN 
ausp-OBJEK
mara-mbrsh
mara-MANDT
mara-MATNR
* ...
into corresponding fields of table  itab
FROM mara LEFT OUTER JOIN ausp
ON AUSP-OBJEK = MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There must be a syntax error I don't understand. Can you find it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Apr 2008 12:07:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-25T12:07:51Z</dc:date>
    <item>
      <title>Problem with left outer join + table AUSP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729530#M897646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I was trying to do a SELECT statement reading data from mara and AUSP. Therefore I want to use a left outer join. The problem is that it doesn't want to accept the on clause using the OBJEK attribut in AUSP. The Strange thing is that I know that I could access it in another programm.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: ausp, mara.

* temporary table to work with
DATA:
BEGIN OF line,
* Attributes from AUSP
atwrt TYPE AUSP-atwrt,
ATINN TYPE AUSP-ATINN,
OBJEK TYPE AUSP-OBJEK,
* Attributes from MARA
mbrsh TYPE mara-mbrsh,
MANDT TYPE mara-MANDT,
MATNR TYPE mara-MATNR,
* ...
END OF line,
itab LIKE SORTED TABLE OF line
                WITH NON-UNIQUE KEY MATNR.
* Put the requested values in temporary table
SELECT 
ausp-atwrt
ausp-ATINN 
ausp-OBJEK
mara-mbrsh
mara-MANDT
mara-MATNR
* ...
into corresponding fields of table  itab
FROM mara LEFT OUTER JOIN ausp
ON AUSP-OBJEK = MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There must be a syntax error I don't understand. Can you find it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729530#M897646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with left outer join + table AUSP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729531#M897647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you do an array fetch into a sorted table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it´s a wonder that the syntax checker doesnt even whine.&lt;/P&gt;&lt;P&gt;use a standard table and it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729531#M897647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with left outer join + table AUSP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729532#M897648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here Main problem is that you have to &lt;STRONG&gt;replace - (hyphens) with ~ (Tide's)&lt;/STRONG&gt;, as well as no need of using &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF&lt;/STRONG&gt; ( as it degrades PERFORMANCE )as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  BEGIN OF line,
*   Attributes from AUSP
    atwrt TYPE AUSP-atwrt,
    ATINN TYPE AUSP-ATINN,
    OBJEK TYPE AUSP-OBJEK,
*   Attributes from MARA
    mbrsh TYPE mara-mbrsh,
    MANDT TYPE mara-MANDT,
    MATNR TYPE mara-MATNR,
*   ...
  END OF line,
  
  itab LIKE SORTED TABLE OF line
                  WITH NON-UNIQUE KEY MATNR.
* Put the requested values in temporary table
SELECT ausp~atwrt
        ausp~ATINN 
        ausp~oBJEK
        mara~mbrsh
        mara~MANDT
        mara~MATNR
* ...
into table itab
FROM mara LEFT OUTER JOIN ausp
ON AUSP~OBJEK = mara~MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729532#M897648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with left outer join + table AUSP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729533#M897649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hm unfortunatley no effect about that, I changed the code like that and same error:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab LIKE STANDARD TABLE OF line
                WITH NON-UNIQUE KEY MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729533#M897649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with left outer join + table AUSP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729534#M897650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have another problem here. When I try to print the values to screen, I get the error that there is a headline missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;WRITE: / itab&lt;SUB&gt;OBJEK, itab&lt;/SUB&gt;ATINN, itab~atwrt.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:24:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729534#M897650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with left outer join + table AUSP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729535#M897651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, with this kind of tables you need a hear (workarea).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your workarea in that case is the line structure. You must do your loop like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab into line.&lt;/P&gt;&lt;P&gt;WRITE: / line&lt;SUB&gt;OBJEK, line&lt;/SUB&gt;ATINN, line~atwrt.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Artur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 12:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-left-outer-join-table-ausp/m-p/3729535#M897651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T12:38:35Z</dc:date>
    </item>
  </channel>
</rss>

