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: 

VF11..User Exits...Updating VBRK...

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

1 REPLY 1

Former Member
0 Kudos

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.