MIR7 User Exit

Hi,
I am trying to find a user Exit in MIR7. I want specifically that user exit which would have data once the invoce/IR created in MIR7 is saved in the tables RSEG/MSEG. i.e. Commit work has been done, Invoice has been posted/parked/saved.
I need to have the line item data which are present in these two tables.
Its a bit <b>Urgent</b>.
Thanks and Regards,
Arnab Panigrahi.

Hi,
    You can try with the below enhancements.
LMR1M005 - EXIT_SAPLMRMC_002
MRMH0001 - EXIT_SAPLMRMH_002
MRMH0003 - EXIT_RMMR1MRB_002
LMR1M001 - EXIT_SAPLMR1M_002
Hope it helps.
Reward if it is useful.
Thanks,
Srinivas

Similar Messages

  • USER EXIT in MIR7

    Hi there. I've got such problem:
    that in MIR7 there are 2 example documents:
    700000001 - parked document
    600000001 - posting document
    I assume that 600000001 is generated from the 700000001
    ... and ...
    line items texts of the 700000001 are kept in RBCO-SGTXT
    whilst
    line items texts of the 600000001 are kept in BSEG-SGTXT
    And what I need to do is to modify MIR7 that parked document text (RBCO-SGTXT) will be moved to posting document text (BSEG-SGTXT)
    I'm checking user exits in MIR7 but I think there is no dedicated user exit for such action.
    But ...
    I checked MIR7 in debugger and there is CALL CUSTOMER-FUNCTION '004' called every action in the screen. But now I've got a problem because I don't know how to catch the moment of saving document.
    I'm thinking about checking the sy-ucomm. The button which post document has got BU function code assigned. But isn't it danger?
    IF ( sy-ucomm EQ 'BU' ) .
      ... customer code
    ENDIF .
    There can be somewere in other sub-screens a button with the same function ocde which use could trigger some destructive action by calling customer code?
    Maybe You have some suggestions? I'm really ambarassed about that topic.Greet.

    I checked MIR7 in debugger and there is CALL CUSTOMER-FUNCTION '004' called every action in the screen. But now I've got a problem because I don't know when how to catch the moment of saving document.
    I'm thinking about checking the sy-ucomm. The button which post document has got 'BU' function code assigned. But isn't it danger?
    IF ( sy-ucomm EQ 'BU' ) .
      ... customer code
    ENDIF .
    There can be somewere in other sub-screens a button with the same function ocde which use could trigger some destructive action by calling customer code?
    Maybe You have some suggestions? I'm really ambarassed about that topic.Greet.

  • User exit or badi for item text in mir7 transaction

    Hi Gurus,
    Please provide me suitable user exit or enhancement or badi for this requirement.
    client enter TEXT fied data in MIGO transaction for material document and purchase order in where tab.
    in MIR7 i entered reference number as material document number and purchase order number after triggering enter button it gives the list of items but IT IS NOT GIVE THE ITEM TEXT DATA which we entered in MIGO transaction.
    Please provide me suitable user exit or enhancement or BADI for this.
    Thanks A lot in Advance.
    With Regards,
    Radhakrishna.

    Hi RadhaKrishna,
    You can find the BADI by yourself just follow the below any methods you will get the appropriate BADI name..
    Method 1:
    Go to Tranaction: SE24.
    open class CL_EXITHANDLER
    Open the method " GetInstance"
    Put Break point in the statement
    call method cl_exithandler=>get_class_name_by_interface
    Now execute the Transaction which you need teh BDC it will automatically stops at the the method. In debugging mode double click on the variable: " exit_name" It will return the BADI Name.
    Method 2:
    find the Package name and go to the tranaction SE84.
    Enter the package name
    inside the left navaigaiton panel there is one option " Enhancements" click on this enhancement and then enter the package name and execute it. you will get hte number of enhancement.
    for your reference I am sending you the list of BADI present in MIRO transaction.
    ARC_MM_MATBEL_CHECK --------Check AddOn-Specific Criteria for MM_MATBEL
    ARC_MM_MATBEL_WRITE ---------- Archive AddOn-Specific Data for MM_MATBEL
    MB_CHECK_LINE_BADI  -------------- BAdI: Check Line Before Copying to the Blocking Tables
    MB_CIN_LMBMBU04     --------------- posting of gr
    MB_CIN_MM07MFB7     ---------------- BAdI for India Version exit in include MM07MFB7
    MB_CIN_MM07MFB7_QTY  ------------Proposal of quantity from Excise invoice in GR
    MB_DOCUMENT_BADI     --------------BAdIs when Creating a Material Document
    MB_DOCUMENT_UPDATE   -----------BADI when updating material document: MSEG and MKPF
    MB_MIGO_BADI        --------------------- BAdI in MIGO for External Detail Subscreens
    MB_MIGO_ITEM_BADI    ----------------BAdI in MIGO for Changing Item Data
    MB_RESERVATION_BADI  --------------MB21/MB22: Check and Complete Dialog Data
    Thanks,
    Chidanand

  • BADI/User Exit to capture DELETED DATE - MIRO/MIR7

    Hi Friends,
    Could anybody help me out in finding a BADI or User Exit (or some other means) so as to get the actual deleted date for the documents parked through MIRO/MIR7 ?
    (I have found a BTE to capture the deleted date for the documents parked through FB60/FV60.)
    Thanks in advance.
    Regards,
    Saravanan SR

    Hi Uday,
    User exits are:
    EXIT_SAPLMR1M_001 - MM08R002 - User exit for tolerance checks
    EXIT_SAPLMR1M_002 - LMR1M001  - User exits in Logistics Invoice Verification
    EXIT_SAPLMR1M_003 - LMR1M001  - User exits in Logistics Invoice Verification
    BADI's are:
    BADI_ENJ_ALT_ADR - Go to alternative vendor/customer data
    MR_CIN_LMR1MI2G_SEL - BAdi in LIV for determining line selection
    MR_CIN_LMR1MI2G - BAdI for India Version exit in include LMR1MI2G
    Regards,
    Sukhbold

  • Find User Exit in MIR7 to validate Vendor info

    When incoming invoice is being “parked” in transaction MIR7, I need to find user exit to add validation/warning if vendor has multiple PI partners in the vendor master. It has to happen when user types in PO number and hits enter key – this is when vendor info is retrieved in top right corner of the screen.
    Any suggestions/recommendations would be greatly appreciated.
    G.B.

    It looks like function module MRM_HEADER_CHECK is called from fm MRM_INVOICE_CREATE during invoice creation. I tried to set break points there, but it does not seem to be executed when I need it.
    I already know how to check for multiple PI partners ( table WYT3 ). What I need is to find a user exit in MIR7 with PO # available when user types in PO number and hits enter key and vendor info is retrieved in top right corner of the screen. I need something similar to routine USEREXIT_XKOMV_BEWERTEN_INIT in include RV61AFZB, but PO # is not available there. Any ideas?
    Thanks in advance,
    G.B.

  • User Exit for MIR7 Simulate

    Hi all,
            I need to implement a user exit for MIR7 similation . requirment is when user click on button simulate at the time of MIR7 the total amount of all line items should be displayed in popup or any small window. therefore any user is there for do that . and give some tips for inplement that. actualy i am new to user exits.
    Thanks in advance
    Jitendra

    hi,
    You can use tcode 'smod' to navigate to one of these enchancement and choose the best EXIT Fm to do the calculation .
    Exit Name           Description
    LMR1M001            User exits in Logistics Invoice Verification
    LMR1M002            Account grouping for GR/IR account maintenance
    LMR1M003            Number assignment in Logistics Invoice Verification
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006            Logistics Invoice Verification: Process XML Invoice
    MRMH0001            Logistics Invoice Verification: ERS procedure
    MRMH0002            Logistics Invoice Verification: EDI inbound
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP
    MRMN0001            Message output and creation: Logistics Invoice Verification
    PS : to create the FM for this user exit , you can use tcode CMODE to create new project with the suitable enhancement and create the code for your calculation.
    Thanks

  • Add duplicate check on MIRO and MIR7 by modfying a user exit

    Hi ABAP / SAP Gurus,
    Good day!
    For transaction code MIRO and MIR7, I need to add a check if there are invoice with the same details of VENDOR, CURRENCY, DOCUMENT DATE and AMOUNT on table RBKP. And If there are same invoice, a warning message should be issued.
    I have modified an include program (ZXM08U14) in FM EXIT_SAPLMRME_003. Unfortunately, the warning message is being triggered after the "SAVE" button is clicked.  In other words, the "Warning Message” might be considered as something useless since the document will still be created without the user being informed of the "duplicate".
    I need the duplicate check's warning message to be triggered even before the "SAVE" button is clicked.
    In this light, i have some questions:
    <b>(1) For MIRO, where can I put the duplicate check that will trigger a warning message (if a duplicate has been found) even bofore clicking the save button?  Kindly give the User Exit / Program.
    (2) For MIR7, where can I put the duplicate check that will trigger a warning message (if a duplicate has been found) even bofore clicking the save button?  Kindly give the User Exit / Program.
    (3) Can I use BADI for the said functionality? If yes, kindly provide a simple instruction on how to proceed.</b>
    Thanks in advance!
    And don't worry, I will give appropriate points for helpful answers.

    Hi,
    Check the following Exits and BADI for both MIRO and MIR7:
    LMR1M001        User exits in Logistics Invoice Verification
    LMR1M002        Account grouping for GR/IR account maintenance
    LMR1M003        Number assignment in Logistics Invoice Verification
    LMR1M004        Logistics Invoice Verification: item text for follow-on doc
    LMR1M005        Logistics Inv. Verification: Release Parked Doc. for Postin
    LMR1M006        Logistics Invoice Verification: Process XML Invoice
    MRMH0001        Logistics Invoice Verification: ERS procedure
    MRMH0002        Logistics Invoice Verification: EDI inbound
    MRMH0003        Logistics Invoice Verification: Revaluation/RAP
    MRMN0001        Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE   Business Add-In: Logistics Invoice Verification
    reward if useful
    regards,
    Anji

  • BADI/user exit

    Is there any BADI/Exit to gray out Inv. Party(vendor) field in the details tab of MIR7.
    Please help.
    Regards,
    Sudhakar.

    Hi,
    BAdI Definition      Description                                                                               
    INVOICE_UPDATE       Business Add-In: Logistics Invoice Verification   
    Exit name Short text                                                                               
    LMR1M001  User exits in Logistics Invoice Verification               
    LMR1M002  Account grouping for GR/IR account maintenance             
    LMR1M003  Number assignment in Logistics Invoice Verification        
    LMR1M004  Logistics Invoice Verification: item text for follow-on docs
    LMR1M005  Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006  Logistics Invoice Verification: Process XML Invoice        
    MRMH0001  Logistics Invoice Verification: ERS procedure              
    MRMH0002  Logistics Invoice Verification: EDI inbound                
    MRMH0003  Logistics Invoice Verification: Revaluation/RAP            
    MRMN0001  Message output and creation: Logistics Invoice Verification
    in future if you want to know any user exits or badi available for t-code..
    go to ->se16-->enter table TSTC-> enter your t-code and get the pgm name..
    get the package for pgm name...
    go to se15--> expand the enhacements tab and enter package under user exits or badi ..
    you will get the avaialable user eixts and badi for the t-code under that package.
    Prabhudas

  • Bapi or user-exit to create warning in invoice

    Hi,
    I was askes to create a warning whenever someone pushes delete within an invoice (mir7). The problem is that our users are not aware, that they are really going to delete not only the marked position within the invoice but the whole invoice.
    I´ve tried to find a bapi or user-exit to place my coding but so far was unsuccessful, can anyone tell me if there is a badi or user-exit?

    Hi Ute!
    Try BADI INVOICE_UPDATE (hope this is defined in your release).
    It's help says:
    "You can use the business add-in (INVOICE_UPDATE) to further process the following functions or, if necessary, forbid them:
    Creating invoices (invoices, credit memos, subsequent debits, subsequent credits) in Logistics Invoice Verification
    Parking documents in Logistics Invoice Verification, and making changes to these documents, for example, deleting them"
    -> Exactly what you are looking for.
    Regards,
    Christian

  • User exit on field Unplanned delivery cost - MIRO

    Hello everybody,
    I want to be able to put tolerences on the unplanned delivery cost, for example:
    For Invoice amount = 1000
    IF Unplanned delivery cost > 100 >>> Balance (Red) invoice blocked
    Do you Kow some User exit for that ?
    Thank you

    Hello Jeyakanthan ,
    I dont see any tax code field next to unplanned delivery cost  in the MIR7 / MIRO .
    I checked the screen layout , in that the field is there & is active . But it doesn't appear in MIRO / MIR7
    what do i have to do in order activate the field ?
    Regards
    Anis

  • User exit ZXPADU02 - evaluating SY-UCOMM

    Hello everyone,
    I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
    I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
    My code looks like this (only the relevant code snippet in ZXPADU02):
    CASE INNNN-INFTY.
            WHEN '0007'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = INNNN
            IMPORTING PNNNN = P0007.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = PSAVE
            IMPORTING PNNNN = P0007_ALT.
          IF P0007_ALT-SCHKZ <> P0007-SCHKZ
          AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
          AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
            MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
            SHOW_DATA_AGAIN = 'X'.
          ENDIF.
    At first glance, the above works nicely.  But this is what happens when I test more thoroughly:
    I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
    Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
    Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.

    Mihir Nagar wrote:
    Dear Petersen,
    Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
    MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
          ENDIF.
    Hope this works.
    Regards,
    Mihir.
    I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
    make use of  field IOPER of the structure  PSYST to check on the infotype actions INS, MOD, COP, DEL...
    In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
    Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
    That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt.

  • Using a variable not in the Export,Import, table Parameters in USER EXIT

    Hi all,
       During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log.  In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS.  There is a user-exit   CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'.  But the import, export or Table Parameters does not have XVBFS.
      How can I use XVBFS inside the User exit?..
    Please help.
    Regards,
    Asha

    Hi,
    I dont know whether this will help u...
    write this in user exit...to access variables/tables of main program..
    FIELD-SYMBOLS: <komv>.
    ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
    where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
    regards
    Sukriti....

  • How to find out the user exit is implemented

    Hi All,
    Kindly let me know the process to be followed to find out the User exit is implemented in SAP system.
    I have seen many senriors suggestions for some treads to check if there is any Exit is implemented in the process when the system is behaving differently rather standard.
    Is it the only way with help of ABAP'er we can find out or the functional consultant also can find out through some procedure?
    I tied in google for this doubt, but i could not get the relavant answer.Pleaea execuse me if this already answered.
    Thanks,

    Hi Krishna/TW,
    Thank you for your immediate replies. Sorry i think i have not explained correctly my requirment.
    Let me explain my requirement once again.Let us say Comapny has implemented one Exit in the project, now i want to find out what exactly the Exit was implemented.
    Example: In STO process user is able to increase the  qty in delivery. As per the client requriement system should not allow.
    This is not possible in standard to control even after maintainig  check over delivery field in 0VLP.
    For this comapny has already implemented one enahnceament.
    User Exit : USER EXIT_READ_DOCUMENT
    Program: MV50AFZ1
    like this when any one joined in the project we do not know what are all the Exits are implemented in the SAP system where we are working.
    So if i want to find out if there is any Exit or enhancement implemented, what is the process to find out?
    I hope now  am clear with my requirement.
    Thanks in advance.

  • How to find out the user-exits?

    hi.
    how to find out the user-exits?
    regards
    eswar.

    Hi,
    *& Report  ZEXITFINDER
    *report  zexitfinder.
    *& Enter the transaction code that you want to search through in order
    *& to find which Standard SAP User Exits exists.
    *& Tables
    tables : tstc, "SAP Transaction Codes
    tadir, "Directory of Repository Objects
    modsapt, "SAP Enhancements - Short Texts
    modact, "Modifications
    trdir, "System table TRDIR
    tfdir, "Function Module
    enlfdir, "Additional Attributes for Function Modules
    tstct. "Transaction Code Texts
    *& Variables
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    *& Selection Screen Parameters
    selection-screen begin of block a01 with frame title text-001.
    selection-screen skip.
    parameters : p_tcode like tstc-tcode obligatory.
    selection-screen skip.
    selection-screen end of block a01.
    *& Start of main program
    start-of-selection.
    Validate Transaction Code
    select single * from tstc
    where tcode eq p_tcode.
    Find Repository Objects for transaction code
    if sy-subrc eq 0.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir
    where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir
    where pname = tstc-pgmna.
    select single * from enlfdir
    where funcname = tfdir-funcname.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name = enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    Find SAP Modifactions
    select * from tadir
    into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct
    where sprsl eq sy-langu
    and tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    Take the user to SMOD for the Exit that was selected.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first screen.
    Regards

  • How to find out appropriate user exit

    Hi,
    I want to know how to find out the user exit that matches to the requirement. Suppose for a material master program, there are so many include programs hence im unable to find call custer-function and even unable to debug an appropriate include. Please help me out how to learn user exits in a rightious way.
    Thanks
    Basu

    Look for program SAPICSS_ in your system and run it. This program can also be found under CMOD menu:  Utilities -> SAP enhancements.
    This will only give you the CMOD user exits.
    There is a program someone made that searches for all sorts of user-exits (including BADI's etc.). I remember that it was posted on sapfans.com
    Edited by: Maen Anachronos on Apr 6, 2009 3:22 PM

Maybe you are looking for