INVOICE_UPDATE - MIRO ( RSEG-LFEHL)

Hi All,
I am using Badi INVOICE_UPDATE to change the value of "Vendor Error-lfehl".
I am not able to do it with the INVOICE_UPDATE BADi because there are no export parameters in the BADi. So please any of have worked on the same scenario plz suggest me.

Solved.
ENHANCEMENT-POINT mrm_invoice_prepare_and_post_1 SPOTS es_saplmrmp.
ENHANCEMENT 60  Z_MM_VENDER_ERR.    "active version
  FIELD-SYMBOLS: <f_drseg> TYPE mrmrseg.
  CHECK zcl_ca_enh=>check_enh( i_enharea = 'MM0003'
                               i_subarea = space
                               i_orgl    = space ) NE space.
  IF  sy-subrc = 0.
    IF sy-tcode = 'ZMIRO' AND s_rbkp_new-blart = 'RE' AND s_rbkp_new-xrech = space.
      LOOP AT tab_mrmrseg ASSIGNING <f_drseg>.
        <f_drseg>-lfehl = '3'.
      ENDLOOP.
    ENDIF.
  ENDIF.
ENDENHANCEMENT.
Regards,
Kosala

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 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 to modify the line items display in MIRO screen.

    Hello All,
    I am looking for a BADI to make some changes in the MIRO transaction.
    I am looking for following changes there:
    After entering the amount and the other details in MIRO screen if we press 'Simulate' button, we get the tax, amount and other details in a pop-up screen.
    I want to change the line items in the popup screen and add 1 more line item to it.
    I found out a BADI "INVOICE_UPDATE" for the same but i am not sure how far it will be of use in this regard.
    Moreover there are no export parameters in this BADI, so will it make any modifications in the pop-up screen?
    Could one of you please give me the answers to following questions in regard to above description:-
    1) Suggestions to make carry forward the above mentioned changes
    2) How to make sure if the BADI 'INVOICE_UPDATE' is apt for above scenario or not
    3) How to start with the implementations for the same if this BADI is the apt for the required changes
    Regards,
    Akanksha

    Hi,
    Try
    Exit: LMR1M001   -         User exits in Logistics Invoice Verification
    BADI or Enhancement Spot- INVOICE_UPDATE
    Use Method CHANGE_BEFORE_UPDATE -     Invoice Document Before Update
    Refer Link:[INVOICE_UPDATE|Regarding BADI , INVOICE_UPDATE ( MIRO transaction );

  • Credit Memo Printout

    Hi ,
    I am having an issue with regard to credit memo printout. I want to take a printout of a created credit memo. What do i need to do inorder to take the printout.
    i checked NACE and the settings are maintained for Invoice verification, but when i got message in MIRO i am unable to find the output type INS.
    How do i get a successful credit memo printout.
    Thanks
    Shabeen Buhary

    Hi,
    first please consider the note 129643 according generally settings for creating message records in Invoice verification.                       
    Please check if you have maintained an output device in the condition record. It is necessary for the system generates    
    message REKL automatically.   
    Also please check the following information which solved a similar  case before: 
    The problem is because RSEG-LFEHL (Type of vendor error) is blank for                                     
    the credit memo.                                                                               
    Researching what this LFEHL is supposed to do, I found that its linked                                    
    to the 'Invoice Reduction' process. Reading up on the R/3 help doc, I found that 'Complaint' letters (ie output type REKL) are only used  if you use the Invoice Reduction process.   This functionality is slightly different to just creating a credit     memo. So in the standard R/3, you can only use output type REKL    when you reduce invoices. This is done by using the display variant:    'invoice reduction' (on the items display) and setting 'Correction ID'   field to 'Vendor error'. The system then automatically reduces the   invoice either via qty or price basis.                                                                    
    Best regards    
    Erika

  • 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

  • Enhancement/Exit to flag Blocking Reason (RSEG-SPGRS) in MIRO

    Hi,
    I am facing a problem right now since I cannot find any exit/enhancements that can flag  the Blocking Reason (RSEG-SPGRS) in transaction MIRO.
    It is so much appreciated if you can help me to identify which exit/enhancement should I use.
    Thank you in advance.

    Hi,
    This is what i´ve found out:
    field RSEG-SPGRS is flagged within fm MR_BLOCKING_REASON_S.
    And this field is flagged according to the criteria set in tables:
    T169P (Parameters, Invoice Verification)
    T169G (Tolerance Limits, Invoice Verification)
    ...etc.
    Have a look at this fm.
    If you do a "Where used" search of this fm you will see that is is called in:
    Include LMRMPF1L
    Subroutine SPERRGRUND_S
    if you have a look at this subroutine you will see that there is an exit there:
      CHECK PX_DRSEG-SPGRS NE SPACE.
      SY-SUBRC = 0.
      CALL CUSTOMER-FUNCTION '001'
           EXPORTING I_RBKPV  = PI_RBKPV
                     I_YDRSEG  = PX_DRSEG
           EXCEPTIONS CALL_FAILURE = 001.
      CASE SY-SUBRC.
        WHEN 001.
          MESSAGE E271 RAISING PARAMETER_ERROR.
      ENDCASE.
    The exit is EXIT_SAPLMRMP_001.
    then there is call to fm MRM_TOLERANCE_CHECK
    within this fm there is an exit:
    *------- Customer Exit ------------------------------------------------*
      CLEAR: CHK002, SY-SUBRC.
      CALL CUSTOMER-FUNCTION '001'
           EXPORTING I_BUKRS = I_BUKRS
                     I_TOLSL = I_TOLSL
           IMPORTING E_WERT1 =  X169G-WERT1
                     E_XW1JA =  X169G-XW1JA
                     E_WERT2 =  X169G-WERT2
                     E_XW2JA =  X169G-XW2JA
                     E_PROZ1 =  X169G-PROZ1
                     E_XP1JA =  X169G-XP1JA
                     E_PROZ2 =  X169G-PROZ2
                     E_XP2JA =  X169G-XP2JA
                     E_CHECK =  CHK002
            EXCEPTIONS CALL_FAILURE = 001.
    This exit is EXIT_SAPLMRMC_001
    And within fm MRM_TOLERANCE_CHECK there is the possibiliy of an implicit enhancement.
    question: why trying to flag field RSEG-SPGRS when you have tolerances available?
    Best regards.

  • MIRO: EXIT_SAPLMR1M_002 & BAPI: invoice_update

    Hello,
    Can anyone tell me how to use exit EXIT_SAPLMR1M_002 in transaction MIRO? 
    I have requirements to create new line items with GL accounts and amounts.  From OSS, exit EXIT_SAPLMR1M_002, should be use.  But I cannot trigger this exit.  I have tried to figure out how  this is called, but the only thing I found is it is called in screen 210 of program SAPLMR1M.  But I could not find where or how this screen is displayed in the transaction.  I also tried using BAPI invoice_update, but I could not create any new entries because the parameters are 'importing' parameters only. 
    So, can anyone suggest on how to create new GL line items in transaction MIRO?
    This is pretty urgent because if it cannot be done with these exits, a new design solution would be necessary and I have short time-frame for development.
    Any suggestion is greatly appreciated.
    Regards,
    Anna-Liza

    Hi
    Define a variable for VORGANG and set a value in the same way that from VORGANG SAP gives values for other fields in include LMR1MF5G (FORM vorgang)
      CASE rm08m-vorgang.
        WHEN '1'.                          " Rechnung
          rbkpv-xrech      = 'X'.          " - Rechnungs-Kennzeichen
          rbkpv-tbtkz      = space.        " - Nachbelastungs-Kennzeichen
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '2'.                          " Gutschrift
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = space.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'H'.
        WHEN '3'.                          " nachträgliche Belastung
          rbkpv-xrech      = 'X'.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'S'.
          rbkpv-xrechr     = 'H'.
        WHEN '4'.                          " nachträgliche Entlastung
          rbkpv-xrech      = space.
          rbkpv-tbtkz      = 'X'.
          rbkpv-xrechl     = 'H'.
          rbkpv-xrechr     = 'S'.
    So, do the algorithm in the reverse for fields XRECH, TBTKZ, XRECHL and XRECHR in MRM_RBKPV.
    I hope this helps you
    Regards
    Eduardo

  • 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

  • BAPI Program -Invoice_update- For not allowing MIRO if Quality not clear

    Hello Gurus,
    Does anybody have program done for BAPI -Invoice Update
    This is for not allowing user to post MIRO-Vendor Incoming Invoice Creation & Posting if any material against that PO or GR is lying in the Quality Inspection.
    Please send if you have the same.
    Thanks
    Rahul

    hi,
       You can use user exit  --EXIT_SAPLMRMP_010 (LMR1M001)    which definitely will solve ur issue.
       revert to me if u have any doubts on it.
    murali.c

  • 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

  • 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...

  • User Exists  for  MIRO /FB03   transaction

    Hi,
    Our requirement is to capture the PO text in MIRO posting document (FB03)
    I have tried the following -
    I made use of SAP enhancement LMR1M004 and user exit EXIT_SAPLMRMP_004 to populate the BSEG_SGTXT.
    What i observed are -
    - When you create the MIGO document then some records are inserted in BSEG, after that when you create the MIRO document the records which are created in MIGO are updated by the user exit which i have written (field BSEG-SGTXT) .
    - After the user exit is executed then the MIRO records are inserted into BSEG. So these MIRO records are not updated, which is my actual requirement.
    Please suggest/guide me to accompanish this task.
    Santosh.

    I think when MIRO document is created the entries are updated in RSEG instead of BSEG.
    Anyway if you want to update MIRO data while it is saved you can make use of BADI: INVOICE_UPDATE. METHOD: CHANGE_BEFORE_UPDATE.
    Similarly you have badi for MIGO: MB_MIGO_ITEM_BADI, but here you can only change storage location and item text.

  • Using BADI for changing the Profit Center in FI Document during MIRO

    Hi,
    We have an requirement of changing the profit center in FI/CO Document while doing MIRO which is different than the one which is posted at the time MIGO.The system is not allowing us to do this and the field profit center during MIRO is not changeble mode and the business requirement is to change this through any SAP enhancements or program.
    How can I do this ?
    Is there is any standard BADI or User Exit is available for this.
    Pleease help me in this and will give valuable points.

    Hey,
    Use the BADI INVOICE_UPDATE and try with this. Otherwise you try to create Enhancement point to implement your code.
    Note: Inside BADI we can't change the runtime value. So, try to use enhancement point.
    Rewert back for any clarification.
    Regards,
    Saravanan M

  • Internal Table in MIRO

    Experts,
    While doing IR in MIRO , i have entered a PO no . then the Line Items under this PO are getting displayed.in PO Reference Tab. Suppose there are 3 line Items . But i want to do IR for only 2 line items (whose Quality Inspection has been done).
    In debugging am unable to find in which Internal Table of which std / Include program , the two selected records have been stored before the 'Simulate Tab' is pressed .
    Please help .
    Thanks in Advance
    Jack

    1-Check this BADI INVOICE_UPDATE
    method is CHANGE_AT_SAVE
    2-You can also look into MM08R002 and FM EXIT_SAPLMR1M_001 .
    Lets see if it is helpful.
    Neha

Maybe you are looking for

  • TV as second display has black border

    I use a panasonic 42" 720 plasma to watch movies on. there is always a black border. I can't find any settings on the tv or the computer to fix this. Am I missing something? I'm using a HDMI cable thru mini DVI port. Thanks KC

  • DW CS5.5 and Yosemite [subject edited by moderator]

    i upgraded to a new computer with Yosemite, after migrating my settings over. Adobe CS5.5 works fine except Dreamweaver CS 5.5, it says it is unable to locate menus.xml and cannot rebuild from a backup. It suggests reinstalling. But when i try to rei

  • Driod Razr Maxx (4.1.2) Bluetooth streaming problem

    I have a Droid Razr Maxx (Andriod 4.1.2).  I just installed an Alpine CDE-143BT CD Receiver in my car.  The Bluetooth phone features work fine.  I can stream music from my wife's Galaxy Note II without a problem, but I can't stream music from my phon

  • Mapviewer Configuration on Jdeveloper

    Hi, I have downloaded Mapviewer kit (mapviewer_11ea1.zip) from OTN site. I am trying to develop new web application to render map data stored on oracle spatial using JDeveloper. For now question is where i have to add this mapviewe.ear file into Jdev

  • Mighty Mouse: Scroll ball does not scroll down

    My scroll wheel on my 'might mouse' now only scrolls UP and Side to Side. I have tried restarting, checking system prefs. etc. but no joy. How did we manage before?!! If any one has the answer I would be grateful. Thanks Rob