cancel
Showing results for 
Search instead for 
Did you mean: 

Purchasing group sequence and defaults

Former Member
0 Kudos

Folks

We are in SRM 50 and was wondering if anyone has tinkered with the sequence of purchasing groups for a buyer, while creating a shopping cart ? If so, how?

To explain, when the buyer logs in and he/she is responsible for say 4 purchasing groups, the system seems to be sorting purchasing groups based on the organization ID and it assigns the first purchasing group as default (It used to be the last one in the order in EBP 30, before we upgraded). Even this has exceptions at times. How is the sort sequence of the purchasing group determined/controlled?

Any insights would be appreciated.

Suresh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Welcome to the world of SRM. )

Actually, it depends on the Organizational chart maintained in the SRM system using PPOMA_BBP transaction. For each company code in SRM, there will be at least one Puchase organization assigned to it, which in turn might be linked with several Purchase groups. (this is what you have maintained in PPOMA_BBP , inside the Extended Attributes section of the main root node of the Organization )

- Well it depends .. sometimes, you might maintain the attributes at every level of the org units.

Anyways, I will try to help you out on the Defaulting Purchasing group logic as well.

Well, until, SRM 4.0, we have noticed, purchasing groups based on the organization ID and it assigns the first purchasing group as default. It is sure.

After SRM 5.0, this purchasing group defaulting is changed to last, as in your case... ( I am not sure.. about this), might be some other reason can be behind this...

Which SRM scenario are you using ?

<u>You can control the Puchasing group by implementing the BADIs.. The Standard SRM system provides various BADIs to get this job done.</u>

Please do read the standard documentation available with them, before writing any code for the custom BADI Implementations.

Refer to the following Business Add-Ins (BADIs) in SE18 Transaction.

<b>BBP_DOC_CHANGE_BADI

BBP_PGRP_FIND_BADI</b>

<u>In BBP_DOC_CHANGE_BADI, you can change the already defined Purchasing group, based on your business logic and requirements.</u>

In BBP_DOC_CHECK_BADI, you can issue customer error messages incase the Purchasing group selected does not match with the company code, etc.. as per you business requirements.

Similarly, In BBP_PGRP_FIND_BADI, you can make your changes accordingly.

Let me know incase you face any issues.

Regards

- Atul

Former Member
0 Kudos

Suresh-

We have done actions change the assignment, so we get the desired group set on the items. Implement BADI BBP_PGRP_FIND to control the purchase group assignment in the manner you want to use and don't depend on the SAP assignment. However once you implement this BADI the standard determination is bypassed, however you may find it useful to call the SAP function to get the proposed groups and then alter the results as required. The standard funciton is bbp_om_determine_resp_pgrp.

The badi can then influence which is selected and limit the options you show.

Regards-

b