<?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 Code ABAP joins in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676831#M1099884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, it's the first time that i do a small BW project,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1:&lt;/P&gt;&lt;P&gt;name________________departement &lt;/P&gt;&lt;P&gt;jean.pierre_____________VBB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2: &lt;/P&gt;&lt;P&gt;mail________________________________ logon&lt;/P&gt;&lt;P&gt;jean.pierre @ entrprise.com_____________PierreJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do a join with 2 tables above &lt;/P&gt;&lt;P&gt;in order to match the name with the mail. I need do some treatment with the 'mail ' in deleteing le @entreprise .com to do this join. &lt;/P&gt;&lt;P&gt;so I want to know some one has done this and how to do this , and if you have some code exemple that's better &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kai zhang on Oct 28, 2008 4:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2008 16:24:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-28T16:24:57Z</dc:date>
    <item>
      <title>Code ABAP joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676831#M1099884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts, it's the first time that i do a small BW project,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1:&lt;/P&gt;&lt;P&gt;name________________departement &lt;/P&gt;&lt;P&gt;jean.pierre_____________VBB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2: &lt;/P&gt;&lt;P&gt;mail________________________________ logon&lt;/P&gt;&lt;P&gt;jean.pierre @ entrprise.com_____________PierreJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do a join with 2 tables above &lt;/P&gt;&lt;P&gt;in order to match the name with the mail. I need do some treatment with the 'mail ' in deleteing le @entreprise .com to do this join. &lt;/P&gt;&lt;P&gt;so I want to know some one has done this and how to do this , and if you have some code exemple that's better &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kai zhang on Oct 28, 2008 4:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 16:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676831#M1099884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code ABAP joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676832#M1099885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no common fields, so no DB join... I would suggest select from both tables into two internal tables and do the following (pseudo code):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab2. "this is the with the email (second one in your question
SPLIT itab2-mail INTO field1 field2 AT '@'.
READ TABLE itab1 WITH KEY name = field1.
==&amp;gt; Now you have both records and you can whatever you want
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(itab1 has to be a sorted table, or sort it before the LOOP and add BINARY SEARCH to the READ TABLE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 16:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676832#M1099885</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-10-28T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code ABAP joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676833#M1099886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A second option could be having a unique common fields in both the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1:&lt;/P&gt;&lt;P&gt;Userid / PersonlNum / Globalid ( Unique for a person )&lt;/P&gt;&lt;P&gt;name&lt;/P&gt;&lt;P&gt;departement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;Userid / PersonlNum / Globalid&lt;/P&gt;&lt;P&gt;mail&lt;/P&gt;&lt;P&gt;logon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 17:24:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676833#M1099886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T17:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Code ABAP joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676834#M1099887</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 you have to split the email...and you have to take one extra field in itab2 where you will store the name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at &amp;lt;itab2&amp;gt;.
split mail at '@' into str1 str2.
&amp;lt;new-field&amp;gt; = str1.
modify &amp;lt;itab2&amp;gt;.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at &amp;lt;itab1&amp;gt;.
read table &amp;lt;itab2&amp;gt; with key &amp;lt;new-field&amp;gt; = &amp;lt;itab1&amp;gt;-name.
  write you own code.  "This is the join
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arunima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 08:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-abap-joins/m-p/4676834#M1099887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-29T08:27:19Z</dc:date>
    </item>
  </channel>
</rss>

