Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SD Partner Determination

Former Member
0 Kudos

What would be best way to restrict partner function while creating sales order?

For e.g.. If there are multiple contact person, I would like to restrict this to one.

Any hint or suggestion would be highly appreciated!

Thanks, Loga

3 REPLIES 3

Former Member
0 Kudos

Hi Loga,

I am not sure if I understood your problem correctly. Are you creating a sales order through a program or are you referring to a regular user using VA01? If it is through a program, I am sure you can always enter whatever partners you want to as long as the configuration supports it.

If you want to restrict the user using VA01 or if you leave it to the system to determine the partners in your program, then you need to help from the functional person. There is a whole section dealing with partner determination in SPRO. Here you can tell the system whether a given partner function comes only once or if it can come more than once.

Please let me know if you cannot find where in SPRO, this setting is at.

Regards,

Srinivas

0 Kudos

Hi Srinivas,

Thanks for the info. I'm using a custom BAPI program to create Credit Memo. The system I'm working is 4.0(no surprise!), the partners I pass in the BAPI are ignored and the system pulls the partners from the customer master.

My initial approach was to implement user exit in the sales order include program(MV45AFZB) to restrict partners, which is working fine. I Just want to find out if there were any other approach (programmatically) to the issue.

Thanks again!

Loga

0 Kudos

Hi Loga,

If it is a custom BAPI, then I don't see why the system is ignoring the partners that you are passing. Is it possible to look at this custom code and see if everything you pass is handed over to some SAP create process finally.

How is the credit memo created within this custom BAPI? Is it through a call transaction no display mode or is it calling a SAP function module?

What I would suggest is going through debugging by putting a breakpoint at the point where the call is made to a standard SAP. See if your partners are passed all the way to that point and if they are handed over to the standard SAP. Also check if the handing over to SAP is done in the correct way such that the partners you sent are not ignored.

Please share some details of the code of this custom BAPI.

Regards,

Srinivas