Skip to Content
-1

Avoid splitting sold to party

Jan 26 at 09:29 AM

79

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:

VTFA:

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

DATA: BEGIN OF zuk,
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,

María

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
1

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.

0

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

0

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..

0

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.

1

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!

0
Jelena Perfiljeva
Jan 26 at 10:10 PM
1

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.

0