Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

User-exit to check invoice data (VF01/VF04)

Former Member
0 Kudos

Hi!

I'm using USEREXIT_NUMBER_RANGE_INV_DATE in RV60AFZC to check invoice data and generate an error message. Unfortunately this error message generate a gaps document number because a COMMIT WORK occurs before this user-exit. How and where I can set this check and error message during invoice saving?

I know that exsist RV60AFZZ but it work in the same mode. Do you know if exsist a form like user_exit_prepare_save_document like sales order or delivery?

Thanks,

Gianluca

2 REPLIES 2

Former Member
0 Kudos

Hi Simeone,

Check 'BADI_SD_BILLING'. You can check invoice data before posting using this badi.

This badi is called inside function module 'RV_INVOICE_DOCUMENT_ADD'.

Hope this will help you to solve your problem.

Cheers,

Nilesh

0 Kudos

Hi Nilesh.

I know this BADI but if I try to implement it the system stop me because it can use only for SAP internal use.

Do you know how I can sblock it?

Thanks,

Gianluca