cancel
Showing results for 
Search instead for 
Did you mean: 

Document XXXXX saved (error in account determination) Message no. VF051 .

dineshs
Explorer
0 Kudos
5,727

Hi GURU's,

We unable to generate accounting document error coming "

Document 2033020322 saved (error in account determination)

Message no. VF051"

Points checked so far.

1. 'Checked Acc determination analysis but no error.'

2. Checked VKOA , here we see the GL is mapped correctly. Hence FI consultant are suggesting for a ABAP debug.

3. We checked "SNote Note 113512 - VF051 "Doc. & saved (error in accnt determination)" also but this was not helping in resolving this issue.

4. We checked the Account assignment Group in Customer master and Billing document number . Checked the Material account assignment group and billing document assignment grp was also correct here.

5. We checked VOFA also for any posting block but there was no check.

6. We are debugging and trying to Find the Issue in Function module "RV_INVOICE_DOCUMENT_ADD"

Accepted Solutions (0)

Answers (2)

Answers (2)

VeselinaPeykova
Active Contributor
0 Kudos

If I understood you correctly, you have a SD invoice where you had no problems generating a FI posting, but for the cancellation via VF11 you encounter an error.

  • Did you import any changes to SD or FI configuration related to account determination between the time of creation of the original invoice and the cancellation? What about custom development and SAP notes? Normally this is the first thing that I would do - check for transport requests (or you can simply ask your colleagues). If there were relevant changes imported in the system - analyze what was done, it is usually a good practice to eliminate code or configuration changes as a potential root cause before you start debugging.
  • Are you able to reproduce the case in a test system or you only have a single invoice in the productive environment? This is quite important, because if you cannot recreate the example in a test system, you should be very careful with debugging accounting document creation in PRD.
  • I am not sure what guide you use to troubleshoot the problem, which is why I would recommend How to analyze the creation of the accounting document from SD billing. In it they mention a very useful report - SAPFACC1. Did you already try it? What you could do is first run it for the original invoice and check the interface data, then run it for the cancellation document and compare the information against what is available for the original billing. I guess that it will be a lot easier to obtain approval to use this report compared to debugging in PRD. And the added benefit is that to understand the outcome of SAPFACC1 you do not need a developer, only a SD and FI consultant.
  • You did not mention what was the outcome of the debugging. This is an important information. Yes, it is clear that the problem is somewhere in RV_INVOICE_DOCUMENT_ADD, this FM is triggered when you release an SD document to accounting, this is where I would place a breakpoint if I have absolutely no idea where to start looking.

If you are the person who is supposed to perform the debugging:

I would strongly recommend to read and follow this excellent guide: General Information About SD-FI Interface.

If you are a developer - ask a FI consultant to help you out with the process! Speaking from personal experience - it is a lot easier to troubleshoot the SD-FI interface if you have a FI consultant who understands what values are expected in certain fields and in which cases.

I would resort to debugging the SD-FI interface only if I cannot find the root cause by checking the configuration, via SAPFACC1 and by looking for custom code in the exits mentioned in General Information About SD-FI Interface.

sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

I see from your screen shots that you are doing a cancellation of an invoice. You have specified the billing type as S3. Can you check if the original billing invoice was released to accounting or not? if the original is not released to accounting, the cancellation should not as well else the balances on GL would be incorrect.

Thanks & Regards

Sanil Bhandari

dineshs
Explorer
0 Kudos

Hi Sanil Bhandari,

Thanks for your reply,

We have created the accounting document for Original Invoice. But for cancel Invoice the accounting document is not generating.

sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

Please check if the below OSS note is relevant for you

https://launchpad.support.sap.com/#/notes/2474536

Also check the other OSS notes mentioned as well in the note

Thanks & regards

Sanil Bhandari