cancel
Showing results for 
Search instead for 
Did you mean: 

how to write a routine to get Consolidated Invoice

Former Member
0 Kudos

Hi Experts

I have senario where user wants to have the Consolidated invoice to a list of Sold parties. During invoice combining the System checks for Header Data. Here it finds the Region Code different for the deliveries having different Ship to Parties. This is standard setting as per SAP

But here In order to combine these deliveries in Invoice we have to write new routine. This routine will clear Region Code of Ship to Party and allow combining of deliveries in single Invoice

please advise where to write this rouitine ?Is it in the copying controls

Please advise hoew to fulfill this change

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

First, check SAP Note 11162 - Invoice split criteria in billing document, it will help you

After, to learn to do VOFM, look for in google a document called Inside VOFM, it's a PDF file.

Regards,

Eduardo

Answers (2)

Answers (2)

Jelena
Active Contributor
0 Kudos

Not sure what country are you in, but the invoices may be separated by Region for a reason. E.g. in the US every state has a different sales tax rate. If deliveries to different states are forced into one invoice, the tax rate may not be calculated correctly.

We had great success with creating "consolidated invoices" simply on paper by using a custom Smart Form. In SAP we actually had separate invoices but for the customer's convenience we produced a piece of paper that looked like an invoice and included all the documents for Sold-to party within certain date range. It was much easier than trying to get the invoices to combine exactly as the customer wanted.

Former Member
0 Kudos

Thanks for valuable advises

Thanks

Thambaiah

Former Member
0 Kudos

Hi there,

1st check if your business scnario is order related or delivery related billing. Check in the item catg billing relevance field. You will now it. Only then yu will be able to know the relevant copy control. If order related billing, then you have to write a routine in VTFA, if delivery related then in VTFL. In either case you will write at Data VBRK/VBRP.

By default, standard SAP allows invoice combination as long as the header data is same. If you dont want to consider region code, then bypass that. Explain the requirement to the ABAPer.

Regards,

Sivanand