<?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: Regarding JOIN Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926405#M1692035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To me it looks like that data that is comming from VBBE (Material numer, Plant, customer number) should be get from other tables in case there is no VBBE entry for a VBEP schedule line. These tables are VBAK (Order header) and VBAP (Order item). When you have a VBEP schedule line there is always an order VBAK and order line VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2012 02:40:04 GMT</pubDate>
    <dc:creator>JackGraus</dc:creator>
    <dc:date>2012-08-02T02:40:04Z</dc:date>
    <item>
      <title>Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926395#M1692025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working for change TR. I need to get the data from 2 tables and the table are VBEP and VBBE. Scenario is business will create some orders(future orders) with Schedule line category with out confirmed quantity, so those orders(future orders) will not store in VBBE. After confirmed some quantity the schedule line item category will change then those orders will store in VBBE. But business needs both the orders which stored in VBEP and VBBE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the fields in selection screen are Material Number, Plant, Customer Number, these are not in VBEP but in VBBE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previously the report was developed by using selection from VBBE but in output those store in VBEP orders(future orders) are in not displaying. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please light me how to join these tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna Peravali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 06:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926395#M1692025</guid>
      <dc:creator>former_member267445</dc:creator>
      <dc:date>2012-08-01T06:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926396#M1692026</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 think the BAPI 'BAPI_SALESORDER_GETLIST' will work for you. Please try it and let us know. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 06:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926396#M1692026</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2012-08-01T06:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926397#M1692027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But i want to implement this query in already existing Z report without disturbing functionality.. Can I?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 07:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926397#M1692027</guid>
      <dc:creator>former_member267445</dc:creator>
      <dc:date>2012-08-01T07:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926398#M1692028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So there is always an entry in VBEP but not always in VBBE? Then try a LEFT JOIN between these two tables with VBEP as leading table, linked by the identical primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recent similar discussion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="3213995" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 08:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926398#M1692028</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-01T08:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926399#M1692029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reply. But i need the data from VBBE also. As per my knowledge if we use LEFT JOIN then right side table data wont get if there is no similar record.&amp;nbsp; Correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 09:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926399#M1692029</guid>
      <dc:creator>former_member267445</dc:creator>
      <dc:date>2012-08-01T09:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926400#M1692030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, but the VBEP data would be there. What data would you expect if there is no linked VBBE record?&lt;/P&gt;&lt;P&gt;Maybe I did not understand your scenario correctly. Are you saying there might be entries in VBBE for an order item but not in VBEP? It's been a while since I worked in SD, is this possible at all considering the application logic?&lt;/P&gt;&lt;P&gt;The cardinality must be clear, only then a working solution can be proposed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 10:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926400#M1692030</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-01T10:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926401#M1692031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually the scenario is.. we have future order concept in SD. for Future order they created schedule line category type as ZF, when they create the order with ZF then the order is not updated in VBBE table. But the order is in VBEP with ETTYP = 'ZF'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any user confirms the quantity then schedule line category converted as CP that means MRP, the order with CP is stored in VBBE. Business wants in output the orders which have ZF and as well as CP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna Peravali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 13:50:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926401#M1692031</guid>
      <dc:creator>former_member267445</dc:creator>
      <dc:date>2012-08-01T13:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926402#M1692032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the second case, is there still an entry in VBEP, in addition to VBBE? (I assume so)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, you can go back to my first suggestion, select VBEP and left join VBBE based on VBELN, POSNR and ETENR.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:15:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926402#M1692032</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-08-01T14:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926403#M1692033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i write, select from VBEP left outer join VBBE. Then I am not able to write the conditions in WHERE clause using VBBE. Here I enclosed the query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Muralikrishna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926403#M1692033</guid>
      <dc:creator>former_member267445</dc:creator>
      <dc:date>2012-08-01T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926404#M1692034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to select orders that have type ZF, than it does not make sense to include any conditions for table VBBE in the WHERE clause, because orders that have type ZF will not have any value for those fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you are trying to select two exclusive datasets. Records where VBEP~ETTYP = 'ZF', and records where VBEP~ETTYP = 'CP' AND VBBE~??? = the value you allude to needing to check. You could break it into two different select statements (one for ZF, the other for CP), and use APPENDING TABLE instead of INTO TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 19:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926404#M1692034</guid>
      <dc:creator>alex_campbell</dc:creator>
      <dc:date>2012-08-01T19:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926405#M1692035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To me it looks like that data that is comming from VBBE (Material numer, Plant, customer number) should be get from other tables in case there is no VBBE entry for a VBEP schedule line. These tables are VBAK (Order header) and VBAP (Order item). When you have a VBEP schedule line there is always an order VBAK and order line VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 02:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926405#M1692035</guid>
      <dc:creator>JackGraus</dc:creator>
      <dc:date>2012-08-02T02:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926406#M1692036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply, I was on leave. I have quantity fields that should get from VBBE only. I searched related fields but i didnt find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 15:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926406#M1692036</guid>
      <dc:creator>former_member267445</dc:creator>
      <dc:date>2012-08-06T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding JOIN Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926407#M1692037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried usinf left join, till the orders are not coming whose type is ETTYP = 'ZF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Muralikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 15:23:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-join-statement/m-p/8926407#M1692037</guid>
      <dc:creator>former_member267445</dc:creator>
      <dc:date>2012-08-06T15:23:44Z</dc:date>
    </item>
  </channel>
</rss>

