<?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 Reg :  Code in PRG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-code-in-prg/m-p/2797005#M652971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; I have the code given below.&lt;/P&gt;&lt;P&gt;I need to add a field i.e.Table ADCP..field TEL_NUMBER to the existing code.&lt;/P&gt;&lt;P&gt;So, what my question is.. the  select statement is already joinng 4 tables.&lt;/P&gt;&lt;P&gt;Now...Can I join one more table (Table ADCP..field TEL_NUMBER )&lt;/P&gt;&lt;P&gt; to the existing code&lt;/P&gt;&lt;P&gt; or&lt;/P&gt;&lt;P&gt;Is there any other way for to add the field??? IF yes..plz tell me clearly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBAN&lt;SUB&gt;AFNAM EBAN&lt;/SUB&gt;BADAT EBAN&lt;SUB&gt;BANFN EBAN&lt;/SUB&gt;BNFPO EBAN~ERDAT&lt;/P&gt;&lt;P&gt;       EBAN&lt;SUB&gt;ERNAM EBAN&lt;/SUB&gt;FRGGR EBAN&lt;SUB&gt;FRGRL EBAN&lt;/SUB&gt;FRGST EBAN~FRGZU&lt;/P&gt;&lt;P&gt;       EBAN&lt;SUB&gt;LOEKZ EBAN&lt;/SUB&gt;WERKS ZPR_APPR_USER&lt;SUB&gt;BANFN ZPR_APPR_USER&lt;/SUB&gt;BNFPO&lt;/P&gt;&lt;P&gt;       ZPR_APPR_USER&lt;SUB&gt;FULLNAME1 ZPR_APPR_USER&lt;/SUB&gt;FULLNAME2&lt;/P&gt;&lt;P&gt;       ZPR_APPR_USER&lt;SUB&gt;FULLNAME3 ZPR_APPR_USER&lt;/SUB&gt;FULLNAME4 USR21~BNAME&lt;/P&gt;&lt;P&gt;       USR21&lt;SUB&gt;PERSNUMBER ADRP&lt;/SUB&gt;NAME_TEXT ADRP~PERSNUMBER&lt;/P&gt;&lt;P&gt;INTO (EBAN-AFNAM , EBAN-BADAT , EBAN-BANFN , EBAN-BNFPO , EBAN-   ERDAT&lt;/P&gt;&lt;P&gt;     , EBAN-ERNAM , EBAN-FRGGR , EBAN-FRGRL , EBAN-FRGST , EBAN-FRGZU&lt;/P&gt;&lt;P&gt;     , EBAN-LOEKZ , EBAN-WERKS , ZPR_APPR_USER-BANFN&lt;/P&gt;&lt;P&gt;     , ZPR_APPR_USER-BNFPO , ZPR_APPR_USER-FULLNAME1&lt;/P&gt;&lt;P&gt;     , ZPR_APPR_USER-FULLNAME2 , ZPR_APPR_USER-FULLNAME3&lt;/P&gt;&lt;P&gt;     , ZPR_APPR_USER-FULLNAME4 , USR21-BNAME , USR21-PERSNUMBER&lt;/P&gt;&lt;P&gt;     , ADRP-NAME_TEXT , ADRP-PERSNUMBER )&lt;/P&gt;&lt;P&gt;FROM ( EBAN&lt;/P&gt;&lt;P&gt;       INNER JOIN ZPR_APPR_USER&lt;/P&gt;&lt;P&gt;       ON ZPR_APPR_USER&lt;SUB&gt;BANFN = EBAN&lt;/SUB&gt;BANFN&lt;/P&gt;&lt;P&gt;       AND ZPR_APPR_USER&lt;SUB&gt;BNFPO = EBAN&lt;/SUB&gt;BNFPO&lt;/P&gt;&lt;P&gt;       INNER JOIN USR21&lt;/P&gt;&lt;P&gt;       ON USR21&lt;SUB&gt;BNAME = EBAN&lt;/SUB&gt;ERNAM&lt;/P&gt;&lt;P&gt;       INNER JOIN ADRP&lt;/P&gt;&lt;P&gt;       ON ADRP&lt;SUB&gt;PERSNUMBER = USR21&lt;/SUB&gt;PERSNUMBER )&lt;/P&gt;&lt;P&gt;       WHERE EBAN~AFNAM IN SP$00005&lt;/P&gt;&lt;P&gt;         AND EBAN~FRGRL IN SP$00004&lt;/P&gt;&lt;P&gt;         AND EBAN~FRGST IN SP$00001&lt;/P&gt;&lt;P&gt;         AND EBAN~LOEKZ IN SP$00002&lt;/P&gt;&lt;P&gt;         AND EBAN~WERKS IN SP$00003&lt;/P&gt;&lt;P&gt;         AND EBAN~ERNAM IN S_ERNAM&lt;/P&gt;&lt;P&gt;         AND EBAN~BANFN IN S_BANFN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLz suggest what should be the better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Vaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2007 10:50:33 GMT</pubDate>
    <dc:creator>mallikarjun_vaja</dc:creator>
    <dc:date>2007-09-18T10:50:33Z</dc:date>
    <item>
      <title>Reg :  Code in PRG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-code-in-prg/m-p/2797005#M652971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; I have the code given below.&lt;/P&gt;&lt;P&gt;I need to add a field i.e.Table ADCP..field TEL_NUMBER to the existing code.&lt;/P&gt;&lt;P&gt;So, what my question is.. the  select statement is already joinng 4 tables.&lt;/P&gt;&lt;P&gt;Now...Can I join one more table (Table ADCP..field TEL_NUMBER )&lt;/P&gt;&lt;P&gt; to the existing code&lt;/P&gt;&lt;P&gt; or&lt;/P&gt;&lt;P&gt;Is there any other way for to add the field??? IF yes..plz tell me clearly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EBAN&lt;SUB&gt;AFNAM EBAN&lt;/SUB&gt;BADAT EBAN&lt;SUB&gt;BANFN EBAN&lt;/SUB&gt;BNFPO EBAN~ERDAT&lt;/P&gt;&lt;P&gt;       EBAN&lt;SUB&gt;ERNAM EBAN&lt;/SUB&gt;FRGGR EBAN&lt;SUB&gt;FRGRL EBAN&lt;/SUB&gt;FRGST EBAN~FRGZU&lt;/P&gt;&lt;P&gt;       EBAN&lt;SUB&gt;LOEKZ EBAN&lt;/SUB&gt;WERKS ZPR_APPR_USER&lt;SUB&gt;BANFN ZPR_APPR_USER&lt;/SUB&gt;BNFPO&lt;/P&gt;&lt;P&gt;       ZPR_APPR_USER&lt;SUB&gt;FULLNAME1 ZPR_APPR_USER&lt;/SUB&gt;FULLNAME2&lt;/P&gt;&lt;P&gt;       ZPR_APPR_USER&lt;SUB&gt;FULLNAME3 ZPR_APPR_USER&lt;/SUB&gt;FULLNAME4 USR21~BNAME&lt;/P&gt;&lt;P&gt;       USR21&lt;SUB&gt;PERSNUMBER ADRP&lt;/SUB&gt;NAME_TEXT ADRP~PERSNUMBER&lt;/P&gt;&lt;P&gt;INTO (EBAN-AFNAM , EBAN-BADAT , EBAN-BANFN , EBAN-BNFPO , EBAN-   ERDAT&lt;/P&gt;&lt;P&gt;     , EBAN-ERNAM , EBAN-FRGGR , EBAN-FRGRL , EBAN-FRGST , EBAN-FRGZU&lt;/P&gt;&lt;P&gt;     , EBAN-LOEKZ , EBAN-WERKS , ZPR_APPR_USER-BANFN&lt;/P&gt;&lt;P&gt;     , ZPR_APPR_USER-BNFPO , ZPR_APPR_USER-FULLNAME1&lt;/P&gt;&lt;P&gt;     , ZPR_APPR_USER-FULLNAME2 , ZPR_APPR_USER-FULLNAME3&lt;/P&gt;&lt;P&gt;     , ZPR_APPR_USER-FULLNAME4 , USR21-BNAME , USR21-PERSNUMBER&lt;/P&gt;&lt;P&gt;     , ADRP-NAME_TEXT , ADRP-PERSNUMBER )&lt;/P&gt;&lt;P&gt;FROM ( EBAN&lt;/P&gt;&lt;P&gt;       INNER JOIN ZPR_APPR_USER&lt;/P&gt;&lt;P&gt;       ON ZPR_APPR_USER&lt;SUB&gt;BANFN = EBAN&lt;/SUB&gt;BANFN&lt;/P&gt;&lt;P&gt;       AND ZPR_APPR_USER&lt;SUB&gt;BNFPO = EBAN&lt;/SUB&gt;BNFPO&lt;/P&gt;&lt;P&gt;       INNER JOIN USR21&lt;/P&gt;&lt;P&gt;       ON USR21&lt;SUB&gt;BNAME = EBAN&lt;/SUB&gt;ERNAM&lt;/P&gt;&lt;P&gt;       INNER JOIN ADRP&lt;/P&gt;&lt;P&gt;       ON ADRP&lt;SUB&gt;PERSNUMBER = USR21&lt;/SUB&gt;PERSNUMBER )&lt;/P&gt;&lt;P&gt;       WHERE EBAN~AFNAM IN SP$00005&lt;/P&gt;&lt;P&gt;         AND EBAN~FRGRL IN SP$00004&lt;/P&gt;&lt;P&gt;         AND EBAN~FRGST IN SP$00001&lt;/P&gt;&lt;P&gt;         AND EBAN~LOEKZ IN SP$00002&lt;/P&gt;&lt;P&gt;         AND EBAN~WERKS IN SP$00003&lt;/P&gt;&lt;P&gt;         AND EBAN~ERNAM IN S_ERNAM&lt;/P&gt;&lt;P&gt;         AND EBAN~BANFN IN S_BANFN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLz suggest what should be the better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Vaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 10:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-code-in-prg/m-p/2797005#M652971</guid>
      <dc:creator>mallikarjun_vaja</dc:creator>
      <dc:date>2007-09-18T10:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reg :  Code in PRG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-code-in-prg/m-p/2797006#M652972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mallikarjun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with respect to the performance wise you need to use upto 3 tables in select stmt using joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the tables are more in number then its better to go for FOR ALL ENTRIES .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first select the data from any 3 tables into one internal table &lt;/P&gt;&lt;P&gt;and using that internal table in FOR ALL ENTRIES clause use remaining db tables in another select stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;performance wise its better choice while selecting the data from DB tables.&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;&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 10:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-code-in-prg/m-p/2797006#M652972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T10:55:21Z</dc:date>
    </item>
  </channel>
</rss>

