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

Similar Messages

  • 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 in MIRO transaction for G/L account validation

    Hi Experts,
    Can I know the Badis availabe in MIRO transaction Code.
    and list me the procedure to findout the Badis available for a perticular t-code.
    Let me come with my exat requirement,
    I need to check whether the G/L account number assigned is valid or not.
    I think now I am clear with my requirement.
    Regards,
    Sujatha.

    Hi Anjireddy,
    that BADI contains the following methods, but they are not triggered when I do my requirement.
    CHANGE_AT_SAVE          Invoice Document at Save
    CHANGE_BEFORE_UPDATE     Invoice Document Before Update
    CHANGE_IN_UPDATE     Invoice Document During Update
    Suggest me regarding.
    Regards,
    Sujatha.

  • BADI for MIRO transaction

    Hello Experts,
    I need to capture the Serial Number during invoice entry and stored in a custom table. It is key to note that an invoice line item with a multiple quantity will require multiple serial numbers.
    I am looking for a BADI to enhance the screen to provide a input option for Serial Numbers.
    I figure out a BADI MRM_ITEM_CUSTFIELDS but not sure this is the best suitable one or not.
    Please provide your input.

    Abdul,
    General instructions for finding BAdI calls and when they happen:
    Go to transaction SE80 in a client where you can experiment with the transaction that you are interested in.
    Go to class CL_EXITHANDLER. [Select Class / Interface from the drop-down, and put CL_EXITHANDLER for the class.]
    Go to method get_instance. [Press RETURN to ensure that the contents of the Object Name frame are for CL_EXITHANDLER. Expand the Methods node. Double-click on GET_INSTANCE.]
    Insert a breakpoint just after the call to the method cl_exithandler=>get_class_name_by_interface.
    Use the transaction in which you are BAdI-hunting.
    Examine the contents of the field exit_name whenever the processing stops at the breakpoint. I have found a case where exit_name was an unknown field. Then class_name gave a good clue to the name of the BAdI.
    Hope this helps,
    John

  • User exit/BADi to change the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to change the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the vendor name in Header text field(MIRO -> Details tab -> header text field ). I have tried all the user exits and BADi's related to MIRO. Doesn't work. If anybody knows please share.
    Thanks,
    Pranav

    Try BADI INVOICE_UPDATE.
    If you are in system version is ECC 6.0, you can find out a Enhancement SPOT (ES_SAPLMRMC) under Function module MRM_FINAL_CHECK, which can be used to perform this requirement
    Hope this helps.
    Thanks,
    Balaji
    Edited by: Balaji Ganapathiraman on Mar 14, 2008 4:43 PM

  • 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

  • User exit/BADi to populate the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to populate the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the some text in Header text field (MIRO -> Details tab -> header text field). I need to populate this field in the MM document as well as FI document (Accounting Document). I have tried all the user exits and BADi's related to MIRO/MRRL. Doesn't work. If anybody knows please share.
    Thanks,
    Santosh
    Edited by: Santosh Ghonasgi on May 13, 2010 4:48 PM

    Hello santosh,
    I am not sure whether a suitable exit / BADI exists to update the header text in MIRO directly.
    there is one related forum:
    User exit/BADi to change the header text in MIRO transaction
    Hope, it may helpful for you to proceed with some other parallel solution.
    Regards,
    Selva K.
    Edited by: Selvakumar Krishnan on May 13, 2010 5:29 PM

  • Required help for badi for GL tab in MIRO transaction

    Hi,
    I am working in MIRO transaction.
    I am having a requirement as below:
    While creating invoices, In the gl tab when we enter gl account number system should populate Tax jurisdiction code by default.
    I am using BADI EXTENSION_US_TAXES method MM_ITEM_TAX_MODIFY but it populates the tax jurisdiction in PO reference tab not in GL tab.
    Please advice
    Regards,
    Suvarna Nandi

    Hi
    Have you tried with enhancement FYTX0002? See also Note 302998 - Collecting fields for user-exit. It's an idea.
    I hope this helps you
    Regards
    Eduardo

  • 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

  • BADI to change Item details of MIRO Transaction

    Hi Experts,
    Is there any BADI or User Exits to change Item details like 'Profit Center' in MIRO Transaction. I searched for, but nothing helps.
    Thanks in Advance.

    Hi,
    have a look at this OSS Note (search for BAdIs as of Release 6.00:):
    1156325 - BAdIs in the Logistics Invoice Verification environment
    perhaps you could consider using a substitution instead of a badi.
    Best regards.

  • User Exit/BADI's for MIRO Transaction

    Hi All,
    I need to modify the header text field  in DETAILS Tab of MIRO transaction. This text needs to be populated based on the line item conditions. I am not able to find any proper BADI or user exit where in i can get both header and line items details so that i can modify Header Text Field.
    Please help me out in same.
    Regards,
    Jayant

    Hi,
    in badi MRM_HEADER_CHECK try something like:
    * Get line item conditions
        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>.
        DATA:  lt_ydrseg TYPE STANDARD TABLE OF t_mmcr_drseg.
        lt_ydrseg[] = <fs_ydrseg>.
    IF NOT lt_dyrseg[] IS INITIAL.
    LOOP AT lt_ydrseg INTO wa_drseg.
      IF wa_drseg-mwskz = 'WHATEVER'. "HERE GOES YOUR CONDITION
    * Modify Header text
        CONSTANTS: c_bktxt(21) TYPE c VALUE '(SAPLMR1M)RBKPV-BKTXT'.
        FIELD-SYMBOLS: <fs_bktxt> TYPE ANY.
        ASSIGN (c_bktxt) TO <fs_bktxt>.
        <fs_bktxt> = 'HERE_GOES_YOUR_VALUE'.
      ENDIF.
    ENDLOOP.
    ENDIF.
    Best regards.

  • Regarding GL item tab in MIRO transaction

    Hi
    I am working on MIRO transaction.
    In GL Item tab, if we enter Account number it has to be
    checked with ZMMTABLE and display error if not available.
    In Ztable we have company code, account number(SAKNR) and ZFLG as key.
    need to fetch by key.
    How to fetch company code and account number from screen?
    I am using BADI INVOICE_UPDATE, CHANGE_AT_SAVE method.
    WHen i clic save button in MIRO transaction, the BADI is not triggered.
    I have implementation active and made break point too.
    I tried displaying invoice document in MIRO , changed the amount and clicked save button. but BADI is not triggered
    Can you tell me how to debug bad? i put break point in BADI method and opened session then execute MIRO.
    Pls advice how to go with.
    Regards
    Chandra
    Edited by: princeck on Sep 20, 2011 3:14 PM
    Edited by: princeck on Sep 20, 2011 4:11 PM

    Hi
    I want to access GL item tab account number from MIRO transaction to BADIINVOICE_BADI Method CHANGE_AT_SAVE. I entered the account number in GL account tnumber tab. but parameter TI_RBCO_NEW-BUKRS & TI_RBCO_OLD-BUKRS values are empty inside BADI method.
    Can you suggest me how to find this.
    Regards
    Chandra
    Edited by: princeck on Oct 3, 2011 2:32 PM

  • 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

  • MIRO transaction related

    Hi Experts,
    How can i capture multiple vendors for a particular purchase order in transaction MIRO through BADI  Invoice_update.There can be a situatin where a particular purchase order can be linked to multiple vendors ( due to change in address), if the scenario exits i want to throw a pop up message that multiple vendors exit for this purchase order and when the user goes to post this MIRO,and the related vendors should be available under F4 help in invoice party ,how can i do this with this BADI.
    Regards
    Prasun

    this is answered

  • Update field RBKP-RBSTAT on SAVE in MIRO transaction

    Hi!
    I am using BADI 'INVOICE_UPDATE' to update a flag 'RBSTAT' in header data (Table RBKP) on SAVE in MIRO transaction. but the method 'CHANGE_AT_SAVE' in this BADI only has import parameters. No export parameters. Can anyone advice:
    Is there anyother BADI available for this transaction.
    Thank you.

    Hi,
    Invoice update badi cannot be used to change any values while posting MIRO transaction, its used only to perform checks during doc entry.
    Refer to OSS Note: 392342 for more info.
    badi INVOICE_UPDATE doesn't change any data. But you can use badi MRM_PAYMENT_TERMS for updating ZLSPR.
    Check it once.

Maybe you are looking for

  • VGA to Macbook 11" Air display?

    So I have a 2013 11" Macbook Air running Mavericks that I need to hook up to a Dell flat panel monitor that has a VGA cable. I need to hook it up to my Macbook Air (10.9.1). When I plug the VGA cable into the the mini/VGA adaptor and into the Air, th

  • After upgrading to 10.2.0.4

    Hi All, os: hp-ux upgrading from 9.2.0.4 to 10.2.0.4 After running catupgrd.sql on my 9.2.0.4 database, i have seen some statements on my Alert log file. Please guide me what may be the reason for this lines. > Thread 1 advanced to log sequence 426 (

  • How to enable DFF for each line level on a Table Region - very very urgent

    Hi, I have a Master- Detail Page, Detail is Table region. I need to enable DFF (Context Based) for each line. If any one has done similar requirement please share how to do this. Its very very urgent. It is a standard page. Thanks, Edited by: user899

  • Can't import ISO Files in VM Manager because of empty Server Pool Drop Down

    Hello, I have the problem I can't import ISO files to my ressources because in the import mask the Server Pool Name Drop Down is empty. In the Virtual Machine Templates mask the Server Pool Name is available and I have already one VM running with a o

  • Xmlparserv2 and xalan

    Hi I have deployed an XML based application on Oracle9iAS Release 2 (v9.0.2). Application Server is forcing me to user Oracle's xmlparserv2 (and saxon) whereas my application has been written according to xalan (and xerces). Can some one help me as h