cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message for the cancellation of paid billing document

Former Member
0 Kudos

Hi,

Can i create and error message for the cancellation of paid billing document? If yes, how can i create such.

Overview:

Accounting document is created upon creation of billing document. Upon payment, document cleared is the accounting document created. There are instances wherein accounting document was already cleared but our user is still able to reversed billing document. Now, i want to create an error message or user exist wherein, when a user will not be able to reverse the billing document if the accounting document attached to this billing document is already paid.

Thank you and best regards.

Rachelle

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

Yes very well through standard itself, you can address this issue.

Apply Routine 29 for the field Copying Requirements at header level in VTFL

Also Go to VOFA, select your billing type and assign routine 29 to the field "Copying Requirements"

This should solve your problem.

thanks

G. Lakshmipathi

Former Member
0 Kudos

Hi Mr. G,

Thank you. My problem has already been resolved.

Best regards,

Rachelle

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rachel,

You can make use of the exit (Include) MV45AFZZ. The corresponding form routine is FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

.

In this exit, For the given billing document ( which is going to be cancelled ), pick up the accouting document from BSEG tables.

For this accouting document, Pass this to BSAD Table ( Customer clleared items)

If BSEG-BELNR = BSAD-BELNR and

BSEG-Acc.Year = BSAD-Acc,year )..

Then throw a error message and EXIT.

So for all the cleared docments , user can not cancel the invoices.

Regards,

Sai

Former Member
0 Kudos

Hi Rachel,

Try with the billing user exits RV60AFZZ , RV60AFZ1 or RV60AFZD to achieve this.

Regards

Subbu