<?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: coding required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-required/m-p/3302316#M790680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try using the following select queries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ebeln lifnr zname1 aedat ernam&lt;/P&gt;&lt;P&gt;from ekko&lt;/P&gt;&lt;P&gt;into table i_ekko&lt;/P&gt;&lt;P&gt;where ebeln = p_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select txz01 ebelp&lt;/P&gt;&lt;P&gt;from ekpo&lt;/P&gt;&lt;P&gt;into table i_ekpo&lt;/P&gt;&lt;P&gt;for all entries in i_ekko&lt;/P&gt;&lt;P&gt;where ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select budat &lt;/P&gt;&lt;P&gt;from ekbe&lt;/P&gt;&lt;P&gt;into table i_ekbe&lt;/P&gt;&lt;P&gt;for all entries in i_ekpo&lt;/P&gt;&lt;P&gt;where ebeln = i_ekko-ebeln and&lt;/P&gt;&lt;P&gt;          hct    = 'E' and&lt;/P&gt;&lt;P&gt;          hct    = 'Q'..&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;sort i_ekbe by budat.&lt;/P&gt;&lt;P&gt;read table i_ekbe index 1.  "to get first invoice posting date&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I'm sorry its time for me to leave i can help u tomm if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kavitha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 6, 2008 4:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Feb 2008 12:25:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-06T12:25:13Z</dc:date>
    <item>
      <title>coding required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-required/m-p/3302315#M790679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Please give the code for this&lt;/P&gt;&lt;P&gt;Code (BUKRS), Vendor (LIFNR), Vendor Name (ZNAME1), PO_Date (AEDAT), PO Creator (ERNAM) from EKKO table&lt;/P&gt;&lt;P&gt;2.	For the corresponding PO number (EBELN) from EKKO table, get  PO Item Text (TXZ01) from EKPO table&lt;/P&gt;&lt;P&gt;3.	For the corresponding PO number (EBELN) from EKKO table, get PO_Iten_No(EBELP), from EKPO table&lt;/P&gt;&lt;P&gt;4.	For the corresponding PO number (EBELN) from EKKO table get the GR_Posting Dt(BUDAT) from EKBE table when PO History cat (HCT-EKBE) is equal to &amp;#147;E&amp;#148; .&lt;/P&gt;&lt;P&gt;a)	For getting the first GR Posting date and first Invoice posting date, sort the column (BUDAT) of table, get the 1st GR_Posting_dt(BUDAT) when PO History cat (HCT-EKBE) is equal to &amp;#147;E&amp;#148;  AND get the 1st Inv_Posting_Dt(BUDAT) when PO when PO History cat (HCT-EKBE) is equal to &amp;#147;Q&amp;#148; For this corresponding invoice date (when when PO History cat (HCT-EKBE) is equal to &amp;#147;Q&amp;#148; ) get the invoice number (BELNR) . &lt;/P&gt;&lt;P&gt;b)	IF  1ST GR_POSTING_DATE &amp;lt; 1ST INVOICE_POSTING_DATE, DO NOT DISPLAY THE RESULT&lt;/P&gt;&lt;P&gt;5.	For the corresponding PO number (EBELN) from EKKO table and Invoice_No (BELNR) (from step4,a),get Inv_Creator (ERNAM), Inv_Amount(REEWR), Currency (WAERS) from EKBE table when PO History cat (Hct-EKBE) is equal to &amp;#147;Q&amp;#148;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 12:03:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-required/m-p/3302315#M790679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T12:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: coding required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-required/m-p/3302316#M790680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Try using the following select queries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ebeln lifnr zname1 aedat ernam&lt;/P&gt;&lt;P&gt;from ekko&lt;/P&gt;&lt;P&gt;into table i_ekko&lt;/P&gt;&lt;P&gt;where ebeln = p_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select txz01 ebelp&lt;/P&gt;&lt;P&gt;from ekpo&lt;/P&gt;&lt;P&gt;into table i_ekpo&lt;/P&gt;&lt;P&gt;for all entries in i_ekko&lt;/P&gt;&lt;P&gt;where ebeln = i_ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select budat &lt;/P&gt;&lt;P&gt;from ekbe&lt;/P&gt;&lt;P&gt;into table i_ekbe&lt;/P&gt;&lt;P&gt;for all entries in i_ekpo&lt;/P&gt;&lt;P&gt;where ebeln = i_ekko-ebeln and&lt;/P&gt;&lt;P&gt;          hct    = 'E' and&lt;/P&gt;&lt;P&gt;          hct    = 'Q'..&lt;/P&gt;&lt;P&gt;*******&lt;/P&gt;&lt;P&gt;sort i_ekbe by budat.&lt;/P&gt;&lt;P&gt;read table i_ekbe index 1.  "to get first invoice posting date&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I'm sorry its time for me to leave i can help u tomm if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kavitha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 6, 2008 4:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 12:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-required/m-p/3302316#M790680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T12:25:13Z</dc:date>
    </item>
  </channel>
</rss>

