MIRO User exit
Hi Gurus,
We have a functional requirement as when in MIRO, if user changes G/L account to a balance sheet account, then this should give out a information message during the Invoice processing.
Could you let us know what exit can we use ?
Thanks,
GB
Hello GB,
Did you try using the exit EXIT_SAPLMRMP_010 (Customer Exit: Analyze Document Header and Item Data)
This customer-defined function module enables you to perform various analyses. The invoice document header, including the tax table, and the invoice document items are available.
Kindly let us know by posting a reply if this works for you.
Thank you.
Suresh Jayanthi.
Similar Messages
-
MIRO : User-exit to block an invoice
Hello,
I try all miro user-exits and badi and nothing works.
I need to block some invoices in MIRO. The badi is good but no export parameters (I try dynamic assignment but it dumped !!)
I you've any idea, I will reward
ThanksHi Fabrice,
Please take a look at these threads..
User Exit for FB60 ( Enter Vendor Invoice )
Please help me find a User exit to block a Vendor
cheers,
Prashanth
P.S : Please mark helpful answers -
MIRO User - Exit to Change the Profit Centre..?
I need to change the Profit Centre in the Accounting document(for Vendor Line Item) and Profit Centre Accounting Document(For Payable Line Item) Created by MIRO Transaction.Can any one let me know if there is anyuser-exit or badi to achieve the same
Thanks a lot for your help .
Regards,
Gopi.Khi
These are all the user exits avalilable for MIRO transaction.
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
I think you can use this exit.
LMR1M002
Regards.
Lavanya. -
MIRO user exit at material document creation
I need to find out where or how material documents are created. Right now we have one material document per day per invoice so a single document can have many payments made against it (if they are made in the same day). What I need to do is change it so that each payment has its own material document. If you have 3 payments against invoice 001 in the same day then you have three material documents against that invoice instead of just one.
I am assuming this is done, or can be changed, in a user exit. If not is this a configuration issue?
Regards,
DavisHere is the list of User Exits and BADIs for MIRO.
Enhancement/ Business Add-in Description
Enhancement
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
Business Add-in
INVOICE_UPDATE Business Add-In: Logistics Invoice Verification -
MIRO - User Exit during SAVE: Read items & Update header
Hi there!
During MIRO after pressing save...
I search for an user-exit or BAdI, to READ ITEM DATA and UPDATE HEADER DATA (XBLNR) after SAVE but before UPDATE.
I have searched this forum, but with no luck. Many more then me seem to have the same problem. The most common answer have been to try BAdI INVOICE_UPDATE, but that BAdI only give READ access and NO UPDATE, so no luck there..
To summarize all my searching here and findings... I list all exits I have tested...
User-Exits
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
BADI - When saving in MIRO the following BAdI were passed...
PPA_CUST_BADI
/CCIS/FICLRDC_ENH
INVOICE_UPDATE << only read no update
ME_DP_CLEARING
AC_DOCUMENT
FI_LIMIT_PROCESS
AC_QUANTITY_GET
FMRE_BUS_PROCESS
EXIT_XFMPRI_001
CO_DOCUMENT_INFO
INVOICE_UPDATE (method change_before_update ) << only read no update
MRM_RANSACT_DEFAULT
MRM_HEADER_DEFAULT
Other BAdI's
MRM_HEADER_CHECK - Bara ingående värden för kontroll
MRM_HEADER_DEFAULT - Tyvärr sätter bara XBLNR precis när man går in i MIRO...dvs för tidigt.
MRM_ERS_HDAT_MODIFY - EJ anropad...
Would be greatful for any ideas on this matter...
Best regards
HenrikHello Henrik,
In BADI INVOICE_UPDATE there are 3 methods CHANGE_AT_SAVE, CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE.
Of these CHANGE_AT_SAVE is called before INSERT / UPDATE statements are executed. We can use this to update RBKP-XBLNR.
We can't use CHANGE_BEFORE_UPDATE and CHANGE_IN_UPDATE methods as they are called after INSERT / UPDATE statements are executed and before COMMIT.
You can update RBKP-XBLNR through INVOICE_UPDATE~CHANGE_AT_SAVE method using call stack technique like below. You can replace 'VALUE' in the below code with the value based on your calculation using other variables like s_rbkp_new, ti_rseg_new etc.
method IF_EX_INVOICE_UPDATE~CHANGE_AT_SAVE.
DATA: lv_name_xblnr(30) TYPE c VALUE '(SAPLMRMP)RBKPV'.
FIELD-SYMBOLS: <fs_rbkpv> TYPE mrm_rbkpv.
ASSIGN (lv_name_xblnr) TO <fs_rbkpv>.
IF <fs_rbkpv> IS ASSIGNED.
<fs_rbkpv>-xblnr = 'VALUE'.
ENDIF.
endmethod.
Best regards,
Vishnu Tallapragada -
MIRO User exit - processing order
Hi
I've had a user request to try to copy the text line entered in the header part of MIRO into the posted transactions in BSEG so that when GL account analysis jobs are run eg FS10N, relevant text info is shown as well (as it does when manual invoices are posted). I've worked on the User exits available and with the Export/Import to memory option I thought that I'd cracked it.
I used the Export option in EXIT_SAPLMRMP_010 as required input data is available there. Then I used the Import option in EXIT_SAPLMRMP_004 as that exit is used to post data to the accounting functions. For testing I put a breakpoint into each of them.
During testing, I was surprised to find that EXIT_SAPLMRMP_004 was actually processed before EXIT_SAPLMRMP_010 during MIRO although I proved that the concept would work would work by manually keying some text into the relevant field at the breakpoint as it appeared in BSEG afterwards.
Can anyone please advise if there is an easy way to discover the order of processing of the exits available to MIRO (dozens of includes in SAPLMR1M!!) so I can put the Export option into the correct place.
Thanks
Jim JacksonHi Jim,
You can try with BTE (Business Transaction Events).
Goto SE37 - SAMPLE_PROCESS_00001120 (this is the standard BTE for account document posting). copy this with ZSAMPLE_PROCESS_00001120.
In this you cannot modify the tables t_bkpf and t_bseg. you can use t_bkpfsub and t_bsegsub.
For this a little bit config is required.
1) Goto t-code FIBF-> settings->Products->... of a customer.
Click new entries -> product name- ZPRODUCT , text - any text, RFC dest - ZSAMPLE_PROCESS_00001120, A - enable check box -> save.
2) Go back -> settings -> P/S Modules -> ... of a customer.
Click new entries -> event - 00001120, Product - ZPRODUCT, Ctr - Country key, Appl - FI-FI, Function module - ZSAMPLE_PROCESS_00001120 -> save.
3) Go back -> settings -> Process Modules -> ... of a customer.
Click new entries ->Process - 00001120, Ctr - Country key, Appl - FI-FI, Func module - ZSAMPLE_PROCESS_00001120, Product - ZPRODUCT -> save.
Now goto SE37->ZSAMPLE_PROCESS_00001120
logic.
loop at t_bkpf.
loop at t_bkpfsub.
move 'your value' to t_bkpfsub-value.
modify t_bkpfsub index sy-tabix.
endloop.
endloop.
loop at t_bseg.
loop at t_bsegsub.
move 'your value' to t_bsegsub-value.
modify t_bsegsub index sy-tabix.
endloop.
endloop.
''your value' is imported value.
no need to worry abt modified values. after execution of BTE it will go to standard prog and copy the values of t_bkpfsub[] and t_bsegsub[] to SAP tables. so pls be perfect with code. SAP wouldn't allow change the values in t_bkpf[] and t_bseg[] values. you can add your own fields in bkpf_subst and bseg_subst.
But make sure that, pls write the code in FM with conditions like cocode doc type etc. bcz this BTE is very important. it will executes before acc doc is posted.if you do not specify any conditions it will execute for all co codes in acc doc. it will affect business. you can debug this BTE. put a break point in FM and see the values while post the MIRO.
once import the values free memory id and clear the variables what ever u used in BTE.
Best Regards,
Mohan. -
Hi ALL,
i have implenented LMR1M001---- EXIT_SAPLMRMP_010 user exit, but while miro it does not hit expression:
I put break-point in EXIT_SAPLMRMP_010- ZXM08U16.
I have created project in following way.
In tcode CMOD create project ZMIRO.
In enhancement assigment create LMR1M001.
In exit EXIT_SAPLMRMP_010-ZXM08U16.
I write code.
and activated both project and include.
and i set debug mode active.
But while running miro. it does not hit:
In miro i am doing following operation.
select subsequent debit.
In Basic data tab i insert
date.
In Detail tab i insert Un
planned delevery cose
Insert
Purchase order no.
And press Enter.
After Pressing
enter, It exutue directly without calling user exit.
Please help me,
Thanks,Hi,
May be this exit is not called for your scenario or the condition to trigger that exit may not have met.
Just activate your SQL Trace and then run MIRO. Just check in the tace log whether your exit is called. Else you may use another one.
Regards,
Renjith Michael. -
Hi all,
How can i control MIRO referans field during saving Vendor Invoices? What is the name of User Exit or BADI name?
Best regards,
Munur EBCIOGLUSE18 > INVOICE_UPDATE >
based in ur requirement you can use:
Methods:
CHANGE_AT_SAVE Invoice Document at Save
CHANGE_BEFORE_UPDATE Invoice Document Before Update
CHANGE_IN_UPDATE Invoice Document During Update -
MIRO - User exit at save to put on a payment block
I need to do some consistency checks at the save of MIRO. In this user exit I need the option of putting the payment on a payment block. I have found some enhancements but I haven't found any which will allow me to put it on a payment block.
Regards,
Davisuse this BADI
MRM_PAYMENT_TERMS -
Hi frnds,
i need to pass default values in MIRO transaction.
i have found MRM_HEADER_DEFAULT Badi and LMR1M001 user exit, for this. but i am not able to pass the values here. can u help on this? or can u give any userexist for this?
Badi Code:
I_RBKPV-WAERS = 'INR'.
I_RBKPV-BUPLA = '1000'.
I_RBKPV-SECCO = '1000'.
User Exit Code:
the same above code i have used in EXIT_SAPLMR1M_003.
Thanks in advance.
Points will be rewarded for helpful answers.
Regards,
BaluHi,
Have you passed the values that you want to set to the export parameters in the BAdI:
E_BLART Document Type
E_BKTXT Document Header Text
E_XBLNR Reference Document Number
E_BLDAT Document Date in Document
E_REINDAT Invoice Receipt Date
E_XBNK Planned Delivery Costs Indicator
E_XWARE Goods Invoice/Service Indicator
In the BAdI source code you must pass values to these parameters that you want to set.If you have done this and still you are not getting the desired result then can you send the source code.
Hope this helps.
Pravat
<i>*Reward points if helpful</i> -
Transfer data from the PO to the invoice header data in MIRO (user exits)
Hi.
We are trying to transfer some basic information from the PO to the invoice header data by the time we process the logistic invoice verification (transaction MIRO).
The information we want to transfer is:
1. PO Text (screen field DRSEG-TXZ01) -
> should be transferred to Header text field (screen field INVFO-SGTXT) located in the tab u2018Basic Datau2019.
2. Purchasing Document Number (screen field DRSEG-EBELN) -
> should be transferred to Assignment field (screen field INVFO-ZUONR) located in tab u2018Detailsu2019.
The exits we had listed for this tasks are:
EXIT_SAPLMR1M_002: Change Proposed Account Assignment
EXIT_SAPLMR1M_003: Pass On Document Header Data
EXIT_SAPLMR1M_004: Change the Withholding Tax- and Split Table
EXIT_SAPLMRMP_010: Analyze Document Header and Item Data
The second one, EXIT_SAPLMR1M_003, should have stopped at by the time we processed the information, but it didnu2019t.
Iu2019ve heard EXIT_SAPLMRMP_010 would no longer be functional from version 4.6c.
Users enter the information in MIRO following this chronological order:
1.Invoice date
2.Reference
3.Purchase order number ---> operation which u201Ccallsu201D the PO to the screen.
4.Amount
5.Flag u201Ccalculate taxu201D field (if mandatory)
6.Tax on sales/purchases code (if mandatory)
And then they post. Thatu2019s all.
Weu2019ve tried to get this data from the time we u201Ccallu201D the PO to the screen, just to see if we can get it before we saved the document, and we werenu2019t capable of doing it. The second option is to get the data right after we process the document (post it), so weu2019ve reached bapi INVOICE_UPDATE but we cannot locate the exact place to put the references to the dynpro (although, weu2019re not 100% sure if this bapi would solve the problem).
Thanks in advance.
SebastianHi Sunil.
Function MRM_INVOICE_CHECK doesn't exist in system 4.6c. Also I've searched for it in ECC 5 and I got the same result. Are you sure about the name of the function?
From the function group MRMC, I found this:
MRM_BADI_INVOICE_CHECK
MRM_DUPLICATE_INVOICE_CHECK
I haven't still check them. But for what I know, the second one (...DUPLICATE...) processes a control to avoid a double entry of the invoice, I not sure it will work. I'll let you know.
Thanks for answering.
Sebas -
How to create a popup screen in user exit
Hi,
I need to create a popup asking to enter a bar code in transaction MIRO (user exit)
Points will be rewarded
Thanks in advanceHi jayasree,
1. we can use the FM
POPUP_TO_GET_ONE_VALUE
regards,
amit m. -
USER EXIT or BADI for Vendor field in MIRO
Hi Experts,
In MIRO transaction vendor field gets defaulted from Purchase Order. So my requirement is to changes that vendor with alternate payee.
To <u>replace the vendor with alternate payee</u> I need the <b>USER EXIT or BADI</b>, kindly help me on this will be useful for us.
Thanks in Advance.
SAP ConsultantTransaction Code - MIGO Goods Movement
Exit Name Description
MBCF0002 Customer function exit: Segment text in material do
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Ma
No of Exits: 8
BAPI-step by step procedure
http://www.sapgenie.com/abap/bapi/example.htm
list of all BAPI's
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Rewards if useful.................
Minal -
BADI/USER EXIT for MIRO.
Hi All
I have added a new field (GST) on MIRO screen using GUI XT.
The requirement is such that I need to populate this field after I have entered the purchase order no (It needs to take the vendor from the PO and then its subsequent VAT no from the vendor master). I am not sure where to do this part of the coding.
i have tried to implement BADIs
BADI_ENJ_ALT_ADR
INVOICE_UPDATE
BADI_FDCB_SUBBAS01
but it doesn't help.
Is there any other BADI/User Exit that I can try.
Thanks in advance.
HarshHi,
Bellow are the exit names for MIRO.
<Irrelevant enhancement list removed by moderator>
Regards,
Goutam Kolluru.
Edited by: Vinod Kumar on Feb 3, 2012 9:34 AM -
User Exit / BADI for MIRO in order to Fill G/L Account Automatically
Hello!
Recently I've got a request asking me to fill the G/L Account table control in MIRO transaction using an User Exit or BADI. I'm able to find all the information needed to complete this task, but can't seem to find a way to insert that data in the G/L table control. They want this data uploaded as soon the user inserts the PO number and loads everything. Is this possible?
Thanks in Advance
Regards,
Moises FrancoHi.
Find appropriate place in code to realize your task
and insert GL data using corresponding BAPI.
Maybe you are looking for
-
How can I get Safari to default to NOT be in full screen mode?
I have looked in Preferences but don't see any such option. I know that once I am in a session that I can go to View->Exit Full Screen, but I want the default when I open a session to not be full screen. Would appreciate any and all help.
-
Difference Between SY-UCOMM and OK_CODE
Hello , What is the Exact difference between <b>SY-UCOMM and Ok-Code</b>?
-
Problem with Omnipass of Softexinc
Hello, Here is my configuration: Product: 3000 N100 0768-FFGOperating system: Windows Vista 32 Purchase date: May 2007 Omnipass version: 5.00.12 My request : Since a windows update, I have a double account user when windows start. Furthermore omnipas
-
Hyperion smart cut link of Financial report not opening as pdf in tasklist 11
Hi , I am using Smartcut Link to open FR from tasklist. Reports are opening properly in HTML but didn't show any option for PDF. While I am opening the same report from Explorer->Right click->Open as html. This will show option to save/open report a
-
50.000 RAW Images - into one Library or more??
Hi, I wonder if it makes sense to have more AP Libraries? Right now we have i.E. one Library for all our scans (10000) - this Library has several Projects (scan 1-2000, scan 2001-4000 etc) One Library got all Europe Pictures (Projects are Italy, Germ