<?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 SELECT INTO CORRESPONDING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014060#M712285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to perform data selection from tables, where some fields are needed from Table A and ALL fields are needed from Table B. And i falled into the dilema as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZAAA - Table A&lt;/P&gt;&lt;P&gt;ZBBB - Table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF TY_DATA,
        CUST_N TYPE ZCUST,                   "field from Table A, actual technical name is CUST
        INV   TYPE ZINV.                     "field from Table A    
        INCLUDE STRUCTURE OF ZBBB.            "ALL fields from Table B
TYPES: END OF TY_DATA.
DATA: TA_DATA TYPE STANDARD TABLE OF TY_DATA.

SELECT * INTO CORRESPONDING TABLE TA_DATA
  FROM ZAAA AS A
  INNER JOIN ZBBB AS B
  ON A~MATNR = B~MATNR
  WHERE A~MATNR IN S_MATNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, field &amp;lt;b&amp;gt;CUST&amp;lt;/b&amp;gt; is apprearing in both Table A and B, so to avoid the syntax checking, i purposely change to &amp;lt;b&amp;gt;CUST_N&amp;lt;/b&amp;gt; in  TY_DATA declaration.&lt;/P&gt;&lt;P&gt;The purpose that i select the field(CUST) from both table is to perform comparison, i have no choice but has to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem occurs, because in table TA_DATA field &amp;lt;b&amp;gt;CUST_N&amp;lt;/b&amp;gt; returned blank value eventhough there is value in Table A. This is the side effect from &amp;lt;u&amp;gt;INTO CORRESPONDING&amp;lt;/u&amp;gt; command where it will perform the actual technical field name checking before return the value to destination table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to seek your advice on how to manipulate the SQL statement(with same idea of INTO CORRESPONDING) in order to achieve my selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Oct 2007 04:50:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-28T04:50:02Z</dc:date>
    <item>
      <title>SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014060#M712285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to perform data selection from tables, where some fields are needed from Table A and ALL fields are needed from Table B. And i falled into the dilema as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZAAA - Table A&lt;/P&gt;&lt;P&gt;ZBBB - Table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF TY_DATA,
        CUST_N TYPE ZCUST,                   "field from Table A, actual technical name is CUST
        INV   TYPE ZINV.                     "field from Table A    
        INCLUDE STRUCTURE OF ZBBB.            "ALL fields from Table B
TYPES: END OF TY_DATA.
DATA: TA_DATA TYPE STANDARD TABLE OF TY_DATA.

SELECT * INTO CORRESPONDING TABLE TA_DATA
  FROM ZAAA AS A
  INNER JOIN ZBBB AS B
  ON A~MATNR = B~MATNR
  WHERE A~MATNR IN S_MATNR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, field &amp;lt;b&amp;gt;CUST&amp;lt;/b&amp;gt; is apprearing in both Table A and B, so to avoid the syntax checking, i purposely change to &amp;lt;b&amp;gt;CUST_N&amp;lt;/b&amp;gt; in  TY_DATA declaration.&lt;/P&gt;&lt;P&gt;The purpose that i select the field(CUST) from both table is to perform comparison, i have no choice but has to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem occurs, because in table TA_DATA field &amp;lt;b&amp;gt;CUST_N&amp;lt;/b&amp;gt; returned blank value eventhough there is value in Table A. This is the side effect from &amp;lt;u&amp;gt;INTO CORRESPONDING&amp;lt;/u&amp;gt; command where it will perform the actual technical field name checking before return the value to destination table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to seek your advice on how to manipulate the SQL statement(with same idea of INTO CORRESPONDING) in order to achieve my selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 04:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014060#M712285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T04:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014061#M712286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FOR ALL ENTRIES here for getting solution of ur problem and better performance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr mtart&lt;/P&gt;&lt;P&gt;  FROM mara&lt;/P&gt;&lt;P&gt;  INTO TABLE t_mara&lt;/P&gt;&lt;P&gt;  WHERE matnr IN s_matnr.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF NOT t_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT matnr maktx&lt;/P&gt;&lt;P&gt;    FROM makt&lt;/P&gt;&lt;P&gt;    INTO TABLE t_makt&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN t_mara&lt;/P&gt;&lt;P&gt;    WHERE matnr EQ t_mara-matnr.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 05:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014061#M712286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T05:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014062#M712287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AAA - Table A&lt;/P&gt;&lt;P&gt;ZBBB - Table B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_DATA,&lt;/P&gt;&lt;P&gt;        CUST_N TYPE ZCUST,                   "field from Table A, actual technical name is CUST&lt;/P&gt;&lt;P&gt;        INV   TYPE ZINV.                     "field from Table A    &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE OF ZBBB.            "ALL fields from Table B&lt;/P&gt;&lt;P&gt;TYPES: END OF TY_DATA.&lt;/P&gt;&lt;P&gt;DATA: TA_DATA TYPE STANDARD TABLE OF TY_DATA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT * INTO CORRESPONDING TABLE TA_DATA&lt;/P&gt;&lt;P&gt;  FROM ZAAA AS A&lt;/P&gt;&lt;P&gt;  INNER JOIN ZBBB AS B&lt;/P&gt;&lt;P&gt;  ON &amp;lt;b&amp;gt;B&lt;SUB&gt;MATNR = A&lt;/SUB&gt;MATNR&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  WHERE A~MATNR IN S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WATCH OUT FOR DIS CHANE ,IT MIGHT HELP U OUT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 05:24:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014062#M712287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T05:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014063#M712288</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;First of all make sure that from which table you want the cust field.If you want it from A then do this way:&lt;/P&gt;&lt;P&gt;SELECT a~cust &amp;lt;Fl2&amp;gt; &amp;lt;Fl3&amp;gt; into TABLE TA_DATA&lt;/P&gt;&lt;P&gt;  FROM ZAAA AS A&lt;/P&gt;&lt;P&gt;  INNER JOIN ZBBB AS B&lt;/P&gt;&lt;P&gt;  ON A&lt;SUB&gt;MATNR = B&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;  WHERE A~MATNR IN S_MATNR.&lt;/P&gt;&lt;P&gt;and if its B then:&lt;/P&gt;&lt;P&gt;SELECT B~cust &amp;lt;fld2&amp;gt; &amp;lt;fld3&amp;gt; into TABLE TA_DATA&lt;/P&gt;&lt;P&gt;  FROM ZAAA AS A&lt;/P&gt;&lt;P&gt;  INNER JOIN ZBBB AS B&lt;/P&gt;&lt;P&gt;  ON A&lt;SUB&gt;MATNR = B&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;  WHERE A~MATNR IN S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is always advisable not to use "into corresponding" statement as it has performance issues.&lt;/P&gt;&lt;P&gt;In your case,where you need just 3 fields,please write those fields from the tables you want to retrieve the value eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;f1 b&lt;/SUB&gt;f2 a~f3&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;FROM ZAAA AS A&lt;/P&gt;&lt;P&gt;  INNER JOIN ZBBB AS B&lt;/P&gt;&lt;P&gt;  ON A&lt;SUB&gt;MATNR = B&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;  WHERE A~MATNR IN S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 06:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014063#M712288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T06:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014064#M712289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ric :s,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply. Perhaps i have tested FOR ALL ENTRIES, and the performance is bad due to the data being process is huge, 100K ++.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just because of this, i decided to use INNER JOIN to improve 50% of the processing time that needed by FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i need to stick with INNER JOIN for the sake of the performance, do you think i can get my problem solve with INTO CORRESPONDING as mentioned in my earlier post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 06:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014064#M712289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T06:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014065#M712290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my case, i want the field CUST return from both Table A and B. And i always keep in mind not to use INTO CORRESPONDING. &amp;lt;b&amp;gt;But for my case, i need 2 fields from Table A and ALL the fields from Table B&amp;lt;/b&amp;gt;. Furthermore FOR ALL ENTRIES did not performed well as expected(mentioned in my reply earlier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please comment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 06:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014065#M712290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T06:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014066#M712291</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;Then also you can do this way:&lt;/P&gt;&lt;P&gt;Since you need the same field from both the tables,then why not declare 2 separate fields for the same field in the internal table.&lt;/P&gt;&lt;P&gt;Declare the internal table with the fields from both the tables instead of just one:&lt;/P&gt;&lt;P&gt;eg. let itab have a field y_cust for table A and field cust for table B.&lt;/P&gt;&lt;P&gt;Then use &lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;cust b&lt;/SUB&gt;cust a&lt;SUB&gt;fld1 b&lt;/SUB&gt;fld2 and so on..&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;from zztab as a&lt;/P&gt;&lt;P&gt;inner join ......so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to keep the fields in itab in the same order as you select in the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 07:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014066#M712291</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T07:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014067#M712292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your opinion. However i have came across with your suggestion by perform an explicit fields selection in SQL statement(select a&lt;SUB&gt;cust b&lt;/SUB&gt;cust a&lt;SUB&gt;fld1 b&lt;/SUB&gt;fld2) instead of Select * . This is very very tedious and my SQL statement is very long, because my Table B having 100++ fields and i need to extract all the fields. plus 2 fields from Table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore if the structure of Table B change, then i may need to maintain the code accordingly. Since this is higher cost for maintenance,  that's why i drop this options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you think of any other options? Please comment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 09:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014067#M712292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014068#M712293</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 better way is use INTO CORRESPONDING&lt;/P&gt;&lt;P&gt;There is no harm considering the large number of fields in your table and writing them individually will definately be a maintainance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other option is you can create a DB view based on these table and then select data from that view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 09:16:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014068#M712293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T09:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014069#M712294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your post, however DB view is not approved by management. Could you please further comment on how should i fix the problem via the SQL statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 13:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014069#M712294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014070#M712295</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;Then you can use the SQL in the same way as yuo are using and shown in post above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 14:33:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014070#M712295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T14:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014071#M712296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My way can not achieve the correct result. As i need to select a same field CUST from both Table A and B. The result return BLANK from Table A since i declared the field name as CUST_N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore full table fields are needed from Table B, hence i used INTO CORRESPONDING command where i do not need to explicitly define the each field name since Table B contain 100++ fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 15:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014071#M712296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014072#M712297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I  want to make a couple of points here:&lt;/P&gt;&lt;P&gt;1:-Try avoiding into corresponding as it creates performance issues.&lt;/P&gt;&lt;P&gt;2:-Also inner joins statments may or may not work.&lt;/P&gt;&lt;P&gt;Thay might work fine in DEV and QA but in PRD with the large database,when the inner join statments goes and hits the database it is more likey to cause errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 15:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014072#M712297</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2007-10-28T15:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014073#M712298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion i will keep that in mind, in the mean time perhaps can you comment on the issue above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 15:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014073#M712298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-28T15:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014074#M712299</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 try this...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT A&lt;SUB&gt;CUST A&lt;/SUB&gt;INV B~*  INTO TABLE TA_DATA&amp;lt;/b&amp;gt;  FROM ZAAA AS A&lt;/P&gt;&lt;P&gt;  INNER JOIN ZBBB AS B&lt;/P&gt;&lt;P&gt;  ON A&lt;SUB&gt;MATNR = B&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;  WHERE A~MATNR IN S_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Oct 2007 15:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014074#M712299</guid>
      <dc:creator>former_member656234</dc:creator>
      <dc:date>2007-10-28T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT INTO CORRESPONDING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014075#M712300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dimas ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, perhaps i did tried on &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;B~*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;But it can not pass through the syntax check where system returned error &amp;lt;b&amp;gt;"Unkown column name B~*. not determined until runtime, you can not specify a field list."&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please comment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 14:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-into-corresponding/m-p/3014075#M712300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T14:49:09Z</dc:date>
    </item>
  </channel>
</rss>

