MIRO BADI 'INVOICE_UPDATE'

I am using BADI 'INVOICE_UPDATE' to update a flag 'ZLSPR' in header data on SAVE in MIRO transaction. but the method 'CHANGE_AT_SAVE' in this BADI only has import parameters. No export parameters. Can anyone advice:
1) if I can use this method to change values?
2) is there anyother badi available for this transaction.
Thank you.

Hi,
   Can you pls help me as my requirment is also same.I have to change the "Base Line Date" i.e. ZFBDT field of BSIK which is there in the Importing Parameters of method "CHANGE_AT_SAVE". Can i change the importing parameters..
If you get any alternate solution for the same, pls suggest me
Regards,
Rushikesh

Similar Messages

  • How to determine transaction for MIRO badi - invoice_update?

    Dear All:
           As subject. Because I want to print report when transaction is credit memo.
           But i have not fine any parameter is for transaction, please help.
           Thanks a lot!!
    Best Regards,
    Nicole

    Hi,
    This will help you out....
    MIRO: BAPI_INCOMINGINVOICE_CREATE
    Thanks,
    Krishna...

  • BAdi INVOICE_UPDATE   for MIRO

    Hi, we're having following issue  after the implementation of badi INVOICE_UPDATE in MIRO:
    Commitment item data in report S_ALR_87013620 is not matching data in KSB2
    Total record in S_ALR_87013620  is not equal to line item total in KSB2.
    Which two table can compare for total and  cost center line items.
    Thanks,
    sa

    Resolved

  • Regarding BADI , INVOICE_UPDATE ( MIRO transaction )

    Hi All,
    In Miro transaction, I need to do some manipulationwith  the amount field ( WRBTR ) from the line items of the invoice.
    I have found the BADI 'INVOICE_UPDATE' and method for this is 'CHANGE_AT_SAVE'. I can see all the line items entered on the miro screen into the the internal table TI_RSEG_NEW.
    However in the method it does not allow me to write the code to change the TI_RSEG_NEW table.
    Please help me out in achieveing this requirment.
    -Sanjay

    Hai.
    check this.
    User exit in the invoice
    USEREXIT_NUMBER_RANGE (module pool SAPLV60A, program RV60AFZZ)
    The internal set of numbers used in the standard is given in the table of kind of invoice and can be changed in this user exit. This user exit is called only when putting on the invoice.
    USEREXIT_ACCOUNT_PREP_KOMKCV (module pool SAPLV60A, program RV60AFZZ)
    In this user exit additional fields for the account identification are taken up in the communication structure KOMKCV (head fields), which is not intended in the standard.
    USEREXIT_ACCOUNT_PREP_KOMPCV (module pool SAPLV60A)
    In this user exit additional fields for the account identification in the communication structure become KOMPCV (position fields) aufenommen, which is not intended in the standard.
    USEREXIT_NUMBER_RANGE_INV_DATE (module pool SAPLV60A, program RV60AFZC)
    Dependent on the set of numbers over the table TVFKD the invoice date is set (country-specific requirement from Italy).
    During the use of this user exit the user exit USEREXIT_NUMBER_RANGE is automatically inactively switched.
    USEREXIT_FILL_VBRK_VBRP (module pool SAPLV60A, program RV60AFZC)
    This user exit is called only when putting on the invoice. It is used, in order to supply the head and the position of the invoice which can be provided with deviating or additional data.
    USEREXIT_PRINT_ITEM (module pool SAPLV61A, program RV61AFZB)
    Printing the position line of an invoice can be supplemented or changed.
    USEREXIT_PRINT_HEAD (module pool SAPLV61A, program RV61AFZB)
    Printing the headline of an invoice can be supplemented or changed.
    User exit in the program RV60AFZD
    A short description of the user exits are contained in the program:
    o USEREXIT_RELI_XVBPAK_AVBPAK
    o USEREXIT_NEWROLE_XVBPAK_AVBPAK
    o USEREXIT_NEWROLE_XVBPAP_AVBPAK
    USEREXIT_FILL_VBRK_VBRP (module pool SAPLV60A, program RV60AFZC
    Use RV60AFZZ Include
    regards.
    sowjanya.b

  • BADI INVOICE_UPDATE - MIRO Transaction

    Hi,
    can anyone let me know how to code the BADI INVOICE_UPDATE.
    I'm trying to get the PO number and based on the PO, need to get few more info from another table. i have already went to SE19 and created a implementation for this Badi. And then in the method, i need to code this.
    Please help.
    Thanks.

    i have successfully triggered the BADI. But one more question, since i'm using CHANGE_BEFORE_UPDATE, it is generating the Invoice Document. And i'm checking in the BADI, that the PO number can be used for the Material Invoice or Service Invoice, based on the Document Type.
    Since i couldn't get the PO number in the MIRO User Exit, so i tried BADI. But the new invoice document is getting generated and if it is wrong PO, it comes out from the screen and the invoice document number range is missing.
    So is there any other BADI, upon entering the PO number, i need to validate.
    Thanks

  • BAdI 'INVOICE_UPDATE' could be used in MIR7/MIR4 ??

    Hello,
    Our customer implemented  BAdI implementation to check qty and currency ammount in the following BAdI.
       BAdI      BAdI  INVOICE_UPDATE
       method  CHANGE_AT_SAVE
       Then I found that note 1156325 describes as folloes;
    The BAdI 'INVOICE_UPDATE' was only designed to execute checks during document entry or document posting in transaction MIRO.
    This seems to restrict only in transaction 'MIRO', but it seems to work in other transaction, such as MIR7, MIR4.
    We should not use this BAdI and should use 'MRM_HEADER_CHECK' ?
    Could anyone give me your recomendation/suggestion?
    Thank you
    Yuko

    Try use field symbol assign to change the field value.
    First make sure that the field can be assigned to a field symbol. Usually the field must be declare in global top include program.
    If yes. Then
    ASSIGN (l_v_field) TO <l_fs>. 
    CHECK sy-subrc EQ 0.
    <l_fs>  = new_value.  " change value here
    l_v_field is char type. l_v_field = (PROGRAM-NAME)FIELD-NAME.
    Good luck.
    Edited by: Chris Xu on Dec 25, 2007 11:47 AM

  • BADI INVOICE_UPDATE Removing error message

    Hi
    I have implemented some validations in BADI INVOICE_UPDATE and I raise the ERROR_WITH_MESSAGE exception in case of incorrect data entered via MIRO.
    But after user corrects the error and presses ENTER, the Error message still remains in the message tab.
    Is there any way to delete the error message?
    Thanks and Regards
    Radha

    Hi,
    when you say:
    I directly press "SAVE' in MIRO
    are you holding RBKP-RBSTAT = ' ',
    parking RBKP-RBSTAT = 'A',
    or saving  as complete RBKP-RBSTAT = ' B'
    the document?
    According to SAP Note 1156325 - BAdIs in the Logistics Invoice Verification environment:
    Definition name: INVOICE_UPDATE
    Usage
    The BAdI 'INVOICE_UPDATE' was only designed to execute checks during
    document entry or document posting in transaction MIRO.
    According to SAP Note 392342 - MIRO: No data change through Bussiness Add In
    Symptom
    In the logistics invoice verification MIRO, you cannot change data using
    Business Add In 'INVOICE_UPDATE'.
    Additional key words
    BAdI, SE18, MRM_BADI_INVOICE_CHECK,
    Cause and prerequisites
    This system behavior is correct.
    BAdI 'INVOICE_UPDATE' was only designed to execute checks during the
    document entry or document posting in Transaction MIRO. Therefore, it has
    only import parameters. There are no export parameters. This means that the
    data changed in the BAdI is not processed further in standard program MIRO.
    Best regards.
    Edited by: Pablo Casamayor on May 11, 2010 4:56 PM

  • Get Invoice number in BADI INVOICE_UPDATE

    Hi all.
    It`s posible to get a invoice number in badi invoice_update. I create invoice in tc MIRO. I create my implementation and i call my function group (here i need number just creating invoice)
    Thx
    Grzegorz

    HI,
       Check the methods parameters for CHANGE_AT_SAVE method: S_RBKP_NEW or S_RBKP_OLD.
    S_RBKP_NEW-BELNR will ahve the document number.
    Regards,
    Ravi

  • Data in BADI "INVOICE_UPDATE"

    Hey,
    im using the BAdI INVOICE_UPDATE to run some checks when an invoice is posted. Within that i need the resulting prices of each position after the calculation of discount (skonto) etc.
    In fact i need the values shown when you click on Simulate.
    Now i have the data for discount, accounting and position values etc but they are not cumulated. So i would need to calculate them myself. I guess there must be a method doing that. Is anyone able to guide me with that ?
    Thanks for your help - which will be rewarded.
    oliver

    Thanks venu for the reply. But i cant see a table containing the spread of position prices over the accounting.
    I need the following. Assume you have 2 positions, one with single, one with multiple accounting.
    Tax 10%
    POS1: 20Eur
    POR2: 20Eur, Acc1 50%  Acc2 50%
    Now i need the following like its shown when you preas Simulate in MIRO.
    Pos1  22EUR   GLAccount xyz1_1
    Pos2  11EUR   GLAccount xyz2_1
    Pos2  11EUR   GLAccount xyz2_2
    I dont want to calculate that myself in case there are some things i might forget about. So i need a correct way to retrieve these values.
    The import-parameters of the badis doesnt seem to have these values.
    Any help is appreciated. Thanks,
    oliver

  • UPDATE FIELDS USING BADI INVOICE_UPDATE

    I have a requirement to change item level fields based on some condition during transaction MIRO, but the BADI INVOICE_UPDATE does not have any exporting parameters and thus not allow changing the fields. So is there any other way to do it? Appreciate your help.
    Thank you,
    Rohit
    Edited by: Julius Bussche on Mar 19, 2009 9:24 PM
    Please dont use CAPS-LOCK. It is generally interpreted as SHOUTING

    Hi,
    you could try to do something via field-symbols (but be careful):
    e.g.
    CONSTANTS: c_ydrseg(18) TYPE c VALUE '(SAPLMR1M)YDRSEG[]'.
      DATA: wa_drseg TYPE mmcr_drseg.
      CLEAR wa_drseg.
      FIELD-SYMBOLS: <fs_ydrseg> TYPE table.
      ASSIGN (c_ydrseg) TO <fs_ydrseg>.
      CLEAR lt_drseg.
      REFRESH lt_drseg.
      lt_drseg[] = <fs_ydrseg>.
      IF NOT <fs_ydrseg>[] IS INITIAL.
        LOOP AT lt_drseg INTO wa_drseg.
      * do something with EREKZ
        ENDIF.
      ENDIF.
    Best regards

  • MIRO BADI or User Exit

    Hi Experts,
    I would like to ask for your help regarding MIRO BADI or User Exit. I found several user exits and BADIs but I am not sure what to use with my requirement.
    My requirement is to compare the Reference with the selected items' Del. note/Sheet No. I also need to check for amounts that where changed in the items.
    Thanks!
    Regards,
    Mike

    Hi,
    have a look at this OSS  Note:
    Note 1156325 - BAdIs in the Logistics Invoice Verification environment
    https://service.sap.com/sap/support/notes/1156325
    i´ve used method CHANGE_AT_SAVE of this badi and it worked.
    The badi is triggered whenever you try to hold/park/save as complete/ post/ delete ..etc, that is you need to do any of the former actions.
    If you just change the content of a field do not expect the badi to be triggered.
    You could just Simulate in order to trigger the badi
    Best regards.
    Edited by: Pablo Casamayor on Jul 22, 2011 12:44 PM

  • BADi INVOICE_UPDATE

    Hi All,
    I am using Badi INVOICE_UPDATE to change the value of 'Tax Amount' with some other value when i am going to create a Invoice for the Purchase Order. I am not able to set the flag inside the BADi which for which i need to make the changes.  So please any of have worked on the same scenario plz suggest me.
    Waiting for quick replies from your end.
    Thnks in advance.
    Santosh

    Hi ,
    You achieve this using the ABAP memory:
    From the place you want to capture the FLAG:
    export flag to memory id 'YOURID'.
    At the place you want to check the FLAG and do some operations:
    import flag from memory id 'YOURID'.
    Now when you have the FLAG value, you can check that and do the desired operations.
    Hope these option might have clarified most of your doubts.
    Regards,
    Ashish Arora

  • BADI INVOICE_UPDATE for tcode MIRO

    Hi
    May I request you to kindly help me about implementing the BADI INVOICE-UPDATE . I do not know how to implement BADI , it will be great help for me if you can please suggest the steps involved .
    We want to implement the BADI , to change the invoice party from Account Payable to post to GL account during MIRO. Your great help is appreciated.
    Regards
    Kang Ring

    Hi,
    At first you can go to trasaction se18, and there u can display this Badi, please go through the documentation of this badi, whic in turn will help you to understand what this BADi about, what are the restrictions etc...
    Now in order to implement Badi , go to trasaction Se19, and create a Z- implementation. Put some break points inside each methods and activate the implmentation.Now try to excecute the transaction, control will go through the methods  and by that way you can came to a conclusion that in which method you have to write your code.
    Once every thing is ready activate the implementation.
    I think this info will help you to a certain extent, if you need detailed info let me know.
    Regards,
    Antony Thomas

  • Help with MIRO Badi's and Translation Date (Exchange Rate Date Reference)

    Dear experts
    This is a problem I have read a lot about, but none of the answers work properly and I wanted to create a new thread in order to try to compile a final answer for this problem (at least in version 6.0)
    As you know Standar SAP uses posting date as translation date in MIRO for foreign currency.
    This is not always true (imagine Crude Imports with 3 dates: Invoice date, posting date and Bill of Lading date. The last one happens to be the fiscal date for exchange rate in my county and the other two are also mandatory).
    I am proposing thus to use 3 dates: Document date as invoice date; posting date as posting date and Invoice Receipt Date
    (REINDAT - RBKP) as Bill of Lading date. I would like to implement this third date as translation date.
    Lot of ways to do it, but none works properly as for the end user it is complicated to enter data in a certain way so that BADI's work properly. I have implemented note 574583 and only works with some restrictions.
    I have also used some more BADI's like MRM_HEADER_CHECK, FI_TRANS_DATE_DERIVE, INVOICE_UPDATE,... and all of them have some restrictions (depending always in data header taps data introduction or saving the exchange rate properly in MM TABLES but not in FI TABLES).
    I would really appreciate if anyone could help with this, ensuring that the Badi get's always the data and makes it work with no screen selection dependance.
    Thanks in advance.

    Dear All,
    I have found the solution with the help of ABAPer. The system has a bug for which SAP has given a  Sap Note no 22781.
    Actually what happened in the Invoice is, the system by default fetched the exchange rate for the Exchange Rate Type 'M' for the rate last maintained. Since we were using different Exchange rate it did not match. Also we came to know about the difference only because off-late the users had stopped updating Exchange Rate 'M' .
    The funny part is in the Invoice if we click on each tab at the header and come back to the first tab where we find the Exchange rate for accounting, the system picks up the actually rate as per the Exchange Rate maintained.
    Regards,
    Karthik.

  • How to change PRCTR filed value thru (Badi) INVOICE_UPDATE

    Hi Friends,
    While posting MIRO, the price diff amount going to defualt profit center instead of the PO or actual profit center and the field is an inactive mode (not able to change it). I've tried in available 3 method functions of INVOICE_UPDATE but its not shwoing the records.
    In INOVICE_UPDATE badi, no available parameters(structures) showing the accounting line items of the invoice. (in MIRO, When go for simulate it shows one table window where it has line items of the a/c assignment transaction).Its showing only the invoice update details in TI_MRMRSEG as single item.
    Pls help me how to add or change the value of the filed 'PRCTR'.
    Thanks &regards
    Sankar.
    Edited by: sankar babu on Aug 20, 2008 1:55 PM

    hi,
    use this exit.
    LMR1M001                                User exits in Logistics Invoice Verification
    EXIT_SAPLMR1M_002
    VALUE(I_DRSEG) TYPE  MMCR_DRSEG.

Maybe you are looking for

  • Text input control the length

    Hey, I have a text input field with 240 length (displayed in 3 rows). when users enters more than this length it stops the user but when he copies from some where else and pastes the text here it does not stop the user to the size. (he can copy more

  • There is no disk in the drive--please insert a disk into drive F & more

    Hey, I've been having a problem with my ipod shuffle (2nd gen) for the past couple of weeks. Everything is okay until I try to eject the ipod. I click the eject button and the following errors pop up: "There is no disk in the drive--please insert a d

  • Inheritance In Swing

    Hi, I have a confusion in understanding the behaviour of below code import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class Test extends JPanel      private static final String butHireLabel = "Hire";

  • ITunes closing out

    Whenever I try to update or put videos onto my iPod, iTunes freezes and has an error message that says "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience." Does anyone have any advice on what I could do? I alread

  • Mavericks unstable on macbook pro

    since installing mavericks my mid 2010 macbook pro it is really unstable. Is fixing this in the works ? is there an easy way to uninstall ? I was fine with previous OS arragement thanks.