<?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 Invoice Posting MIRO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-posting-miro/m-p/3939908#M942618</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through MIRO we are posting Invoice. After entering the data when we click on SAVE button the Invoice gets posted. When can check the document in MIR4 or in &lt;/P&gt;&lt;P&gt;MIRO(Invoice Document-&amp;gt;display).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we display the Invoice Document and click on "follow on document" to goto Accounting Document.&lt;/P&gt;&lt;P&gt;then Accounting entry is displayed for that Invoice.&lt;/P&gt;&lt;P&gt;In the Debit Entry the Reference field will be either Purchase Order Number or Reference Number which we gave during Invoice posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is to change the Purchase Order Number or Reference Number with Delivery Note Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one BADI for that. INVOICE_UPDATE. In this BADI there are 3 methods. &lt;/P&gt;&lt;P&gt;1. ON_SAVE&lt;/P&gt;&lt;P&gt;2. BEFORE_UPDATE&lt;/P&gt;&lt;P&gt;3. DURING_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to changes the value in runtime after the ON_SAVE &amp;amp; BEFORE_UPDATE methods (with out implementing the methods). Its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Other method DURING_UPDATE is called within the FM (MRM_INVOICE_DOCUMENT_POST)&lt;/P&gt;&lt;P&gt;but this FM is called in the program with UPDATE TASK addition.&lt;/P&gt;&lt;P&gt;Ex: Call Function 'MRM_INVOICE_DOCUMENT_POST' UPDATE TASK.&lt;/P&gt;&lt;P&gt;and in debugging mode the control is not entering into this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me where i can change the PO/Reference No to Delivery Note Number before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 23:43:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T23:43:31Z</dc:date>
    <item>
      <title>Invoice Posting MIRO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-posting-miro/m-p/3939908#M942618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through MIRO we are posting Invoice. After entering the data when we click on SAVE button the Invoice gets posted. When can check the document in MIR4 or in &lt;/P&gt;&lt;P&gt;MIRO(Invoice Document-&amp;gt;display).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we display the Invoice Document and click on "follow on document" to goto Accounting Document.&lt;/P&gt;&lt;P&gt;then Accounting entry is displayed for that Invoice.&lt;/P&gt;&lt;P&gt;In the Debit Entry the Reference field will be either Purchase Order Number or Reference Number which we gave during Invoice posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my requirement is to change the Purchase Order Number or Reference Number with Delivery Note Number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one BADI for that. INVOICE_UPDATE. In this BADI there are 3 methods. &lt;/P&gt;&lt;P&gt;1. ON_SAVE&lt;/P&gt;&lt;P&gt;2. BEFORE_UPDATE&lt;/P&gt;&lt;P&gt;3. DURING_UPDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to changes the value in runtime after the ON_SAVE &amp;amp; BEFORE_UPDATE methods (with out implementing the methods). Its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Other method DURING_UPDATE is called within the FM (MRM_INVOICE_DOCUMENT_POST)&lt;/P&gt;&lt;P&gt;but this FM is called in the program with UPDATE TASK addition.&lt;/P&gt;&lt;P&gt;Ex: Call Function 'MRM_INVOICE_DOCUMENT_POST' UPDATE TASK.&lt;/P&gt;&lt;P&gt;and in debugging mode the control is not entering into this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody tell me where i can change the PO/Reference No to Delivery Note Number before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 23:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-posting-miro/m-p/3939908#M942618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T23:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Invoice Posting MIRO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-posting-miro/m-p/3939909#M942619</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;unfortunately you can not change any values in BADI INVOICE_UPDATE. Check this OSS note 392342.  This paragraph is from that note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data changed in the BAdI is supposed to be returned to the MIRO, this can only be executed by a program modification of BAdI 'INVOICE_UPDATE' and function module 'MRM_BADI_INVOICE_CHECK'. Contact the remote consulting for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can try to modify this BADI or try to find a new way of changing your fields using enhacement framework. Try to find a suitable implicit point but you have to be more careful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2008 01:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-posting-miro/m-p/3939909#M942619</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2008-06-04T01:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invoice Posting MIRO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-posting-miro/m-p/3939910#M942620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found another BADI, AC_DOCUMENT. In this Badi there are 2 methods INITIAL_CHANGE and CHANGE_AFTER_CHECK. I tried to change the Ref No to Delivery Note No. But now the system is not able to post the documents. It displaying error message related to controlling area.&lt;/P&gt;&lt;P&gt;I tried to post through 2 methods.&lt;/P&gt;&lt;P&gt;any suggestions....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 02:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/invoice-posting-miro/m-p/3939910#M942620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-05T02:05:42Z</dc:date>
    </item>
  </channel>
</rss>

