<?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: inner join on internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716289#M894619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to all of you for valuable replay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 11:44:46 GMT</pubDate>
    <dc:creator>former_member549415</dc:creator>
    <dc:date>2008-04-28T11:44:46Z</dc:date>
    <item>
      <title>inner join on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716283#M894613</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; How to access data from two internal table using join condition ?&lt;/P&gt;&lt;P&gt; suppose i have tow internal table itab and jtab and i want to access data by using inner join on this tow table.&lt;/P&gt;&lt;P&gt;please tell .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 11:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716283#M894613</guid>
      <dc:creator>former_member549415</dc:creator>
      <dc:date>2008-04-28T11:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: inner join on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716284#M894614</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;Inner join is used to fetch data from two database tables not on internal tables....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use read statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 11:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716284#M894614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T11:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: inner join on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716285#M894615</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 use PROVIDE ENDPROVIDE statements in ABAP to achive this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below documenttaion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROVIDE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;PROVIDE FIELDS {*|{comp1 comp2 ...}} &lt;/P&gt;&lt;P&gt;               FROM itab1 INTO wa1 VALID flag1 &lt;/P&gt;&lt;P&gt;               BOUNDS intliml1 AND intlimu1 &lt;/P&gt;&lt;P&gt;               [WHERE log_exp1] &lt;/P&gt;&lt;P&gt;        FIELDS {*|{comp1 comp2 ...}} &lt;/P&gt;&lt;P&gt;               FROM itab2 INTO wa2 VALID flag2 &lt;/P&gt;&lt;P&gt;               BOUNDS intliml2 AND intlimu2 &lt;/P&gt;&lt;P&gt;               [WHERE log_exp2] &lt;/P&gt;&lt;P&gt;               ... &lt;/P&gt;&lt;P&gt;        BETWEEN extliml AND extlimu &lt;/P&gt;&lt;P&gt;        [INCLUDING GAPS]. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;ENDPROVIDE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The statements PROVIDE and ENDPROVIDE define a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together. A single table can appear several times. For every table itab you must specify a FIELDS clause. After FIELDS you must specify the character * for all components or a list comp1 comp2 ... for specific components of the relevant table. The names of the components comp1 comp2 ... can only be specified directly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be able to process internal tables using PROVIDE, all tables itab1 itab2 ... must be fully typed index tables and contain two special columns that have the same data type (d, i, n, or t) for all relevant tables. For every table you must specify the names intliml1 intliml2 ... and intlimu1 intlimu2 ... of these columns using the addition BOUNDS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns intliml1 intliml2 ... and intlimu1 intlimu2 ... in every row of the relevant internal tables must contain values that can be interpreted as limits of closed intervals. Within a table, the intervals specified in these columns must not overlap and must be sorted in ascending order. The intervals therefore make up a unique key for every row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every table you must specify a work area wa1 wa2 ... compatible with the row type and a variable flag1 flag2 ..., for which a character-type data type with length 1 is expected. In the PROVIDE loop, the components specified after FIELDS are filled with values in the relevant work areas wa1 wa2 ... for every specified internal table. The variables flag1 flag2 ... are also filled. A work area wa1 wa2 ... or a variable flag1 flag2 ... cannot be specified more than once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the BETWEEN addition you must specify an interval extliml, extlimu. It must be possible to convert the data objects extliml and extlimu into the data types of the respective columns intliml1 intliml2 ... and intlimu1 intlimu2 ... of the individual tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interval limits intliml1 intliml2 ... and intlimu1 intlim2 for every row of all relevant internal tables itab1 itab2 ... that are within the closed interval made up by extliml and extlimu divide the latter into new intervals and every interval limit closes one interval in the original direction. If, within a relevant table, a lower interval limit follows an upper interval limit with no space or gap between them and the components of the corresponding rows specified after FIELDS have the same content, the two intervals are combined and the corresponding interval limits intliml1 intliml2 ... and intlimu1 intlimu2 ... are ignored for the new intervals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For every interval that is created in such a way and overlaps with at least one of the intervals of a table involved, the PROVIDE loop is passed once. The components of every work area wa1 wa2 ... specified after FIELDS and the variables flag1 flag2 ... are filled with values as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The components intliml1 intliml2 ... and intlimu1 intlimu2 ... of every work area wa1 wa2 ... are filled with the interval limits of the current interval. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the current interval overlaps with one of the intervals of an involved table, the remaining components of the corresponding work area are assigned the contents of the relevant components of this table row and the variable flag1 flag2 ... is set to the value "X". Otherwise, the work area components and the variables flag1 flag2 ... are set to their Initial value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Except for intliml1 intliml2 ... and intlimu1 intlimu2 ..., the components not specified after FIELDS are always set to their initial value. The components intliml1 intliml2 ... and intlimu1 intlimu2 ... are always assigned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ABAP runtime environment checks for every table involved, whether the condition of sorted and non-overlapping intervals is met within the interval made up by extliml and extlimu and, if necessary, triggers an exception that can be handled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the INCLUDING GAPS addition is specified, the system passes the PROVIDE loop for every interval, that is also when the current interval does not overlap with at least one of the intervals of an involved table. In the latter case, the variable flag is of initial value for every relevant table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the WHERE addition to specify a condition for every table itab1 itab2 ... involved. After WHERE, you can specify any logical expression log_exp1 log_exp2 ... ; the first operand of every comparison must be a component of the internal table. As such, all logical expressions except for IS ASSIGNED, IS REQUESTED, and IS SUPPLIED are possible. You can only specify components that are in the list after FIELDS. Here it is not possible to specify a component using character-type data objects in brackets. The table entries for which the condition is not met are ignored by the PROVIDE loop. You can leave the PROVIDE loop following the instructions in the section Leaving loops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system fields sy-subrc and sy-tabix are set to the value 0 before every loop pass and at ENDPROVIDE. Only if the loop is not passed once, is sy-subrc set to 4 at ENDPROVIDE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant internal tables should not be modified in the PROVIDE loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The WHERE condition can be used to remove overlaps between the tables involved or to ensure the sorting of the intervals. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In two tables itab1 and itab2, the respective columns col1 and col2 are interval limits of type i. The filling of the internal tables results in the following intervals (rows two and three): &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;HR originaltext="------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;|01|02|03|04|05|06|07|08|09|10|11|12|13|14| &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;|   Itab1 Int1    |     |Itab1 Int2 |     | &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;|        |      Itab2 Int1       |        | &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;|  |          ... BETWEEN ...             | &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;|  | i1  |   i2   | i3  |   i4   |i5|     | &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------" /&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;The interval specified in the BETWEEN addition to the PROVIDE statement is shown in the fourth row. It serves as a basis for the five intervals in the fifth row represented by i1 to i5. These can be processed in the PROVIDE loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because each of the five intervals overlaps with one of the intervals from rows two and three, the PROVIDE loop is passed five times. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only the component col3 of wa1 is filled in the first pass, only the component col3 of wa2 in the third pass, and the components col3 of both work areas in the second and fourth passes. The fields valid1 and valid2 are set accordingly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa1, &lt;/P&gt;&lt;P&gt;        col1 TYPE i, &lt;/P&gt;&lt;P&gt;        col2 TYPE i, &lt;/P&gt;&lt;P&gt;        col3 TYPE string, &lt;/P&gt;&lt;P&gt;      END OF wa1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa2, &lt;/P&gt;&lt;P&gt;        col1 TYPE i, &lt;/P&gt;&lt;P&gt;        col2 TYPE i, &lt;/P&gt;&lt;P&gt;        col3 TYPE string, &lt;/P&gt;&lt;P&gt;      END OF wa2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab1 LIKE STANDARD TABLE OF wa1, &lt;/P&gt;&lt;P&gt;      itab2 LIKE STANDARD TABLE OF wa2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: flag1(1) TYPE c, &lt;/P&gt;&lt;P&gt;      flag2(1) TYPE c. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa1-col1 = 1. &lt;/P&gt;&lt;P&gt;wa1-col2 = 6. &lt;/P&gt;&lt;P&gt;wa1-col3 = 'Itab1 Int1'. &lt;/P&gt;&lt;P&gt;APPEND wa1 TO itab1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa1-col1 = 9. &lt;/P&gt;&lt;P&gt;wa1-col2 = 12. &lt;/P&gt;&lt;P&gt;wa1-col3 = 'Itab1 Int2'. &lt;/P&gt;&lt;P&gt;APPEND wa1 TO itab1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa2-col1 = 4. &lt;/P&gt;&lt;P&gt;wa2-col2 = 11. &lt;/P&gt;&lt;P&gt;wa2-col3 = 'Itab2 Int1'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROVIDE FIELDS col3 FROM itab1 INTO wa1 &lt;/P&gt;&lt;P&gt;                               VALID flag1 &lt;/P&gt;&lt;P&gt;                               BOUNDS col1 AND col2 &lt;/P&gt;&lt;P&gt;        FIELDS col3 FROM itab2 INTO wa2 &lt;/P&gt;&lt;P&gt;                               VALID flag2 &lt;/P&gt;&lt;P&gt;                               BOUNDS col1 AND col2 &lt;/P&gt;&lt;P&gt;        BETWEEN 2 AND 14. &lt;/P&gt;&lt;P&gt;  WRITE: / wa1-col1, wa1-col2, wa1-col3, flag1. &lt;/P&gt;&lt;P&gt;  WRITE: / wa2-col1, wa2-col2, wa2-col3, flag2. &lt;/P&gt;&lt;P&gt;  SKIP. &lt;/P&gt;&lt;P&gt;ENDPROVIDE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list output is as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   2           3  Itab1 Int1 X &lt;/P&gt;&lt;P&gt;   2           3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   4           6  Itab1 Int1 X &lt;/P&gt;&lt;P&gt;   4           6  Itab2 Int1 X &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   7           8 &lt;/P&gt;&lt;P&gt;   7           8  Itab2 Int1 X &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   9          11  Itab1 Int2 X &lt;/P&gt;&lt;P&gt;   9          11  Itab2 Int1 X &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  12          12  Itab1 Int2 X &lt;/P&gt;&lt;P&gt;  12          12 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions &lt;/P&gt;&lt;P&gt;Catchable Exceptions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CX_SY_PROVIDE_INTERVAL_OVERLAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: In one of the involved tables there are overlapping intervals within extlim1 and extlim2. &lt;/P&gt;&lt;P&gt;Runtime Error: UNCAUGHT_EXCEPTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CX_SY_PROVIDE_TABLE_NOT_SORTED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause: One of the involved tables is not sorted in ascending order by the intervals within extlim1 and extlim2. &lt;/P&gt;&lt;P&gt;Runtime Error: UNCAUGHT_EXCEPTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Velangini Showry Maria Kumar Bandanadham on Apr 28, 2008 1:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 11:34:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716285#M894615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T11:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: inner join on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716286#M894616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Somnath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join is a Part of SELECT statement and SELECT statement works only for Database Tables,&lt;/P&gt;&lt;P&gt;so I don't think so u can use Join on 2 Internal Tables.&lt;/P&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>Mon, 28 Apr 2008 11:34:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716286#M894616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T11:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: inner join on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716287#M894617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ur query should be like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;field1 a&lt;/SUB&gt;field2 b~field1 (and so on..) into corresponding fields of table result_tab&lt;/P&gt;&lt;P&gt;from itab as a inner join jtab as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;field1 = b&lt;/SUB&gt;field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the &lt;STRONG&gt;ON&lt;/STRONG&gt; condition will have all those fields which are common to the 2 tables in the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ITAB n JTAB HAVE TO BE DATABASE TABLES, not internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For internal tables, you ahve to use loop within loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this is helpful.&lt;/P&gt;&lt;P&gt;Pranjal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 11:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716287#M894617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T11:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: inner join on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716288#M894618</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;TYPES:BEGIN OF ST_TABLE,&lt;/P&gt;&lt;P&gt;     KUNNR TYPE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;     LAND1 TYPE KNA1-LAND1,&lt;/P&gt;&lt;P&gt;     NAME1 TYPE KNA1-NAME1,&lt;/P&gt;&lt;P&gt;     ORT01 TYPE KNA1-ORT01,&lt;/P&gt;&lt;P&gt;     VBELN TYPE VBAK-VBELN,&lt;/P&gt;&lt;P&gt;     ERDAT TYPE VBAK-ERDAT,&lt;/P&gt;&lt;P&gt;     ERNAM TYPE VBAK-ERNAM,&lt;/P&gt;&lt;P&gt;     END OF ST_TABLE.&lt;/P&gt;&lt;P&gt;DATA:WA_TABLE TYPE ST_TABLE,&lt;/P&gt;&lt;P&gt;     IT_TABLE TYPE STANDARD TABLE OF ST_TABLE,&lt;/P&gt;&lt;P&gt;     V_KUNNR TYPE KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  SELECT KNA1~KUNNR&lt;/P&gt;&lt;P&gt;         KNA1~LAND1&lt;/P&gt;&lt;P&gt;         KNA1~NAME1&lt;/P&gt;&lt;P&gt;         KNA1~ORT01&lt;/P&gt;&lt;P&gt;         VBAK~VBELN&lt;/P&gt;&lt;P&gt;         VBAK~ERDAT&lt;/P&gt;&lt;P&gt;         VBAK~ERNAM&lt;/P&gt;&lt;P&gt;         FROM KNA1 INNER JOIN VBAK ON KNA1&lt;SUB&gt;KUNNR = VBAK&lt;/SUB&gt;KUNNR&lt;/P&gt;&lt;P&gt;         INTO TABLE IT_TABLE&lt;/P&gt;&lt;P&gt;         WHERE KNA1~KUNNR IN P_KUNNR.&lt;/P&gt;&lt;P&gt;loop at it_table into wa_table.&lt;/P&gt;&lt;P&gt;write:/  wa_table-kunnr,&lt;/P&gt;&lt;P&gt;           wa_table-land1,&lt;/P&gt;&lt;P&gt;           wa_table-name1,'&lt;/P&gt;&lt;P&gt;          wa_table-ort01,&lt;/P&gt;&lt;P&gt;      wa_table-vbeln,&lt;/P&gt;&lt;P&gt;     wa_table-erdat,&lt;/P&gt;&lt;P&gt;wa_table-ernam.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chaithanya A on Apr 28, 2008 1:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 11:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716288#M894618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: inner join on internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716289#M894619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks to all of you for valuable replay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 11:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-on-internal-table/m-p/3716289#M894619</guid>
      <dc:creator>former_member549415</dc:creator>
      <dc:date>2008-04-28T11:44:46Z</dc:date>
    </item>
  </channel>
</rss>

