<?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: Request for Code for a report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-code-for-a-report/m-p/940843#M63139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sample program will fetch purchase orders/line items for POs entered in the select-options that do not have a corresponding purchase req.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0003 no standard page heading.

data: begin of itab occurs 0,
      ebeln type ekko-ebeln,
      ebelp type ekpo-ebelp,
      matnr type ekpo-matnr,
      txz01 type ekpo-txz01,
      menge type ekpo-menge,
      meins type ekpo-meins,
      end of itab.

select-options: s_ebeln for itab-ebeln.

start-of-selection.

  select * into corresponding fields of table itab
         from ekko
             inner join ekpo
                on ekko~ebeln = ekpo~ebeln
&amp;lt;b&amp;gt;                         where ekko~ebeln in s_ebeln
                           and ekpo~banfn = space.&amp;lt;/b&amp;gt;


  loop at itab.

    write:/ itab-ebeln, itab-ebelp, itab-matnr,
            itab-txz01, itab-menge, itab-meins.

  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Sep 2005 18:41:29 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-09-12T18:41:29Z</dc:date>
    <item>
      <title>Request for Code for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-code-for-a-report/m-p/940842#M63138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Abapers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help in writing the report(code) to just display Purchase Orders without the Purchase Requisition Numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 18:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-code-for-a-report/m-p/940842#M63138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Request for Code for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-code-for-a-report/m-p/940843#M63139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sample program will fetch purchase orders/line items for POs entered in the select-options that do not have a corresponding purchase req.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0003 no standard page heading.

data: begin of itab occurs 0,
      ebeln type ekko-ebeln,
      ebelp type ekpo-ebelp,
      matnr type ekpo-matnr,
      txz01 type ekpo-txz01,
      menge type ekpo-menge,
      meins type ekpo-meins,
      end of itab.

select-options: s_ebeln for itab-ebeln.

start-of-selection.

  select * into corresponding fields of table itab
         from ekko
             inner join ekpo
                on ekko~ebeln = ekpo~ebeln
&amp;lt;b&amp;gt;                         where ekko~ebeln in s_ebeln
                           and ekpo~banfn = space.&amp;lt;/b&amp;gt;


  loop at itab.

    write:/ itab-ebeln, itab-ebelp, itab-matnr,
            itab-txz01, itab-menge, itab-meins.

  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers.  Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 18:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-code-for-a-report/m-p/940843#M63139</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-09-12T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Request for Code for a report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-code-for-a-report/m-p/940844#M63140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please close your other post regarding the same&amp;lt;/b&amp;gt;. Here is a small change to Rich's program, since you wanted only POs that don't refer to a requisition.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zrich_0003 no standard page heading.
 
data: begin of itab occurs 0,
      ebeln type ekko-ebeln,
      ebelp type ekpo-ebelp,
      matnr type ekpo-matnr,
      txz01 type ekpo-txz01,
      menge type ekpo-menge,
      meins type ekpo-meins,
      end of itab.
 
select-options: s_ebeln for itab-ebeln.
 
start-of-selection.
 
  select * into corresponding fields of table itab
         from ekko
             inner join ekpo
                on ekko~ebeln = ekpo~ebeln
                         where ekko~ebeln in s_ebeln
                           &amp;lt;b&amp;gt;and ekpo~banfn = space&amp;lt;/b&amp;gt;.&amp;lt;-- change
 
 
  loop at itab.
 
    write:/ itab-ebeln, itab-ebelp, itab-matnr,
            itab-txz01, itab-menge, itab-meins.
 
  endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2005 18:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/request-for-code-for-a-report/m-p/940844#M63140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-09-12T18:56:39Z</dc:date>
    </item>
  </channel>
</rss>

