Purch Group not defaulting for company code-cross company purchasing
I have tried different things to default the Purch Group corresponding to the company code chosen in the shopping cart to be dfaulted but this has not worked.
Please help me with this issue.
SAP SRM classic scenario- User has two positions one assigned to CC - C1 having Purch Org - PORG1 assigned with Purch Group PG1.
another assigned to CC-C2 , Purch Org - PORG2 with Purch Group PG2.
The Org responsibility tab for the purch group is maintained as below.
PG1 --> C1 and PG2 --> C2.
Here both the purch groups are responsible for common set of Product categories, hence the FM "BBP_OM_FIND_SC" is not giving me proper results based on the Category id since both are responsible for all the categories.
In the BADI - BBP_PGRP_FIND there is not item details available for me to check which company code user has chosen.(if user changes company code).
In the BBP_DOC_CHANGE_BADI i have the BE_CO_CODE entered in the SC, using this how can i read the corresponding Purch group?