<?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: JOIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095709#M979418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii!&lt;/P&gt;&lt;P&gt;  Try out this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_sdn.
TABLES:
  mara,
  ekpo.

SELECT-OPTIONS:
  s_matnr FOR mara-matnr,
  s_matkl FOR mara-matkl,
  s_bukrs FOR ekpo-bukrs,
  s_werks FOR ekpo-werks.
PARAMETERS:
  p_edate TYPE mara-ersda.
DATA:
  BEGIN OF fs_mat,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    matnr TYPE ekpo-matnr,
    werks TYPE ekpo-werks,
    aedat TYPE ekpo-aedat,
    umrez TYPE ekpo-umrez,
    umren TYPE ekpo-umren,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    matkl TYPE mara-matkl,
    meins TYPE mara-meins,
  END OF fs_mat.


DATA:
  t_mat LIKE
  TABLE OF
        fs_mat.


START-OF-SELECTION.

  PERFORM get_data.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM get_data .
  SELECT a~ebeln
         a~ebelp
         a~matnr
         a~werks
         a~aedat
         a~umrez
         a~umren
         a~netpr
         a~peinh
         b~matkl
         b~meins
    INTO CORRESPONDING FIELDS OF TABLE t_mat
    FROM ( ekpo AS a
           LEFT OUTER JOIN mara AS b
           ON b~matnr EQ a~matnr
           AND b~matkl EQ a~matkl )
   WHERE a~matnr IN s_matnr
     AND a~matkl IN s_matkl
     AND a~bukrs IN s_bukrs
     AND a~werks IN s_werks
     AND a~aedat LE p_edate.

ENDFORM.                    " get_data

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet Kulshreshtha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2008 07:32:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-08T07:32:55Z</dc:date>
    <item>
      <title>JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095704#M979413</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;&lt;/P&gt;&lt;P&gt;i need get materials from mara and even from ekpo table,&lt;/P&gt;&lt;P&gt;for materials for which PO has created for that i need get from ekpo table. even for which po is not created also i need to get .&lt;/P&gt;&lt;P&gt;i have written left outer join in select query.&lt;/P&gt;&lt;P&gt;could you please suggest anything i have writen wrong because i am not getting the correct data.&lt;/P&gt;&lt;P&gt;code is&lt;/P&gt;&lt;P&gt;SELECT A~EBELN&lt;/P&gt;&lt;P&gt;A~EBELP&lt;/P&gt;&lt;P&gt;A~MATNR&lt;/P&gt;&lt;P&gt;A~WERKS&lt;/P&gt;&lt;P&gt;A~AEDAT&lt;/P&gt;&lt;P&gt;A~MEINS&lt;/P&gt;&lt;P&gt;A~UMREZ&lt;/P&gt;&lt;P&gt;A~UMREN&lt;/P&gt;&lt;P&gt;A~NETPR&lt;/P&gt;&lt;P&gt;A~PEINH&lt;/P&gt;&lt;P&gt;B~MATKL&lt;/P&gt;&lt;P&gt;B~MEINS&lt;/P&gt;&lt;P&gt;INTO corresponding fields of TABLE GT_EKPO&lt;/P&gt;&lt;P&gt;FROM ( EKPO AS A&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN MARA AS B&lt;/P&gt;&lt;P&gt;ON B&lt;SUB&gt;MATNR EQ A&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;AND B&lt;SUB&gt;MATKL EQ A&lt;/SUB&gt;MATKL )&lt;/P&gt;&lt;P&gt;WHERE A~MATNR IN S_MATNR&lt;/P&gt;&lt;P&gt;AND A~MATKL IN S_MATKL&lt;/P&gt;&lt;P&gt;AND A~BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;AND A~WERKS IN S_WERKS&lt;/P&gt;&lt;P&gt;AND A~AEDAT LE P_EDATE.&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095704#M979413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095705#M979414</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;Use for all entries instead of join becoz it will take time to execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_read_ekpo&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_read_ekpo .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_ekko[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Select Purchansing document purchasing document item and material&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; from table EKPO into internal table it_ekpo&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT ebeln                             "Purchasing Document&lt;/P&gt;&lt;P&gt;           ebelp                             "Purchasing Document Item&lt;/P&gt;&lt;P&gt;           matnr                             "Material&lt;/P&gt;&lt;P&gt;           FROM ekpo&lt;/P&gt;&lt;P&gt;           INTO TABLE it_ekpo&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN it_ekko&lt;/P&gt;&lt;P&gt;           WHERE ebeln EQ it_ekko-ebeln&lt;/P&gt;&lt;P&gt;           AND   matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*--Sort table by purchasing document anf purchasing document item&lt;/P&gt;&lt;P&gt;      SORT it_ekpo BY ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sub_read_ekpo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_read_eket&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_read_eket .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_ekpo[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Select Purchasing Document Number Item Number of Purchasing Document&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; and Delivery Date from table EKET&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT ebeln                               "Purchasing Document Number&lt;/P&gt;&lt;P&gt;           ebelp                               "Item Number of Purchasing Document&lt;/P&gt;&lt;P&gt;           eindt                               "Delivery Date&lt;/P&gt;&lt;P&gt;           FROM eket&lt;/P&gt;&lt;P&gt;           INTO TABLE it_eket&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;           WHERE ebeln EQ it_ekpo-ebeln&lt;/P&gt;&lt;P&gt;           AND   ebelp EQ it_ekpo-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;*--Sort table by purchasing document anf purchasing document item&lt;/P&gt;&lt;P&gt;      SORT it_eket BY ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " sub_read_eket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095705#M979414</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2008-07-08T07:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095706#M979415</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 to fetch the details of EKPO after MARA based on SY-SUBRC, so that you may not have the confusion on fetching the records based on MATNR. Even Performance increases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095706#M979415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095707#M979416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use a left outer join in the FROM clause of a SELECT command, it makes a crucial difference whether the logical condition is in the ON or the WHERE clause. Since not all of the database systems supported by SAP themselves support the standard syntax and semantics of the left outer join, the syntax has been restricted to those cases that return the same solution in all database systems: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only a table or view may come after the JOIN statement, not another join expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only logical operator allowed in the ON condition is AND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each comparison in the ON comdition must contain a field from the right-hand table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comparisons in the WHERE condition may not contain fields from the right-hand table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only use EQ (or &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; as comparisons in the ON condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ON condition must contain at least one "real" JOIN condition (a condition containing a field from both tabref1 and tabref2) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, try to use INNER JOIN instead of LEFT JOIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095707#M979416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095708#M979417</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;SELECT A~EBELN&lt;/P&gt;&lt;P&gt;A~EBELP&lt;/P&gt;&lt;P&gt;A~MATNR&lt;/P&gt;&lt;P&gt;A~WERKS&lt;/P&gt;&lt;P&gt;A~AEDAT&lt;/P&gt;&lt;P&gt;A~MEINS&lt;/P&gt;&lt;P&gt;A~UMREZ&lt;/P&gt;&lt;P&gt;A~UMREN&lt;/P&gt;&lt;P&gt;A~NETPR&lt;/P&gt;&lt;P&gt;A~PEINH&lt;/P&gt;&lt;P&gt;B~MATKL&lt;/P&gt;&lt;P&gt;B~MEINS&lt;/P&gt;&lt;P&gt;INTO corresponding fields of TABLE GT_EKPO&lt;/P&gt;&lt;P&gt;FROM ( EKPO AS A&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN MARA AS B&lt;/P&gt;&lt;P&gt;ON B&lt;SUB&gt;MATNR EQ A&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;AND B&lt;SUB&gt;MATKL EQ A&lt;/SUB&gt;MATKL )&lt;/P&gt;&lt;P&gt;WHERE A~MATNR IN S_MATNR&lt;/P&gt;&lt;P&gt;AND A~MATKL IN S_MATKL&lt;/P&gt;&lt;P&gt;AND A~BUKRS IN S_BUKRS&lt;/P&gt;&lt;P&gt;AND A~WERKS IN S_WERKS&lt;/P&gt;&lt;P&gt;AND A~AEDAT LE P_EDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code. declare two int.tables for mara(i_mara) and ekpo(i_ekpo).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first select &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr matkl mains into table i_mara&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matkl in s_matkl&lt;/P&gt;&lt;P&gt;and bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;and werks in s_werks&lt;/P&gt;&lt;P&gt;and aedat le p_edat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebelp matnr werks aedat ........... into table i_ekpo&lt;/P&gt;&lt;P&gt;from ekpo&lt;/P&gt;&lt;P&gt;where matnr = i_mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table i_ekpo with key matnr = i_mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_mara-ebelp = i_ekpo-ebelp.&lt;/P&gt;&lt;P&gt;i_mara-werks = i_ekpo-werks.&lt;/P&gt;&lt;P&gt;i_mara-aedat = i_ekpo-aedat.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify i_mara transporting ebelp werks aedat ...........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally u can write fields from  i_mara.&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;&lt;/P&gt;&lt;P&gt;sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095708#M979417</guid>
      <dc:creator>venkatasriram_mygapula</dc:creator>
      <dc:date>2008-07-08T07:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095709#M979418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii!&lt;/P&gt;&lt;P&gt;  Try out this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_sdn.
TABLES:
  mara,
  ekpo.

SELECT-OPTIONS:
  s_matnr FOR mara-matnr,
  s_matkl FOR mara-matkl,
  s_bukrs FOR ekpo-bukrs,
  s_werks FOR ekpo-werks.
PARAMETERS:
  p_edate TYPE mara-ersda.
DATA:
  BEGIN OF fs_mat,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    matnr TYPE ekpo-matnr,
    werks TYPE ekpo-werks,
    aedat TYPE ekpo-aedat,
    umrez TYPE ekpo-umrez,
    umren TYPE ekpo-umren,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    matkl TYPE mara-matkl,
    meins TYPE mara-meins,
  END OF fs_mat.


DATA:
  t_mat LIKE
  TABLE OF
        fs_mat.


START-OF-SELECTION.

  PERFORM get_data.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  get_data
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM get_data .
  SELECT a~ebeln
         a~ebelp
         a~matnr
         a~werks
         a~aedat
         a~umrez
         a~umren
         a~netpr
         a~peinh
         b~matkl
         b~meins
    INTO CORRESPONDING FIELDS OF TABLE t_mat
    FROM ( ekpo AS a
           LEFT OUTER JOIN mara AS b
           ON b~matnr EQ a~matnr
           AND b~matkl EQ a~matkl )
   WHERE a~matnr IN s_matnr
     AND a~matkl IN s_matkl
     AND a~bukrs IN s_bukrs
     AND a~werks IN s_werks
     AND a~aedat LE p_edate.

ENDFORM.                    " get_data

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet Kulshreshtha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095709#M979418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095710#M979419</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;please correct yout query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT A~EBELN&lt;/P&gt;&lt;P&gt;A~EBELP&lt;/P&gt;&lt;P&gt;A~MATNR&lt;/P&gt;&lt;P&gt;A~WERKS&lt;/P&gt;&lt;P&gt;A~AEDAT&lt;/P&gt;&lt;P&gt;A~MEINS&lt;/P&gt;&lt;P&gt;A~UMREZ&lt;/P&gt;&lt;P&gt;A~UMREN&lt;/P&gt;&lt;P&gt;A~NETPR&lt;/P&gt;&lt;P&gt;A~PEINH&lt;/P&gt;&lt;P&gt;B~MATKL&lt;/P&gt;&lt;P&gt;B~MEINS&lt;/P&gt;&lt;P&gt;up to 10 rows&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;dont write into corresponding  table here&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM  EKPO AS A&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN MARA AS B&lt;/P&gt;&lt;P&gt;ON B&lt;SUB&gt;MATNR EQ A&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;AND B&lt;SUB&gt;MATKL EQ A&lt;/SUB&gt;MATKL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INTO corresponding fields of TABLE GT_EKPO.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;suman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: suman kumar chinnam on Jul 8, 2008 9:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095710#M979419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095711#M979420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi srilatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Dont use left outer join  use inner join instead since your requirement is to get the materials for which the purchase order is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join/m-p/4095711#M979420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:55:07Z</dc:date>
    </item>
  </channel>
</rss>

