Duplicate Invoices getting posted in MIRO
Dear Expert,
My user has raised an issue that while posting a MIRO transaction duplicate documents are getting generated with the same details(amt, invoice ref etc.) in a span of 30 seconds giving two document numbers.
I have asked the user to reverse one of the open items using t code MR8M to resolve the issue for the time being.
But the user is asking me why duplicate invoices are getting posted and needs a permanent solution to the issue.
Did anybody faced a similar issue previously. Kindly suggest me on this.
Regards,
Sudish
Hi,
Please check the configuration in belowpath:-
IMG>Materials Management>Logistics Invoice Verification>Incoming Invoice>Set Check for Duplicate Invoices
Moreever, in vendor master, you need to maintain the double invoice check tick in the company code data.
You can also configure the extended rules to check double invoice in BTE 00001110 in FIBF transaction. Search SDN for more details on it. (It has been answered several times.)
Regards,
SDNer
Similar Messages
-
Duplicate entries getting posted using FB01
Hi All,
I am facing a very strange problem which I have never heard of before.
There is a report program which picks up an input file from the application server and posts the entries. This input file will contain all the details about header record, vendor line items and G/L line items.
The report checks for duplicate entries comparing the reference number and the vendor. It discards the duplicate entries. It does not post duplicate entries.
Now, the input file contains the reference number only once. It also has multiple line items for that refernce. But has posted two identical documents having same reference, company code, etc. The only thing that is different is the document number and the time of entry. There is just a few seconds gap between the posting of the two entries.
Ideally FB01 should also not allow to post such identical entries.
Please suggest possible reasons for such postings.
Thanks & Regards,
NamrataHi,
Manually everything is working fine. Also through this report everything works fine always except for this case which happened.
The input file had a lot of references for posting. But just one got duplicated. So, I was just wondering what could have gone wrong.
Could it be because of some database commit or due to some memory buffer refresh which did not happen by mistake.
I'm just trying to figure out some possible causes for such a thing.
Your inputs and thoughts are welcome.
Thanks & Regards,
Namrata -
Runtime Error when Posting Invoice with text added (MIRO)
Hi Gurus,
We are getting a shortdump (runtime error) when we post certain invoices in MIRO. This happens when we input some text in the text field or add some text to the NOTE tab.
We are having exception ERROR_DP raised in the program c_textedit_control.
If the text field is blank and nothing is writing in the NOTE tab, the invoice gets posted with no problem.
Has anyone come accross this issue before and how did you solve it please.
Thanks.are u processing thru BADI, then it is very easy there are interfaces and methods for handling texts. u sud not get any error and plz never write commit work in BADI.
May be i cud provide more help if u share more details but let me tell more but let me share one recent development that i did.
In ME59n when we do PR TO PO then texdts sud be copied to header text in PO and get reflected in PO. the coding is like below may be can give some clues wid ur MIRO stuff.
METHOD if_ex_me_process_po_cust~process_header.
* Author : Prasenjit Bist *
* ID : PRBIST *
* Date : 04.08.2011 *
* Changes : New Devlopment *
* Change Request: *
* Description: To copy LSP information in PO *
TYPES:
BEGIN OF ty_text,
auto_pr_po TYPE zman_auto_pr_po,
plant TYPE zman_plant,
vendor TYPE zman_vendor,
lsp_vendor TYPE zman_lsp_name,
contract_no_text TYPE zman_contract_no_text,
END OF ty_text.
TYPES:
BEGIN OF ty_address,
ort01 TYPE ort01_gp, " city
ort02 TYPE ort02_gp, " district
pfach TYPE pfach, " PO Box
pstlz TYPE pstlz, " Postal code
region TYPE regio, "Region (State, Province, County)
telf1 TYPE telf1, "1st telephone number
telf2 TYPE telf2, "2nd telephone number
telfx TYPE telfx, "Fax number
land1 TYPE land1,
END OF ty_address.
DATA:
get the header level details
ls_mepoheader TYPE mepoheader,
lt_purchase_order_items TYPE purchase_order_items,
ls_purchase_order_items LIKE LINE OF lt_purchase_order_items,
get the line item details
lt_mepoitem TYPE STANDARD TABLE OF mepoitem,
ls_mepoitem TYPE mepoitem,
lt_textlines TYPE mmpur_t_textlines,
ls_textlines LIKE LINE OF lt_textlines,
TEXT TYPES
lt_texttypes TYPE mmpur_t_texttypes,
ls_texttypes LIKE LINE OF lt_texttypes.
DATA: l_name TYPE thead-tdname,
ls_header TYPE thead,
lt_lines TYPE STANDARD TABLE OF tline,
ls_lines TYPE tline,
l_tdobject TYPE thead-tdobject,
l_metafield TYPE mmpur_metafield.
DATA: ls_text TYPE ty_text,
l_text(50).
DATA: l_continue(1).
DATA: l_pass_vendor TYPE lifnr,
l_pass_plant TYPE werks,
l_name1(35).
fetch the address
DATA: ls_address TYPE ty_address,
l_landx TYPE landx.
CONSTANTS: lc_id TYPE thead-tdid VALUE 'F01',
lc_langu TYPE thead-tdspras VALUE 'E',
lc_object TYPE thead-tdobject VALUE 'EKKO'.
CONSTANTS: lc_set(1) VALUE 'X',
lc_vendor(11) VALUE 'Vendor: ',
lc_lsp_vendor(11) VALUE 'LSP Vendor:',
lc_contract_no_text(14) VALUE 'Contract Text:'.
CLEAR: l_continue.
IF sy-uname EQ 'PRBIST'.
Read the header data
ls_mepoheader = im_header->get_data( ).
read teh item level data.
break prbist.
lt_purchase_order_items = im_header->get_items( ).
LOOP AT lt_purchase_order_items INTO ls_purchase_order_items.
The item attribute of the structure is reference to line item
ls_mepoitem = ls_purchase_order_items-item->get_data( ).
APPEND ls_mepoitem TO lt_mepoitem.
ENDLOOP.
CHECK VENDOR IS THE ONE WE WANT.
SELECT SINGLE name1 FROM lfa1 INTO l_name1 WHERE lifnr = ls_mepoheader-lifnr.
First read the vebdor name based on LIFNR.
TRANSLATE l_name1 TO UPPER CASE.
IF ( l_name1 EQ 'LSP1' ) OR ( l_name1 EQ 'LSP2' ).
LOOP AT lt_mepoitem INTO ls_mepoitem.
TRANSLATE ls_mepoitem-werks TO UPPER CASE.
IF ls_mepoitem-werks EQ 'FI01'.
l_continue = lc_set.
l_pass_vendor = ls_mepoheader-lifnr.
l_pass_plant = ls_mepoitem-werks.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
IF l_continue EQ lc_set AND sy-tcode EQ 'ME21N'.
Call the POP UP screen to display LPS information.
CALL FUNCTION 'ZMAN_LSP_POP_UP'
EXPORTING
im_vendor = l_pass_vendor
im_plant = l_pass_plant
IMPORTING
ex_text = l_text.
GET Text Object (TTXOB)
im_header->if_longtexts_mm~get_textobject(
IMPORTING ex_tdobject = l_tdobject
ex_metafield = l_metafield ).
GET TEXT IDS
im_header->if_longtexts_mm~get_types(
IMPORTING ex_texttypes = lt_texttypes ).
CHECK TEXT TYPE 'F01' EXISTS.
READ TABLE lt_texttypes INTO ls_texttypes WITH KEY tdid = lc_id.
IF sy-subrc EQ 0.
UPDATING ITEM TEXT.
MOVE: l_tdobject TO ls_textlines-tdobject,
ls_texttypes-tdid TO ls_textlines-tdid,
'*' TO ls_textlines-tdformat.
break prbist.
ls_text = l_text.
CONCATENATE l_text ls_texttypes-tdtext INTO ls_textlines-tdline.
CONCATENATE ls_text-vendor
ls_text-plant
ls_text-lsp_vendor
ls_text-contract_no_text
INTO ls_textlines-tdline SEPARATED BY space.
APPEND ls_textlines TO lt_textlines.
INSERT VENDOR
CLEAR ls_textlines-tdline.
CONCATENATE lc_vendor ls_text-vendor INTO ls_textlines-tdline SEPARATED BY space.
APPEND ls_textlines TO lt_textlines.
INSERT LSP VENDOR
CLEAR ls_textlines-tdline.
CONCATENATE lc_lsp_vendor ls_text-lsp_vendor INTO ls_textlines-tdline SEPARATED BY space.
APPEND ls_textlines TO lt_textlines.
INSERT CONTRACT TEXT.
CLEAR ls_textlines-tdline.
CONCATENATE lc_contract_no_text ls_text-contract_no_text INTO ls_textlines-tdline SEPARATED BY space.
APPEND ls_textlines TO lt_textlines.
INSERT A BLANK LINE.
CLEAR ls_textlines-tdline.
APPEND ls_textlines TO lt_textlines.
INSERT addreSS CAPTION.
CLEAR ls_textlines-tdline.
MOVE 'Address:' TO ls_textlines-tdline.
APPEND ls_textlines TO lt_textlines.
break prbist.
READ THE ADDRESS
SELECT SINGLE ort01 " city
ort02 " district
pfach " PO Box
pstlz " Postal code
regio "Region (State, Province, County)
telf1 "1st telephone number
telf2 "2nd telephone number
telfx "Fax number
land1 "COUNTRY
FROM lfa1 INTO ls_address WHERE lifnr = ls_mepoheader-lifnr.
GET COUNTRY
SELECT SINGLE landx FROM t005t INTO l_landx WHERE spras = 'E' AND land1 = ls_address-land1.
INSERT ADDRESS DETAILS.
CLEAR ls_textlines-tdline.
CONCATENATE ls_address-ort01 ls_address-ort01 INTO ls_textlines-tdline SEPARATED BY space.
APPEND ls_textlines TO lt_textlines.
INSERT COUNTRY.
CLEAR ls_textlines-tdline.
MOVE l_landx TO ls_textlines-tdline.
APPEND ls_textlines TO lt_textlines.
TELEPHONE DETAILS
CLEAR ls_textlines-tdline.
CONCATENATE 'Tel:' ls_address-telf1 '/' ls_address-telf2 INTO ls_textlines-tdline.
APPEND ls_textlines TO lt_textlines.
FAX DETAILS.
CLEAR ls_textlines-tdline.
CONCATENATE 'Fax:' ls_address-telfx INTO ls_textlines-tdline.
APPEND ls_textlines TO lt_textlines.
SAVE THE HEADER LONG TEXT.
im_header->if_longtexts_mm~set_text(
EXPORTING im_tdid = ls_texttypes-tdid
im_textlines = lt_textlines ).
ENDIF.
ELSEIF l_continue EQ lc_set AND sy-tcode EQ 'ME59N'.
No need to display POPUP simply read the values and show.
if not
ENDIF. "(l_continue = 'X' and transaction code is ME21N or ME59N)
CLEAR l_continue.
ENDIF. "(sy-uname)
ENDMETHOD.
Edited by: Prasenjit Singh Bist on Aug 14, 2011 10:15 AM
Edited by: Prasenjit Singh Bist on Aug 14, 2011 10:21 AM -
Tcode FV60 with ECC 6.02 does not check duplicate invoices
Hi,
We use FV60 top enter all invoices. We have config (under MM) for duplicate invoice check against company code and "ref field" only. When we enter an invoice with the same ref field value, it gives error message as expected. However, when we change the date, the error message is gone and we are allowed to create the invoice and post the invoice. This is not desireable and behaves very differently than tcode MIRO.
Is there any solution to have tcode FV60 perform the same checks, look to the same config for duplicate invoices in SPRO as MIRO and not allow for invoice creation if the "ref field" is identical?Hi all,
Any solution on this.. Even we have the same kind of issue in our organization. I am also trying various ways. Plz help me if anyone has found the solution for this. If I get something, i will update.
Regards -
Posting the MIRO Document with reference of PO
Hello friends
while user posting the MIRO Document with reference of PO , he is getting difference in balance
Total amount is 31,237.00
Posting amount is 28,320.05
Balance amount is 2,916.95 this balance amount not getting post in MIRO
Before that i have seen GR amount is 28,320.05 but In IR amount same 28,320.05 but withholding tax tab not appering withholding tax amount
Can any body please help me on the same
Regards
sudharshana vamsi
Edited by: asuvamsi on Feb 24, 2010 1:43 PMHello friends
Thanks For all my problem was resloved
Solution is
An message has been occuring like withhold tax has been refreshed. it is just an information message not an error message. this message will trigger when the trans. type is non project type activity. No back end process has been disturbed due to this message. it just passing the information to the user.
we changed the trans. type to manufacturing activity and it is working fine.
I hope it ll help in future
Thanks and Regards
vamsi -
Check for duplicate invoices and trigger a workflow
Hello All,
I have a requirement to check for duplicate invoices in AP(Accounts payable) and trigger a workflow when duplicate invoices are found. I a not sure how to do any of the above. Please let me know if you have any information on:
1) Checking for duplicate invoices in AP
2) Trigger a workflow
Are there any standard workflows that checks duplicate invoices?
Thanks.
--MithunHi MD,
I doubt if system gives an error on FI side when a duplicate invoice is posted.
I feel you would require a BAdi for it, where you can call your WF using FM SAP_WAPI_START_WORKFLOW.
Hope it helps.
Aditya
P.S also ask your Func Consultants, if there are any settings in the Customization, where you could capture Inv Dt, Inv Amt, Vendor, Company code.
Edited by: Aditya Varrier on Oct 15, 2008 9:38 AM -
Implication of Duplicate Invoice check on Batch program
Hello Experts,
I am planning to change the message F5 - 117 in OBA5 for Batch from Warning to error.
What will happen to the batch session when it encounters an duplicate invoice during posting? Please advice on the implications of making this change. Thanks.Hi,
"Duplicate Invoice Check" is marked to avoid FI Invoices and Credit notes entering more than once as this may result in overpayment of supplier.
In batch,even though you have marked it as error,the standard SAP will take it as warning message,so there is no difference even if it's a warning or error message,but ideally it should have been a warning message instead of error message online/batch. -
Event when logistic invoice gets in the sys. through EDI with status cod 03
Hello Gurus,
I am trying to find the event that gets triggered when an incoming EDI logistics invoice gets posted/created in system with status code 3 (error status). I know that I can go to transaction SWELS to find the event using event trace.
The problem is I cannot create such a test scenario manually i.e logistic invoice in the system with status code 03. So I was woneding if someone cal tell me if it would be event
incominginvoice.created or incominginvoice.posted in business object BUS2081 when the logixtics invoice gets crated/posted with status code 03.
Thanks.
Regards,
Rajesh.Hi Rajesh,
The events triggered when an IDOC goes into error are associated with the inbound process code.
Have a look in transaction BD67 for your process code, e.g. INVM under the IDOC section you will see the object and events that are invoked when any error occurs.
Is that what you are after?
Darren -
How to block duplicate invoice posting in MIRO
Hello,
How to block duplicate invoice posting in MIRO?
Regards,Hi Niteen,
In addition to the expert's comment use the note 305201
[https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=305201]
Please check and revert.
Thanks,
Hrishi -
Duplicate Invoice Creation MIRO
Hi All,
Our client has an special requirement. Currently we have an issue with duplicate invoice creation with MIRO transaction. The 'Check doub inv' check box in the vendor master data is already checked. For MM, there are three configurable check boxes i.e. T-Code OMRDC (Co.Cd, Ref. No. and Check Inv. Date.). Per our system configuration, we have the first two boxes checked and the 'Check Inv. Date' unchecked. The Ref. No. field is used to capture the invoice number. This way, if a vendor invoice has already been entered, when trying to enter another vendor invoice with same invoice number, amount, currency, company code and vendor number, irrespective of the date, the system displays a message as "Check if the invoice has already been entered...". As per our requirement, the client basically wants to distinguish between the two invoices purely based on Invoice Number (Reference Number-XBLNR). That is if an invoice has already been entered with a 'Reference Number = 123' for example, the user should not be able to post another invoice with same 'Reference Number = 123', for same vendor, same company code, irrespective of the invoice date and invoice amount. I really appreciate if someone could help me ASAP.
Thank you,
JiteshDear
Please set the following in MM Logistics Invoice Config so that when MIRO/MIR7 is done twice then qty of MIGO exceeds then you get an error message.
T.Code : OMRM
Material Management>Logistics Invoice Verification>Define Attribute of System Messages
In the above node keep message number 504 Quantity invoiced greater than goods receipt quantity and keep online and batch as error and standard as W.
Hope this solves your problem.
Regards -
Duplicate invoice check ( MIRO)
Hi All
I have done all the settings for duplicate invoice check. And I posted an invoice with the following parameters on a limit PO
Company code:ABC
Document date:12.09.2009
Reference:INV1
Currency:USD
Vendor:102221
Amount:20
Now I am trying to post another invoice
Company code:ABC
Document date:12.09.2009
Reference:INV1
Currency:USD
Vendor:102221
Amount:100
Now I am getting duplicate check invoice Error, even though I changed the amount in the second invoice. If I change the reference no or doc date, then system is differentiating it as different invoice and it is not throwing any error. If I just change the amount, then , it is throwing duplicate invoice error. How to fix this problem.
Thanks in advance for looking into thisDouble invoice check for a vendor is possible for:
1. Company Code
2. Invoice Date
3. Referece document
If in config all of these are selected, and if you enter 2 invoices with all same values for above parameters, then system will throw an error.
Amount is not checked for this. -
FV60 and MIRO -duplicate invoice doent chk for diff inv dates
In ecc 6.0 ,We use FV60 and MIRO to enter all invoices. We have config (under MM) for duplicate invoice check against "ref field" only. When we enter an invoice with the same ref field value, it gives error message as expected. However, when we change the date, the error message is gone and we are allowed to create the invoice and post the invoice.
Pls helpHi,
Check your config for duplicate invoices. There is another check box for "Check Invoice Date", see if it is checked. If yes, then remove it and the system should not allow you to post the same invoice with a different date.
Cheers. -
Dear Sapgurus,
I have done this configuration duplicate invoice check option in mm transaction code is OMRDc and in vendor master i choose this option dupliucate invoice check after i was post onevendor invoice document number year is 2009, code 2001 in miro in this one reference field 12, wheir as i am entering one more document in 2010 miro with same invoice reference field 12, system is allowing, because of two different fiscal year, then after same fiscal year 2010 only with same vendor if i will give same invoice reference field 12 system is allowing but i dont want this transaction allow to post please tell me.
Regards
SAPHi,
Go to customizing transaction OBA5 and give the Application Area as F5.
In the next screen Give message number as 117 and make it E for "Online" and "Batch" processing.
Regards,
Gaurav -
MIRO: two invoices were posted with same Reference Number?
Hi all!
Using the MIRO user posted two invoices with the same Reference number without any warning.
Is it normal?
Invoices looks exactly identical, the only difference is "Specl G/L assgt" which one of them has and another doesn't.
Regards.Hi Harish,
I checked:
1) "Duplicate invoice number" : SPRO/Materials Management/Logistics Invoice Verification/Incoming Invoice/Set Check for Duplicate Invoices - set up for Company Code correctly
2) "Duplicate invoice number" setup for Vendor (FK03) (tick is set up)
3) OBMSG M8 108 set up as IE (not 100% sure it's exactly the same message I'm looking for)
Seems everything is fine.
But I posted 2 invoices in MIRO with the same reference - no warning or error.
Any advices? -
User exit for duplicate invoice in MIRO and FV60
HI
i want to find a user exit to findout the duplicate invoice from MIRO, F-47, FV60 (Parked Invoice), MR8M (Credit Memo).
please let me know if you know any user exit for this.
Thanks & regards
NareshHi,
for each transaction code so many user exits are there it is diffecult to pase all the user exits here
check below link and run the program in se38 and give the transaction code you get the user exits for each transaction code.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/find%252bapplication%252bclass%252bwith%252bexits%252band%252bbadis%252bfor%252ba%252btransaction
Regards,
Madhu
Maybe you are looking for
-
Any help on how I can view PDF portfolio in Lumia 720?
-
Hi Friends, When we create an invoice with respect to delivery using standard copy control the partner function thats appear in the header is bill to party and payer. I want the ship to party also to appear in the partner function at header level. Th
-
Purchase order field selection.
Dear All, I have one query. The filed selection for purchase order can be done only for some specific purchase organisations. When I do field selection this field should reflect only for some specific purchase organisations. Thanks in advance. With R
-
Tried to set up iMessage but region comes up in arabic, how do you change it to english
tried to set up iMessage in IOS5 but region comes up in arabic, how do you change it to english
-
Trying to issue simple existsNode & extract queries on a table with 160K XML docs (unstructured) and the performance is an issue. Without an index its 2 minutes with a CTXXPATH index its 2 minutes and even with a function based index with the CTXPATH