cancel
Showing results for 
Search instead for 
Did you mean: 

User exit during VF04 background process

Former Member
0 Kudos

Hi ,

I am creating billing through the background run of VF04.

Before a billing document is created I have to check the following condition.

If the payment terms of the relevant billing item not equal to 'X' then system shoudl check the billing date and only create billing document if the date is equal to system date.

If the payment terms is equal to 'X' then billing document should be created.

I am plannign to use the userexit RV60AFZC and in there

FORM USEREXIT_FILL_VBRK_VBRP

I tried to find out of this user exit was called during background processing of VF04 by putting ina breakpoint. It did not give any pop-up.During creation of billing through VF01 it gave me the breakpoint.

I want to know if for my requirement this is the right place to put the logic.

Regards

BGS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Since the tcode VF04 was run in background mode, it wouldn't give you a pop-up.

VF04 & VF01 are sharing the same user exit, if your logic in user exit RV60AFZC is working fine with VF01, then it would applied to VF04 too.

cheers,

Former Member
0 Kudos

Thanks ED.

Do you think the user exit is right in case i want to check conditions before creating billign document.

Regards

BgS

Former Member
0 Kudos

Hello,

The user exit is fine and would give you the data required

hope this helps

Thanks

akasha

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

Break-point in background doesn't work.

Regards,

Eduardo

Former Member
0 Kudos

Hi ,

We had to change the logic and the user exit because it was not possible to pull the item level data into the VF04 screen.

We are trying to do the following with variant which looks for all billing items due in next 5 working days

Before system gets data from VKDFS into VKDFIF we are trying to aplly the logic

If Payment terms <> direct debit the include in the list VKDFIF

If Payment terms <> direct debit

Check IF Billing date <= system date

Yes -include in VKDFIF

No- Remove entry

When I call the variant in try to display the billing due list It shows the correct value

But when we run the same variant in backgorund it fails

BADI used

Include LV60AA93

Badi badi_sd_billing methode:vbrk_vbrp_fill

CALL METHOD l_sd_billing_item_exit->vbrk_vbrp_fill

Any help wpuld be appreciated

Former Member
0 Kudos

Hi Sinha,

My View is, if there case is to stop invoice creation conditionally.

Instead of writing code in any userexit, better if you write code in the copy requirement

routine in Copy Control. this is my view.

Based on your Order type/Delivery Type and the Billing type. you can choose the routine

and write the same simple code there.

However this is only my view.

Thanks