<?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: Select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3970177#M948309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;    pass &lt;STRONG&gt;ebeln&lt;/STRONG&gt; of &lt;STRONG&gt;ekpo&lt;/STRONG&gt; to &lt;STRONG&gt;xblnr&lt;/STRONG&gt; of &lt;STRONG&gt;rbkp&lt;/STRONG&gt; in order to get the &lt;STRONG&gt;belnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 12:13:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-19T12:13:00Z</dc:date>
    <item>
      <title>Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3970175#M948307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have to the fetch same field from rbkp and ekpo table.How to code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: saranya srithar on Jun 19, 2008 2:06 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3970175#M948307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3970176#M948308</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;check this sample code.replace ekko by ekpo table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZINVOICEDETAILS  no standard page heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : ekko,mseg,rseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_ekko type standard table of ekko with header line,&lt;/P&gt;&lt;P&gt;      it_mseg type standard table of mseg with header line,&lt;/P&gt;&lt;P&gt;      it_rseg type standard table of rseg with header line,&lt;/P&gt;&lt;P&gt;      it_rbkp type standard table of rbkp with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*data : file_name type string.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*file_name = 'c:\invoice_details5\invoice_details5.xls'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_ebeln for ekko-ebeln default '71005967'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ekko into corresponding fields&lt;/P&gt;&lt;P&gt;of table it_ekko where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it_ekko[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mseg into corresponding fields&lt;/P&gt;&lt;P&gt;of table it_mseg for all entries in it_ekko&lt;/P&gt;&lt;P&gt;where ebeln = it_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from rseg into corresponding fields&lt;/P&gt;&lt;P&gt;of table it_rseg for all entries in it_ekko&lt;/P&gt;&lt;P&gt;where ebeln = it_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from rbkp into corresponding fields&lt;/P&gt;&lt;P&gt;of table it_rbkp for all entries in it_rseg&lt;/P&gt;&lt;P&gt;where belnr = it_rseg-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*delete adjacent duplicates from it_ekko comparing ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_rseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ it_rseg-belnr, 20 it_rseg-gjahr,35 it_rseg-ebeln,&lt;/P&gt;&lt;P&gt;50 it_rseg-ebelp,60 it_rseg-matnr,76 it_rseg-bukrs,90 it_rseg-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/35 'Invoice item details' color 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ 'Invoice no',15 'fiscal year',30 'doc type',&lt;/P&gt;&lt;P&gt;40 'doc date',55 'post date',70 'tcode',80 'comp code'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_rbkp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ it_rbkp-belnr,15 it_rbkp-gjahr,30 it_rbkp-blart,&lt;/P&gt;&lt;P&gt;40 it_rbkp-bldat,55 it_rbkp-budat,70 it_rbkp-tcode,80 it_rbkp-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip 2.&lt;/P&gt;&lt;P&gt;write:/35 'Invoice header details' color 5.&lt;/P&gt;&lt;P&gt;skip 1.&lt;/P&gt;&lt;P&gt;write:/ 'Invoice no',20 'fiscal year',35 'pur doc no',&lt;/P&gt;&lt;P&gt;50 'item',60 'material no',76 'comp code',90 'plant'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if hlpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3970176#M948308</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-19T12:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3970177#M948309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;    pass &lt;STRONG&gt;ebeln&lt;/STRONG&gt; of &lt;STRONG&gt;ekpo&lt;/STRONG&gt; to &lt;STRONG&gt;xblnr&lt;/STRONG&gt; of &lt;STRONG&gt;rbkp&lt;/STRONG&gt; in order to get the &lt;STRONG&gt;belnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 12:13:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/3970177#M948309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T12:13:00Z</dc:date>
    </item>
  </channel>
</rss>

