Skip to Content

Avoid splitting sold to party

Jan 26 at 09:29 AM


avatar image

Hi experts,

The user needs to be able to créate invoice from sales orders with different sold-to-party. After checking in SCN that's what I did:


VOFM -> Data transfer -> Billing documents -> routine 911.

modul(3) VALUE '911',
vkorg LIKE vbak-vkorg,
vtweg LIKE vbak-vtweg,
kunnr LIKE vbak-kunnr, " new field for split
END OF zuk.

vbrk-kunag = vbrk-kunrg.

But it's not working, I get error "Split due to different partner data"

Is there any way to do this requirement?

Thanks in advance,


pfwyn.png (19.7 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Jürgen L
Jan 26 at 10:01 AM

How can 1 sales order have 2 or more sold-to's ?

The sold-to is the main partner in the header of the sales order, it is the customer for whom you create the sales order.

Assuming you could have 2 sold-to's in one sales order, if you avoid splitting, how would the postman bring 1 invoice to 2 sold-to's?

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Hi Jurgen,

I meant one sold-to per sales order but different sold-to between sales orders.

For example,

SO1, sold-to S1

SO2, sold-to S2

The user wants to group this 2 sales orders in one invoice.


this does not make more sense. Still the question, what would the postman do?


I don't know Jurgen, I'm the abapper, I just want to know if what the user needs is posible to do or not, I'm not asking if it makes sense..


There should be a functional consultant between you and the user who is able to tell the user that this does not make sense. And even you should be able to think how you can get 2 addresses into one address field in your invoice form.


There is already a functional consultant, this one asked me to find a solution for the client's requirement. He will tell the user there's no possibility to do what he asked. Thanks for your answers!

Jelena Perfiljeva
Jan 26 at 10:10 PM

What you found is how to split an invoice. You can't force combination of documents when they're not eligible to be combined. There is even SAP Note that explains this functionality.

Essentially, VBRK-KUNAG is fed from the respective field in VBAK. How could we stuff two different values there? It's not feasible. And we should not play a "switcheroo" with the customer number between the documents either. The reasons are too many to list here, the top one being it's illegal.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Jelena, the consultant is going to tell the user it's not possible to do what he is demanding. Thanks for your answer.