cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Message no. F5151 (FI-AR)

Former Member
0 Likes
1,231

Hi expert,

I am trying to cancel an invoice with MR8M tcode (I am posting in the previous year 2019), the system shows this error message « Message no. F5151 : Incorrect doc.no.: $ 2. Select document number between 5100000000 and 5199999999 »

I searched the forum and could not find help with this issue and I checked the number range for 2019 and 2020.

I used the ST05 tcode to see the program and i found the following select statement :

SELECT WHERE "CLIENT" = '310' AND "OBJECT" = 'RF_BELEG' AND "SUBOBJECT" = '0030' AND "NRRANGENR" = '51' AND "TOYEAR" >= '2020'

The year should be 2019 since i have tried to post the cancel in 2019 and not 2020??

PS : we are using the SAP S 4/HANA 1709

Is there any way to resolve the problem

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

JonathanEemans
Active Contributor
0 Likes

Hi Sabrine,

If you click the Display Document button in transaction MR8M, does it show the document?
If not, the MM document number, which you have entered, is not correct.
You can find the MM document number for example via transaction MIR5 which allows you to display MM documents according to various selection criteria such as user, creation date, creation time,...

Best regards,
Jonathan Eemans

Former Member
0 Likes

Hi Jonathan,

Yes, when I click on "Display Document" the system shows the invoice that i want to cancel.

JonathanEemans
Active Contributor
0 Likes

Hi,
Please check document type on the details tab of the MM document and afterwards check number range is defined correctly in FI and set as internal numbering for this document type.

IMG Path document types in FI: Financial Accounting (New)\ Financial Accounting Global Settings (New)\Document\Document Types\Define Document Type for Entry View

Transaction code to check number ranges in FI: FBN1

Best regards,
Jonathan Eemans

Former Member
0 Likes

Hi Jonathan,

Thank you very much for your replies.

Number ranges is defined, I found this note " 2863510" , it can help me.

Unfortunately, we have another problem in snote, I will try to implement it after resolving the problem with the snote.

Ask a Question