cancel
Showing results for 
Search instead for 
Did you mean: 

User exit in VF01 to stop billing doc creation

Former Member
0 Kudos

Hi friends,

We have a scenario of delivery based billing where at the time of invoice creation we need to check if letter of credit is used and if the invoice creation is being done after the last shipping date in the LC then we need to stop the billing document creation.

Can anyone please guide if there is any user exit that can be used for this purpose in VF01.

Thanks and regards,

Saji

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Saji,

You can use Copy controls to meet your requirement.Take Abaper help.

Create the copy requirement in VOFM And assign that copy requirement in the VTFL.(Delivery to billing copy control).

AND

You can set a posting block in billing document which stops the accounting document creation.

If you want user exits Please find the below link for user exits

http://help.sap.com/saphelp_40b/helpdata/en/18/f62c7dd435d1118b3f0060b03ca329/content.htm

Thanks

Dasaradha

marcin_milczynski
Contributor
0 Kudos

Hi,

You should use copying control requirement for this purpose - crerate a new billing requiremen routine in VOFM and assign it in customizing of the relevant delivery type and billiong document type (t.code VTFL). In the requirement you can issue the error message properly and the transaction will not be terminated even if you run billing in VF04 or using a background job. Using user-exit for this purpose can lead to situation of failed background jobc etx, so I would not recommend it.

Regards,

Marcin

Lakshmipathi
Active Contributor
0 Kudos

You can try with USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)

G. Lakshmipathi