<?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: abap query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325216#M166733</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;You can join the TABLES in the Functional Area (Info Set in 5.0 ver.) Directly. You have the 'Insert Table' Option in the Tool Bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BaLaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2006 12:51:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-14T12:51:56Z</dc:date>
    <item>
      <title>abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325206#M166723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i join a table by using abap query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 23:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325206#M166723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T23:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325207#M166724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priya-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT lfa1&lt;SUB&gt;lifnr lfa1&lt;/SUB&gt;stcd1&lt;/P&gt;&lt;P&gt;           bsak&lt;SUB&gt;xblnr bsak&lt;/SUB&gt;augbl bsak~auggj&lt;/P&gt;&lt;P&gt;      FROM lfa1&lt;/P&gt;&lt;P&gt;        INNER JOIN bsak ON lfa1&lt;SUB&gt;lifnr = bsak&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;        INTO TABLE i_lfa1&lt;/P&gt;&lt;P&gt;        WHERE lfa1~lifnr = actualvendorid&lt;/P&gt;&lt;P&gt;          AND bsak~xblnr = ap03_invoicenumber .      &lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;I hope this will help you out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 23:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325207#M166724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-17T23:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325208#M166725</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 above example is right. I'll give you another example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;psphi b&lt;/SUB&gt;refbn b~lifnr&lt;/P&gt;&lt;P&gt;        FROM prps AS a INNER JOIN cooi AS b&lt;/P&gt;&lt;P&gt;           ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF it_hdr&lt;/P&gt;&lt;P&gt;        WHERE a~psphi IN so_psphi&lt;/P&gt;&lt;P&gt;          AND a~pbukr = pa_bukrs&lt;/P&gt;&lt;P&gt;          AND a~erdat LE v_budat&lt;/P&gt;&lt;P&gt;          AND b~refbn IN so_ebeln&lt;/P&gt;&lt;P&gt;          AND b~lifnr IN so_lifnr&lt;/P&gt;&lt;P&gt;          AND b~matnr IN so_matnr&lt;/P&gt;&lt;P&gt;          AND b~rfart = 'P'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 02:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325208#M166725</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-05-18T02:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325209#M166726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;table should be having pri-foer key relation ship , the only u can join table in SQVI or any Joins , u cannt use Cluster table in ABAP Quey .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 06:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325209#M166726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325210#M166727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        You can join tables using JOIN statement in ABAP.&lt;/P&gt;&lt;P&gt;But you can not join on cluster tabels.Be sure that your join tables are not of cluster tables.&amp;lt;b&amp;gt;To Join two tables you need to have a foreign key relation ship between tables.&amp;lt;/b&amp;gt; There are two kinds of joins.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1)Inner Join:&amp;lt;/b&amp;gt; The inner join joins the columns of every selected line on the left- hand side with the columns of all lines on the right-hand side that jointly fulfil the join_cond condition.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;2)Outer Join:&amp;lt;/b&amp;gt; The outer join basically creates the same resulting set as the inner join, with the difference that at least one line is created in the resulting set for every selected line on the left-hand side, even if no line on the right-hand side fulfils the join_cond condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A maximum of 24 join expressions that join 25 database tables or views with each other can be specified after FROM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP statement for joinin tables is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_cityfr TYPE spfli-cityfrom. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa, &lt;/P&gt;&lt;P&gt;        carrid   TYPE scarr-carrid, &lt;/P&gt;&lt;P&gt;        carrname TYPE scarr-carrname, &lt;/P&gt;&lt;P&gt;        connid   TYPE spfli-connid, &lt;/P&gt;&lt;P&gt;      END OF wa, &lt;/P&gt;&lt;P&gt;      itab LIKE SORTED TABLE OF wa &lt;/P&gt;&lt;P&gt;                WITH NON-UNIQUE KEY carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT s&lt;SUB&gt;carrid s&lt;/SUB&gt;carrname p~connid &lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE itab &lt;/P&gt;&lt;P&gt;       FROM scarr AS s &lt;/P&gt;&lt;P&gt;       INNER JOIN spfli AS p ON s&lt;SUB&gt;carrid   =  p&lt;/SUB&gt;carrid &lt;/P&gt;&lt;P&gt;                             AND p~cityfrom = p_cityfr.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;LOOP AT itab INTO wa. &lt;/P&gt;&lt;P&gt;  IF wa-connid = '0000'. &lt;/P&gt;&lt;P&gt;    WRITE: / wa-carrid, wa-carrname. &lt;/P&gt;&lt;P&gt;  ENDIF. &lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: plz reward points to helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 07:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325210#M166727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T07:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325211#M166728</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 single a~smtp_addr from adr6 as a inner join&lt;/P&gt;&lt;P&gt;       kna1 as k&lt;/P&gt;&lt;P&gt;       on k&lt;SUB&gt;adrnr = a&lt;/SUB&gt;addrnumber&lt;/P&gt;&lt;P&gt;       into i_clientinfo-Email&lt;/P&gt;&lt;P&gt;       where k~KUNNR = i_clientinfo-clientid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 07:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325211#M166728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T07:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325212#M166729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi priya.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try out this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_matno like mkpf-mblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wt_mseg occurs 10,&lt;/P&gt;&lt;P&gt;      zeile like mseg-zeile,&lt;/P&gt;&lt;P&gt;      matnr like mseg-matnr,&lt;/P&gt;&lt;P&gt;      maktx like makt-maktx,&lt;/P&gt;&lt;P&gt;      menge like mseg-menge,&lt;/P&gt;&lt;P&gt;      meins like mseg-meins,&lt;/P&gt;&lt;P&gt;end of wt_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select mseg&lt;SUB&gt;zeile mseg&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;       makt&lt;SUB&gt;maktx mseg&lt;/SUB&gt;menge&lt;/P&gt;&lt;P&gt;       mseg~meins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into (wt_mseg-zeile,&lt;/P&gt;&lt;P&gt;      wt_mseg-matnr,&lt;/P&gt;&lt;P&gt;      wt_mseg-maktx,&lt;/P&gt;&lt;P&gt;      wt_mseg-menge,&lt;/P&gt;&lt;P&gt;      wt_mseg-meins)&lt;/P&gt;&lt;P&gt;from mseg inner join makt&lt;/P&gt;&lt;P&gt;on mseg&lt;SUB&gt;matnr = makt&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;where mblnr = p_matno.      &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;append wt_mseg.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2006 07:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325212#M166729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-18T07:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325213#M166730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;howhat r the steps in table controls in user exits&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 13:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325213#M166730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-04T13:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325214#M166731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer to this for abap query. In info sets you can do join between tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://www.sappoint.com/abap/ab4query.pdf"&amp;gt;ABAP Query&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 14:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325214#M166731</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-06-04T14:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325215#M166732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;u can go through the following two examples : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  p&lt;SUB&gt;carrid p&lt;/SUB&gt;connid f&lt;SUB&gt;fldate b&lt;/SUB&gt;bookid&lt;/P&gt;&lt;P&gt;  INTO  CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;  FROM  ( ( spfli AS p&lt;/P&gt;&lt;P&gt;            INNER JOIN sflight AS f ON p&lt;SUB&gt;carrid = f&lt;/SUB&gt;carrid AND&lt;/P&gt;&lt;P&gt;                                       p&lt;SUB&gt;connid = f&lt;/SUB&gt;connid    )&lt;/P&gt;&lt;P&gt;            INNER JOIN sbook   AS b ON b&lt;SUB&gt;carrid = f&lt;/SUB&gt;carrid AND&lt;/P&gt;&lt;P&gt;                                       b&lt;SUB&gt;connid = f&lt;/SUB&gt;connid AND&lt;/P&gt;&lt;P&gt;                                       b&lt;SUB&gt;fldate = f&lt;/SUB&gt;fldate     )&lt;/P&gt;&lt;P&gt;  WHERE p~cityfrom = 'FRANKFURT' AND&lt;/P&gt;&lt;P&gt;        p~cityto   = 'NEW YORK'  AND&lt;/P&gt;&lt;P&gt;        f&lt;SUB&gt;seatsmax &amp;gt; f&lt;/SUB&gt;seatsocc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outer join  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT s&lt;SUB&gt;carrid s&lt;/SUB&gt;carrname p~connid&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;  FROM scarr AS s&lt;/P&gt;&lt;P&gt;       LEFT OUTER JOIN spfli AS p ON s&lt;SUB&gt;carrid   =  p&lt;/SUB&gt;carrid AND&lt;/P&gt;&lt;P&gt;                                     p~cityfrom = 'FRANKFURT'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 09:45:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325215#M166732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T09:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: abap query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325216#M166733</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;You can join the TABLES in the Functional Area (Info Set in 5.0 ver.) Directly. You have the 'Insert Table' Option in the Tool Bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;BaLaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2006 12:51:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/1325216#M166733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-14T12:51:56Z</dc:date>
    </item>
  </channel>
</rss>

