cancel
Showing results for 
Search instead for 
Did you mean: 

Prevention of a previous billing date in invoice creation

PedroMariano
Participant
0 Kudos

Hi Gurus,

Does anyone know if is it possible, by customizing or user exit, to prevent in VF01 the introduction of a previous billing date, compared to the billing date of the other invoices created for a specific sales organization?

Best Regards,

Pedro Mariano

Accepted Solutions (1)

Accepted Solutions (1)

jignesh_mehta3
Active Contributor
0 Kudos

Hello,

In SAP Standard you can do it as below:

ToCT-Code VTFL - select the Delivery & Invoice Types & go to Item Details. Select the required Item Category & under Data VBRK/VBRP isert Routine no. 011 - Bill. date= Today

But the above will apply to Item Caegory & Billing Type. There is no check for Sales Area.

Thus for your requirement you will have to apply a User Exit.

We have done something similar by inserting a ABAP code in Program: RV60AFZZ

The code is as follows:

IF VBRK-FKDAT < LIKP-WADAT_IST.

MESSAGE E001(ZSD5).

ENDIF.

It check the PGI date & Billing date, in your case you can insert a code to check the Current date (system date) & the Billing date & give a error message.

Thanks,

Jignesh Mehta

Answers (0)