<?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 select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2383447#M529355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have to write a select query in which 6 tables are involved using following conditions.&lt;/P&gt;&lt;P&gt;Select line items from BSEG table where BSEG-BLDAT and BSEG-BUKRS are within the Report Date specified in the selection screen.&lt;/P&gt;&lt;P&gt;Additional condition BSEG-BLART = WE and BSEG-HKONT= 690100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Description (COAS-KTEXT), where COAS-AUFNR = BSEG-AUFNR&lt;/P&gt;&lt;P&gt;2.	Vendor No (MSEG-LIFNR), where MSEG-EBELN = BSEG-EBELN and MSEG-EBELP = BSEG-EBELP and MSEG-AUFNR = BSEG-AUFNR and MSEG-BUKRS is the same as the selection screen.&lt;/P&gt;&lt;P&gt;3.	Vendor Name (LFA1-NAME1), where MSEG-LIFNR = LFA1-LIFNR&lt;/P&gt;&lt;P&gt;4.	Invoice Number (RSEG-BELNR), select single RSEG-BELNR from RSEG where RSEG-EBELN = BSEG-EBELN and RSEG-EBELP = BSEG-EBELP and RSEG-GJAHR and RSEG- BUKRS is within the selection criteria.&lt;/P&gt;&lt;P&gt;5.	Invoice Date (RBKP-BLDAT), where RBKP-BELNR = RSEG-BELNR&lt;/P&gt;&lt;P&gt;6.	Amount (BSEG-DMSHB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection screen consists of bseg-bukrs and bseg-bzdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 05:28:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-18T05:28:40Z</dc:date>
    <item>
      <title>select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2383447#M529355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have to write a select query in which 6 tables are involved using following conditions.&lt;/P&gt;&lt;P&gt;Select line items from BSEG table where BSEG-BLDAT and BSEG-BUKRS are within the Report Date specified in the selection screen.&lt;/P&gt;&lt;P&gt;Additional condition BSEG-BLART = WE and BSEG-HKONT= 690100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	Description (COAS-KTEXT), where COAS-AUFNR = BSEG-AUFNR&lt;/P&gt;&lt;P&gt;2.	Vendor No (MSEG-LIFNR), where MSEG-EBELN = BSEG-EBELN and MSEG-EBELP = BSEG-EBELP and MSEG-AUFNR = BSEG-AUFNR and MSEG-BUKRS is the same as the selection screen.&lt;/P&gt;&lt;P&gt;3.	Vendor Name (LFA1-NAME1), where MSEG-LIFNR = LFA1-LIFNR&lt;/P&gt;&lt;P&gt;4.	Invoice Number (RSEG-BELNR), select single RSEG-BELNR from RSEG where RSEG-EBELN = BSEG-EBELN and RSEG-EBELP = BSEG-EBELP and RSEG-GJAHR and RSEG- BUKRS is within the selection criteria.&lt;/P&gt;&lt;P&gt;5.	Invoice Date (RBKP-BLDAT), where RBKP-BELNR = RSEG-BELNR&lt;/P&gt;&lt;P&gt;6.	Amount (BSEG-DMSHB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection screen consists of bseg-bukrs and bseg-bzdat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anybody help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 05:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2383447#M529355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T05:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2383448#M529356</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;Since, BSEG is a Cluster table.. it's not always recommended to use in Reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, based on your requirements, in place of BSEG try to make use of :&lt;/P&gt;&lt;P&gt;If you want &amp;lt;b&amp;gt;Account Recivables&amp;lt;/b&amp;gt; data use BSID and BSAD tables &lt;/P&gt;&lt;P&gt;If you want &amp;lt;b&amp;gt;GL Account Related data&amp;lt;/b&amp;gt; use BSIS and BSAS tables &lt;/P&gt;&lt;P&gt;If you want &amp;lt;b&amp;gt;Account payables data&amp;lt;/b&amp;gt; use BSIK and BSAK tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use 'Date_Range', BUKRS and BZDAT, BLART, HKONT on any one / more of these tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this, try to retrive data from tables COAS, MSEG, LFA1, RSEG, RBKP etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manjunatha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 12:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2383448#M529356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T12:19:17Z</dc:date>
    </item>
  </channel>
</rss>

