cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase group assignment based on plant

rajesh_r11
Participant
0 Kudos

Hi,

I have an IDOC that has information on WBS for which a program in SRM has to create purchase order,

The program fetches company code, plant based on WBS element from backend system,

Now I need to know the logic to determine purchase group and delivery address based on plant,

In Org.structure we have assigned unique plant as responsible for each purchase group and Delivery address is assigned as default in plant attributes.

So my query is how to get purchase group and delivery address value based on plant

please provide your inputs

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

vinita_kasliwal
Active Contributor
0 Kudos

Hi Rajesh

First the tree hierarchy from the user position is taken.

  1. From the hierarchy, the Purchasing Org, Purchasing Group and Company is filtered.
  2. Find the Purchasing Groups which are responsible for the selected /filtered Purchasing Org and Company.
  3. Out of these Purchasing Groups find out which has Product categories for the specified backend system.

Delivery address is generally picked from attributes ADDR_SHIPT based on the User attribute

In some system the plant which is maintained in the extended attribute also decided the delivery address .

Refer link below :

Purchasing Group and Purchasing Organization determination - Supplier Relationship Management - SCN ...

Regards

Vinita

rajesh_r11
Participant
0 Kudos

Hi Vinita,

Thanks for your response,

I have the below logic, my query is how to get this values in program to be determined.Need input on tables,

1) Purchase group org. ID based on plant

2) Delivery address based on plant

3) Buyers based on purchase group

Thanks

Rajesh Rajagopal

vinita_kasliwal
Active Contributor
0 Kudos

Hi Rajesh

1. I am not sure on this one and I dont even understand the need for this one  I am not sure on how the plant is related to Pur grp in SRM .

2.  Once the use select a storage location the Doc_Change Log will call the ECC to get the address info and populate accordingly under Delivery address tab..

If you wish to pass the delivery address only in certain cases, then the BADIs BBP_PO_CREATE_BACK / BBP_CREATE_BE_PO_NEW or BBP_PREQ_CREATE_BACK / BBP_CREATE_BE_RQ_NEW should be implemented to clear the delivery address value based on the business logic. Once this is done, ECC plant address will be used.  

         

There is no consulting notes for POs. Therefore, you should implement BBP_PO_CREATE_BACK / BBP_CREATE_BE_PO_NEW and delete the delivery address content in order to get the ECC plant address assigned to ECC PO.

3. Buyer and Purchasing Gro relatioship:FM BBP_OM_STRUC_GET_PUSR_FROM_PGP

Refer links below :

http://scn.sap.com/thread/1789312

http://wiki.scn.sap.com/wiki/display/SRM/Shopping+Cart+Delivery+Address+transfer+from+SRM+to+ECC

http://wiki.scn.sap.com/wiki/display/SRM/Creation+of+Shipping+Address+in+SRM+7.0?original_fqdn=wiki....

Regards

Vinita