<?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: Problem with View. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708432#M1106183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, waited all day for answers!! Anyways, I removed pa0001 table from the view and now its working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, another select statement and another loop wouldbe required just to pick up a field from pa0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,I am still open to suggestions. :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2008 14:55:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-17T14:55:31Z</dc:date>
    <item>
      <title>Problem with View.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708429#M1106180</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 am trying to create a view with the following tables: COEP,COBK,PA0001 AND PRPS. So, the main intention is I want employee name from PA0001 based on Personnel Number from COEP and POSID, i.e the WBS element from PRPS based on object number from COEP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, coep and cobk(mandt,kokrs and belnr) have three fields which need to be put in join conditions and all the three are key fields in the respective tables. So, no issue till that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in the next join condition I gave pa0001-pernr = coep-pernr and pa0001-mandt = coep-mandt respecting the client dependancy of the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, in the same way for PRPS, i gave mandt and objnr in the join conditions with the other table being coep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in coep objnr and pernr are not key fields..and objnr is not a key field in PRPS also. Only pernr is a key field in pa0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue here is: Each record is shown twice. There is a duplicate record for every record. I think the issue is with the key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas please??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 03:25:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708429#M1106180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T03:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with View.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708430#M1106181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check your table/join condition carefully.&lt;/P&gt;&lt;P&gt;Did you maintain your key fields relation with any other table in table/join condition?&lt;/P&gt;&lt;P&gt;i guess this consequences happen when we not maintain our key fields relation  in table/join condition tab .&lt;/P&gt;&lt;P&gt;You must add key fields in table/join condition with other table like you are joinning non key fields,because View always give prefer your join condition over key fields,cause basic defination of view is depend on join only .Check once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gujargoud on Nov 17, 2008 6:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 05:34:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708430#M1106181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T05:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with View.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708431#M1106182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit, for all th four tables I used here are the join conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COBK-MANDT = COEP-MANDT, 
COBK-KOKRS = COEP-KOKRS,
COBK-BLENR = COEP-BELNR,   "these three are key fields for their respective tables
PA0001-MANDT = COEP-MANDT,"this is also key field join
PA0001-PERNR = COEP-PERNR, "here pernr is key field only with pa0001, but not with COEP.
PRPS-MANDT = COEP-MANDT,
PRPS-OBJNR = COEP-OBJNR," not a key field in either of the tables.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, after seeing your answer, I am realizing that I should not have put join condition for non key fields..Is that true?? Just mandt field will do for the join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: other than mandt and objnr,no other common fields between PRPS and COEP..and in PA0001 also only PERNR and MANDT are the common fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vishwa Sri Hari on Nov 17, 2008 11:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 05:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708431#M1106182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T05:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with View.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708432#M1106183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, waited all day for answers!! Anyways, I removed pa0001 table from the view and now its working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, another select statement and another loop wouldbe required just to pick up a field from pa0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,I am still open to suggestions. :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2008 14:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-view/m-p/4708432#M1106183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-17T14:55:31Z</dc:date>
    </item>
  </channel>
</rss>

