cancel
Showing results for 
Search instead for 
Did you mean: 

Partner Determination Override

rahul_vishwakarma2
Contributor
0 Kudos

Hi Friends,

The requirement is as follow, there are 2 separate Z- Partner Function, one should work default with Sales Document type OR and other should come default with other sales document type SO.

I have done this configuration as per requirement, but now the client required is that, the first partner function which comes default in sales document type OR, which should be override with the other.

Ex:

Sales Document Type : OR which has default partner function ZA and SO which has default partner function ZB.

But when i create a sales oder with SO document type, the ZB is come defult, but it should be override with ZA.

Configuration done by me:

Customer:

Create 2 partner function.

Assign these partner function to customer account group

Sales Document Header:

Assign this 2 separate partner function to there respective sales document type.

Customer Master:

Assign both partner function in customer master.

So could help me in this..

Thanks in advance

Regards,

Kundan

Accepted Solutions (0)

Answers (8)

Answers (8)

phanikumar_v3
Active Contributor
0 Kudos

Please tell us the Exit you used--if possible the Coding and logic you written..

Phanikumar

rahul_vishwakarma2
Contributor
0 Kudos

Hi Gents,

The problem is resolved, we have done the through User Exit.

Thanks for your support !!!!

Solution: We have maintained the both the forwarding agent in the Sales document partner function and also in the customer master data.

Through User Exit, we had override it .....

Regards,

Kundan

former_member182378
Active Contributor
0 Kudos

kundan,

But when i create a sales oder with SO document type, the ZB is come defult, but it should be override with ZA.

If for all orders, with document type SO; business wants ZA; then better to change the configuration in partner determination. Remove the partner function ZB from the procedure assigned to SO.

If not required / applicable in all cases, then ask business to clear specify the cases in which ZA should override and in which case not. This input from business is very important.

phanikumar_v3
Active Contributor
0 Kudos

what do you mean by Override?

What is X partner function and What is Y partner function??why client wants by default?

Please furnish more details..

Phanikumar

rahul_vishwakarma2
Contributor
0 Kudos

Hi Friend,

Please understand my requirement,

There are two Z - Partner Function "X" and "Y".

Both are setup in customer master as follow, not marked as mandatory as well as not modifiable.

If sales order type is "TA", then "X" partner function should come default not the "Y" one and If Sales Order type is "SO", then "Y" partner function should come default not the "X" one.

Till this it is working fine. because the "X" partner function is setup for Order type TA and "Y" is setup for order type "SO" in customization t-code: VOPAN.

If i am using the Sales order type "TA", then "X" partner function should come auto default, but it can be override with partner function "Y", which is not possible, because if we are maintaining both the partner function in sale type "TA" , then both partner function come default which business don't required.

So is there any way to come out from this.....

Thanks in advance

Regards,

Kundan

Former Member
0 Kudos

Hi Kundan,

Based on your requirement, I believe that you have to make available both the X & Y partner functions in both the order types "TA" and "SO". Otherwise you cannot replace the partner X by Y and vice versa in the sales order types TA and SO (since the partner function needs to be defined for the sales order type and only then can it be used).

By the above configuration both the partners will be selected in the sales order. It will then be the responsibility of the user to decide which partner is required and then delete the other. For your requirement make these partner functions as not mandatory and then create a logic in the SAVE_DOCUMENT_PREPARE form and check XVBPA table to see if both the partners are available. If yes, then either display an error or create an incompletion log and do not save the document. Only when one of these two partner functions are present in the sales order it should be allowed to save. This acts as check for the user to align the partner data as required during order creation/modification.

If this manual check solution is not acceptable then I guess (as TW Typewriter has already mentioned) you'll have to check with the business and then identify the cases where the partner override should happen and then write a code logic before document save to automatically delete the partner which is not required.

Regards,

Som


Lakshmipathi
Active Contributor
0 Kudos
But when i create a sales oder with SO document type, the ZB is come defult, but it should be override with ZA.

As long as you have not created any subsequent document, you can very well change to ZA.  Of course, you need to assign this partner function to both the document types.  Avoid going for an enhancement for this type of requirement. 

G. Lakshmipathi

rahul_vishwakarma2
Contributor
0 Kudos

Hi Lakshmipathi,

But Client requires, default should be come one, but it should be override if needed, then how it should be possible?

Thanks in advance.

Regards,

Kundan

Former Member
0 Kudos

Hi Kundan,

As Lakshmipathi said, unless you have not created any Subsequent Document you can change the Default partner function to other Partner function in the Sales Order provided you have assigned both these Partner function to that Order type.

Make sure you have not marked the default Partner function as Mandatory and Not Modifiable in Partner Determination Procedure. This might give you problem.

Regards,

Rianka

tuan_manh
Participant
0 Kudos

Hi Kundan,


But when i create a sales oder with SO document type, the ZB is come defult, but it should be override with ZA.

I think you need clear your requirement. "It should be override with ZA" mean system delete ZB and insert ZA automatically or users do manually?

Manh Tuan

Former Member
0 Kudos

Hi Kundan,

What do you mean overriding ZB with ZA (Changing partner function manually in sales order)?

Please reply so that i can help you.

Regards

Ashok Reddy

rahul_vishwakarma2
Contributor
0 Kudos

Hi Ashok,

Yes !!! In Sales Order it should be override with other Z-partner Function.

Thanks in advance.

Regards,

Kundan

siva_vasireddy2
Active Contributor
0 Kudos

Hi,

How are the Mandatory settings for the Partner Functions you have made