Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error message in MIRO

Former Member
0 Likes
3,275

Hi Masters of MIRO,

I have REQUIRMENT where i have to display an ERROR message.

currently IF company code, Ref NO & Inv Date alreday exists it issues an error message.

Check if invoice already entered under accounting doc. no. 5100000010 2011

Message no. M8108

now i want add another field called AMOUNT to Company code, Ref NO & Inv Date

IF 4 OF THEM exists THEN only an ERROR message should COME.

how can i achieve this...is their any USEREXIT or BADI where by we can enhance.

much appriciated in advance.

thank you,

pasala.

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,503

Hi,

Wheneven you post a PO based invoice an accounting document gets created. We have implemented the similar case using FI validation. In FI vaklidation during creation of accounting document we have implemented this duplicate sort of invoice check and this is working perfectly.

Thanks

Nabheet

Hi Masters of MIRO,

I have REQUIRMENT where i have to display an ERROR message.

currently IF company code, Ref NO & Inv Date alreday exists it issues an error message.

Check if invoice already entered under accounting doc. no. 5100000010 2011

Message no. M8108

now i want add another field called AMOUNT to Company code, Ref NO & Inv Date

IF 4 OF THEM exists THEN only an ERROR message should COME.

how can i achieve this...is their any USEREXIT or BADI where by we can enhance.

much appriciated in advance.

thank you,

pasala.

14 REPLIES 14
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,504

Hi,

Wheneven you post a PO based invoice an accounting document gets created. We have implemented the similar case using FI validation. In FI vaklidation during creation of accounting document we have implemented this duplicate sort of invoice check and this is working perfectly.

Thanks

Nabheet

Read only

0 Likes
2,503

hi Nabheet,

Thank you for the reply,

am a ABAP developer and the message that we get is in MIRO.My concern is...is it Developers work or Functional work?

if Developer work...how can i achieve this.... the message is been issued by SAP and it is not the Customized Message.

can i have some response pls?

thank you,

laya.

Read only

0 Likes
2,503

See sometimes what happen not all the things are achieved by customization...and sometime its becoz of less functinal knowledge. what i will sugeest is first ask your functional guy if he has any option if not then implement the alidation you are done.

I hope it clarifies your question.

you have the solution.:)

Nabheet

Read only

0 Likes
2,503

hi Nabheet,

the SAP message issues me when i dont set the amount in amount field... it looks only INVOICE DATE, REFERENCE AND COMPANYCODE.

i want the message when INVOICE DATE, REFERENCE, COMPANYCODE and AMOUNT are identical then i wan the message.

now eventhough the amount is not identical i still get the message....but do we have the control of the SAP messages?

do we? please correct me if am wrong.

laya.

Read only

0 Likes
2,503

Hi,

In customizing if it allows you to enter amount also thenits okie otherwise you can create validation where you can compare n number of fields you want to compare.

@Fucntional:Please provide your inputs on how many fields can be added for same.

Nabheet

Read only

0 Likes
2,503

hi Nabheet

CURRENT :

i go to miro TCODE and set the INVOICE DATE, COMPANYCODE and REFRENCE NO...

SAP ISSUES A MESSAGE :

Check if invoice already entered under accounting doc. no. 5100000010 2011

NEW REQ :

IF INVOICE DATE, COMPANYCODE , REFRENCE NO and AMOUNT are identical then only the message should come

message : Check if invoice already entered under accounting doc. no. 5100000010 2011.

hope am clear in what i say....

how ever their is no custmizing and the message come straight from SAP.

Thank you,

laya.

Read only

0 Likes
2,503

I guess a BTE is there for duplicate invoice check which is activated in your case.Pleae put a break point at messages and you will see fromwhere this mesage comemost probably through BTE.

Nabheet

Read only

0 Likes
2,503

Hi

Ok now I've understood what u need

The problem is SAP standard check the duplicated invoice for Company Code, doc. date and doc. reference so just as your actual situation; if it's not set the control for reference, then SAP will use the amount.

That means standard control doesn't use Company code, Document Date, Reference and Amount together.

In the FM MRM_FI_DOCUMENT_CHECK is called the BTE for Argentin only, that any BTE is available there

Moreover the problem is your control is more selective than SAP one, that mean u should deactive the standard control and insert a your own one.

U can try to use the BTE for invoice checking as 00001020, 00001025 or 00001060

But it could be very dangerous to deactive in standard control, so u should consider to change (or enhance) the standard function module MRM_FI_DOCUMENT_CHECK

Max

Read only

0 Likes
2,503

Hi Max,

thanks a lot for the reply..with lot of info much appriciated.

to be honest i have never used BTE'S can i please have some more info as to how to use the BTE for this perticular issue?

thanks,

laya.

Read only

0 Likes
2,503

Hi

See the [help|http://help.sap.com/saphelp_nw04/helpdata/en/3b/7f3e8be57c11d1951f0000e82dec10/frameset.htm]

Max

Read only

Former Member
0 Likes
2,503

Hi

Probably u need to set your customizing correclty only: Materials Management->Logistic Invoice Verification->Incoming Invoice->Set check for duplicate Invoices

Max

Edited by: max bianchi on Nov 2, 2010 2:57 PM

Read only

0 Likes
2,503

hi Max,

from your explanation it may be Functionals work i think...can you be little more clearer please?

thank you,

laya.

Read only

0 Likes
2,503

Hi,

In customization also I guess you will be having the restriction on the number of fields where as via enhancement it will not. Max please correct me if i am wrong..

Nabheet

Read only

Former Member
0 Likes
2,503

thank you all