cancel
Showing results for 
Search instead for 
Did you mean: 

Customers from different sales area

0 Kudos

I'm trying to copy a sales document for a specific customer, lets say customer #1 with a sales area 1200/10/40 to a customer #2 with a sales are of 1000/10/10.

When I create the document and change the customer to #2 I get the error saying "Sold-to party 10000014 not maintained for sales area 1200 10 40".

Is there any configuration that allows me to have this scenario?

I already change the copy routine 2 to a 902, but the error persists. My requisit is to be able to copy documents for customers with different areas.

Thanks in advance

Lakshmipathi
Active Contributor
0 Kudos

You already got a right direction from maximiliano.isoba

Accepted Solutions (0)

Answers (1)

Answers (1)

maximiliano_isoba
Contributor

Hi,

I think there are no answers yet because it is not clear the question and scenario.

What do you refer by "copying documents"?

Are you creating a new SO in reference to an existing one and then changing the Sold-to-Party?

The error is clear: Sales Area persist at header level of the sales order, so that customer must be extended for the pertinent Sales Area. However, it may not correspond to extend customers to sales areas carelessly.

Depending on the requirement you could use pre-sales documents like contracts or use the items proposal functionality.

Regards,

Max Isoba.

0 Kudos

No solution for this?

0 Kudos

Hello Max,

Let me try to be more specific then:

I have a sales order created to a customer that belongs to the sales area 1200/10/40(#1). The same material can be sold to a customer that is in sales area 1000/10/10 (#2). I'm working with LO-VC, so in order to facilitate the creation of configurations the user copies the item from previous SO and alters characteristics.

I tried to create a new SO with the sales area from customer #2 and create a new line directly in the document, but i get a similar error and the item is not copied.

Not sure if I was able to specify more clearly what i pretend, hope i did.

maximiliano_isoba
Contributor

Hi,

If you are referencing a document you should not have different sales areas for those documents involved. This will lead to error V2-012, you can read about it here: https://launchpad.support.sap.com/#/notes/0002519598 .

The error "Sold-to party * not maintained for sales area 1200 10 40" is because the customer is not extended to the sales area of the document. By extending the customer to the sales area (by VD01 or BP transaction depending on your system in which you are working) you will not get the error. However, probably it is incorrect to extend the customer to the sales area because for some business reason the customer is not extended yet.

If you create a SO for a sales area the customer is already extended. you should not get the same error.

I am curious about what is the "similar error" you get. You might be referring to another or a related error. Please check Item Division and Check Division configurations in T-CODE VOV8 for your document type if that's the case.

Lastly, I mentioned contracts and the items proposal because I understand that the reason you are copying the SO is to avoid entering manually n(many) items which could lead to errors or take a considerable amount of time.

Regards,

Max Isoba.

0 Kudos

So what I infer from your answer is that if customers have different sales areas I cant referenciate documents? I always have to extend them to the original sales area from wich the copy is being made?

In my case the customer will not have same sales area.

In my example i tried to create a new sales order with customer #2 and add the item with reference to sales order from customer #1, I get the error "Sold-to party * not maintained for sales area 1200 10 10". I presume in the copy, the system checks the item division from previous document. Either way, I'm not able to make the copy.

Items proposal is not valid, since they are configurable materials and we are not able to configure via VA51.

maximiliano_isoba
Contributor
0 Kudos

I was checking the copy control routine.

I assume 902 is a copy of 002 with custom Z-code added.

Please try to skip this validation of the routine by debug - or with the help of an Abapper - and see if this works for you:

IF HVBAK-SPART NE VBAK-SPART.
MESSAGE E012 WITH HVBAK-SPART VBAK-SPART.

ENDIF.

Regards,

0 Kudos

I already deleted validations of sales organization, distribuiton channel and division.

Can I manipulate the item copy routine not to copy division from original document? I think that would be the easy way to solve my problem.

Or I just have to say that they can't copy with reference and do it manually?

Lakshmipathi
Active Contributor

When you post a query and give further updates, please add the content under "Comments" and not under "Answer" as you were not answering to a query but only providing additional informations as asked by the members. Also, when you add the text under Comments, it will be intimated to the person to whom you are responding whereas, if you add the text under Answer, the member will not be intimated. By the way, your above answer has been converted as comment by me.

maximiliano_isoba
Contributor
0 Kudos

It would be hard to tell. If you can define a logic and all the process works for you, then it's ok.

Just make sure you and your teams make proper testing and try to condition your logic so that you do not have unwanted consequences in other scenarios. You may want to work with an Abapper.

You may want to think options do not include reference too to offer as a solution. Thinking out loud: you can have a Z program that takes as input a customer and a SO number and then creates a SO for the customer given and materials of the document provided. I am not saying this IS the solution as I think nobody here could tell since nobody knows the business.