04-30-2009 8:38 AM
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
04-30-2009 9:31 AM
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
04-30-2009 8:46 AM
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.
04-30-2009 8:58 AM
BADI_SD_BILLING is for internal use
BADI_SD_SALES_BASIC is for sales but not for billing
Any other ideas?
Raquel
04-30-2009 8:51 AM
04-30-2009 9:31 AM
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
04-30-2009 1:20 PM
Gracias Pepe!
I have checked and I think it's going to work with the userexit you adviced me.
Raquel