cancel
Showing results for 
Search instead for 
Did you mean: 

Cancellation doc. is not released to accounts. New billing doc. should not be created

former_member241391
Discoverer
0 Kudos

Hi All,

Posting this question after searching through the forums and not finding any relevant threads.

There is a requirement from the client wherein:

A billing document was created with reference to a delivery document and was posted to accounts automatically. Due to some reasons, this billing document was cancelled. This created a cancellation document but it was not automatically released to accounts (posting block is set in customizing for the cancellation billing type).

Now, the new requirement from the client is that, the system should not allow the creation of new billing document (reference to delivery document) using VF01/VF04 transactions if the cancellation document of the previous billing document is not released to accounts (which is the case here).

Is there any customizing setting/SAP Note for this? If not, can anyone guide with the custom development here?

Warm Regards,

Laxmy

Accepted Solutions (1)

Accepted Solutions (1)

jignesh_mehta3
Active Contributor
0 Kudos

Hello,

This is not possible with SAP Standard settings. You will have to go for a Custom development which will check for document flow and necessary status before allowing to create a New Invoice.

However, one question still remains, why is Cancellation Invoice relevant for posting block. I would assume Cancellation Invoice should reverse the Original Invoice account entry and there is nothing else to check...

Thanks,

Jignesh

Answers (3)

Answers (3)

former_member184701
Active Contributor

you need 100% to understand a process, but not just to change a config or use a custom abap to satisfy your customer.

ejm2
Discoverer
0 Kudos
Take a look at OSS Note OSS 1340373 Update of billing date in document flow (3) 
Symptom
In the results analysis using method 14 or 15, you receive amounts for work in
process, even though these amounts were already invoiced by billing documents.
Cancellation billing documents are not taken into account.
Other Terms
DP90, DP91, DP95, KKA*, KKAJ, KKAI, performance, FKDAT, billing date
FKART_AB
Reason and Prerequisites
For the results determination, you want the billing date of the last invoice
document in the document flow chain in the structure EBCOS(CO/SD interface:
invoiced billing request item) to be transferred.
SAP Note 888056 tried to correct a sequence problem. As a result, a cancellation
invoice may not be able to be posted to accounting. However, a new billing
document can be created. In this case, the "older" cancellation billing document
date overwrites the "newer" billing date in the structure EBCOS if the
cancellation was posted to accounting after the subsequent billing document.
To achieve the required sequence, when the billing document is created, the
system checks whether there is a cancellation invoice for the order item that
has not yet been posted to accounting. In this case, the new invoice cannot be
created and the system issues error message ZF 227. Invoicing cannot be carried
out until the relevant cancellation invoice has been posted to accounting.

phanikumar_v3
Active Contributor
0 Kudos

****Now, the new requirement from the client is that, the system should not allow the creation of new billing document (reference to delivery document) using VF01/VF04 transactions if the cancellation document of the previous billing document is not released to accounts (which is the case here)*****

Normally standard system will check whether the billing was created or not-But it will never check the Status of accounting(which we can be done after billing)

Here your Requirement-we can divide in Two ways:

1.Bill was created-released to accounting-Cleared at Accounting-then user is trying to cancel this bill-You can restrict this with Copying routine 29 at VOFA for your cancellation billing type..

2.Bill was created-Not released to accounting-But at this movement User cancelled-This Cancelled document is not released to accounting due to some reasons..(like Posting block etc.)-So at this junction-if user tries VF01 again-System will allow you to create one more new billing due to this delivery visibility in VKDFS Table-if you want restrict this try with Exit RV60AFZZ by validating the subsequent document accounting status...

Phanikumar

former_member241391
Discoverer
0 Kudos

Dear Phani,

Thank you for the response. I am mainly looking at scenario-2 mentioned by you. Will get the user exit checked.\

Regards,

Laxmy