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: 

Which BADI can I use to add delivery automatically during invoice creation?

Former Member
0 Kudos

Dear all,

before I explain the problem we have I will briefly explain my company's flow:

In the same invoice document we are invoicing outbound delivery and inbound delivery (inbound DN has goods provided to customer with the outbound DN but customer has rejected), both have same payer and same sales order as origin (return sales order is created with reference to it). Therefore we have positive and negative positions in the invoice.

In billing due list when both documents (outbound DN and inbound DN) are selected, both deliveries are being combined into one invoice and all is working fine. By doing so customer receives just one invoice with the correct total amount.

Now we want to ensure that even if user forgets to select the inbound delivery (related to return) when the outbound DN is selected to be invoiced in VF01 or VF04 system (via userexit/BADI/whatever) adds automatically the inbound DN (if it exists and it has not been selected) in the invoice that is being created. Is it possible? I have seen BADI_SD_BILLING but it´s for internal use... any ideas? We are in SAP ECC 6.0.

Thanks in advance,

Raquel

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In VF04 (not valid for VF01) you have the enhancement V60P0001.

In the user exit EXIT_SAPLV60P_010 you can delete or add new sales documents or deliveries for the billing due list.

Regards,

Pepe

5 REPLIES 5

agnihotro_sinha2
Active Contributor
0 Kudos

hi,

Have you gone through all available BADIs for VF01 or VF04??

Before invoice creation there are some BADIs

BADI_SD_SALES_BASIC

BADI_SD_BILLING.

ags.

0 Kudos

BADI_SD_BILLING is for internal use

BADI_SD_SALES_BASIC is for sales but not for billing

Any other ideas?

Raquel

Former Member
0 Kudos

Hi,

you can check

BADI_SD_SALES_BASIC

BADI_SD_BILLING.

Former Member
0 Kudos

Hi,

In VF04 (not valid for VF01) you have the enhancement V60P0001.

In the user exit EXIT_SAPLV60P_010 you can delete or add new sales documents or deliveries for the billing due list.

Regards,

Pepe

0 Kudos

Gracias Pepe!

I have checked and I think it's going to work with the userexit you adviced me.

Raquel