<?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 HELP WITH JOIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150946#M749311</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;i new with join and i have this code and i wont  to separate  it to 2 select &lt;/P&gt;&lt;P&gt;how i can do that ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i reward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT /bic/pybproject~/bic/ybproject&lt;/P&gt;&lt;P&gt;           /bic/tybproject~txtmd&lt;/P&gt;&lt;P&gt;    FROM /bic/pybproject&lt;/P&gt;&lt;P&gt;        LEFT OUTER JOIN /bic/tybproject ON /bic/tybproject&lt;SUB&gt;/bic/ybproject EQ /bic/pybproject&lt;/SUB&gt;/bic/ybproject&lt;/P&gt;&lt;P&gt;                                  AND /bic/tybproject~langu EQ sy-langu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE projects &lt;/P&gt;&lt;P&gt;    WHERE /bic/pybproject~changed NE 'D' &lt;/P&gt;&lt;P&gt;      AND /bic/pybproject~/bic/zps_pr_rs EQ /bic/zps_pr_rs&lt;/P&gt;&lt;P&gt;      and /bic/pybproject~/BIC/ZPS_SY_ST not like 'CLSD%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Dec 2007 10:22:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-24T10:22:56Z</dc:date>
    <item>
      <title>HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150946#M749311</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;i new with join and i have this code and i wont  to separate  it to 2 select &lt;/P&gt;&lt;P&gt;how i can do that ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i reward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT /bic/pybproject~/bic/ybproject&lt;/P&gt;&lt;P&gt;           /bic/tybproject~txtmd&lt;/P&gt;&lt;P&gt;    FROM /bic/pybproject&lt;/P&gt;&lt;P&gt;        LEFT OUTER JOIN /bic/tybproject ON /bic/tybproject&lt;SUB&gt;/bic/ybproject EQ /bic/pybproject&lt;/SUB&gt;/bic/ybproject&lt;/P&gt;&lt;P&gt;                                  AND /bic/tybproject~langu EQ sy-langu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING FIELDS OF TABLE projects &lt;/P&gt;&lt;P&gt;    WHERE /bic/pybproject~changed NE 'D' &lt;/P&gt;&lt;P&gt;      AND /bic/pybproject~/bic/zps_pr_rs EQ /bic/zps_pr_rs&lt;/P&gt;&lt;P&gt;      and /bic/pybproject~/BIC/ZPS_SY_ST not like 'CLSD%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 10:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150946#M749311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T10:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150947#M749312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT /bic/ybproject&lt;/P&gt;&lt;P&gt;             FROM /bic/pybproject&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE projects &lt;/P&gt;&lt;P&gt;             WHERE changed NE 'D' &lt;/P&gt;&lt;P&gt;             AND /bic/zps_pr_rs EQ /bic/zps_pr_rs&lt;/P&gt;&lt;P&gt;             AND /BIC/ZPS_SY_ST not like 'CLSD%'.&lt;/P&gt;&lt;P&gt;if not projects[] is initial.&lt;/P&gt;&lt;P&gt;SELECT txtmd&lt;/P&gt;&lt;P&gt;             FROM /bic/tybproject&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE projects &lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN projects&lt;/P&gt;&lt;P&gt;             WHERE /bic/ybproject EQ projects-bic/ybproject&lt;/P&gt;&lt;P&gt;                          langu             EQ sy-langu. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified it please check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mukesh kumar on Dec 24, 2007 11:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 10:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150947#M749312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T10:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150948#M749313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi frindes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 10:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150948#M749313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T10:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150949#M749314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i give a smple and easy to understandable join code compare this with your code and split up what you want....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;field1 b&lt;/SUB&gt;field2 into table intable from dbtab1 as a left outer join dbtab2 as b where cont..........&lt;/P&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;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;jai.m&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 10:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150949#M749314</guid>
      <dc:creator>jayakummar</dc:creator>
      <dc:date>2007-12-24T10:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150950#M749315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mukesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try your soltion but i have error in the second select &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the eroor: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wrong table name or table alias name table alias name "PROJECTS". table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF NOT projects[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;SELECT txtmd&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;FROM /bic/tybproject&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE b_proj&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;FOR ALL ENTRIES IN  projects&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;WHERE /bic/ybproject EQ projects~/bic/ybproject&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;LANGU EQ sy-langu.&lt;/STRONG&gt;&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;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 10:46:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150950#M749315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T10:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150951#M749316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace ~ with - in where condition in projects-bic/ybproject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT projects[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT txtmd&lt;/P&gt;&lt;P&gt;FROM /bic/tybproject&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE projects&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN projects&lt;/P&gt;&lt;P&gt;WHERE /bic/ybproject EQ projects-bic/ybproject&lt;/P&gt;&lt;P&gt;LANGU EQ sy-langu.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 10:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150951#M749316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T10:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150952#M749317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mukesh  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks now its working but the problem is when i do the second select it delete the first data (projects num) from table projects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 10:57:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150952#M749317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T10:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150953#M749318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better use two internal table for both the select and create a final internal table it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After both the selects are done use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move-corresponding it_first_select to it_final.&lt;/P&gt;&lt;P&gt;Move-corresponding it_select_select to it_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this below sample code for demonstration of the use of move-corresponding statment&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_TABLE OCCURS 10, &lt;/P&gt;&lt;P&gt;        WORD(10), &lt;/P&gt;&lt;P&gt;        NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;        INDEX  LIKE SY-INDEX, &lt;/P&gt;&lt;P&gt;      END   OF INT_TABLE, &lt;/P&gt;&lt;P&gt;      BEGIN OF RECORD, &lt;/P&gt;&lt;P&gt;        NAME(10) VALUE 'not WORD', &lt;/P&gt;&lt;P&gt;        NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;        INDEX(20), &lt;/P&gt;&lt;P&gt;      END   OF RECORD. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING INT_TABLE TO RECORD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT /bic/ybproject&lt;/P&gt;&lt;P&gt;FROM /bic/pybproject&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_first_select &lt;/P&gt;&lt;P&gt;WHERE changed NE 'D' &lt;/P&gt;&lt;P&gt;AND /bic/zps_pr_rs EQ /bic/zps_pr_rs&lt;/P&gt;&lt;P&gt;AND /BIC/ZPS_SY_ST not like 'CLSD%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_first_select[] is initial.&lt;/P&gt;&lt;P&gt;SELECT txtmd&lt;/P&gt;&lt;P&gt;FROM /bic/tybproject&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE it_second_select &lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_first_select&lt;/P&gt;&lt;P&gt;WHERE /bic/ybproject EQ it_first_select-bic/ybproject&lt;/P&gt;&lt;P&gt;langu EQ sy-langu. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move-corresponding it_first_select to it_final.&lt;/P&gt;&lt;P&gt;Move-corresponding it_second_select to it_final.&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;Mukesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mukesh kumar on Dec 24, 2007 12:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 11:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150953#M749318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T11:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: HELP WITH JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150954#M749319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks  kumar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u help me with that .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2007 12:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-with-join/m-p/3150954#M749319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-24T12:32:20Z</dc:date>
    </item>
  </channel>
</rss>

