01-10-2014 4:00 PM
I need to modify the creation time of a VF11 transaction which is Cancel Billing Document.
I know there is a user exit for the billing side called USEREXIT_FILL_VBRK_VBRP where I can specify the values I want for ERDAT and ERZET. When I modify the UserExit, it works great when an Invoice is created via VF01. However, it does not not work when entering a VF11.
Is there a seperate UserExit for VBRK entries that are created with VF11?
Is there another way that I can accomplish my goal of specifying those two fields when entering a VF11 transaction?
01-13-2014 7:55 PM
The correct answer was to go into program RV60AFZC and then go to USEREXIT_NUMBER_RANGE_INV_DATE
In order to keep this from happening for every billing transaction I filitered it with
IF sy-tcode = 'VF11'.
<enter my code here>
ENDIF.
Then the code worked for VF11 as I wanted it to. The other one called USEREXIT_FILL_VBRK_VBRP won't work for VF11 because it is only called when an invoice is initially created, not when you do a cancellation.
01-13-2014 7:55 PM
The correct answer was to go into program RV60AFZC and then go to USEREXIT_NUMBER_RANGE_INV_DATE
In order to keep this from happening for every billing transaction I filitered it with
IF sy-tcode = 'VF11'.
<enter my code here>
ENDIF.
Then the code worked for VF11 as I wanted it to. The other one called USEREXIT_FILL_VBRK_VBRP won't work for VF11 because it is only called when an invoice is initially created, not when you do a cancellation.