cancel
Showing results for 
Search instead for 
Did you mean: 

how to determine the purchasing group using BADI BBP_PGRP_FIND

Former Member
0 Kudos

Hello Friends

We use SRM Server 5.5 (Classic scenario).

As you know that, purchasing group has the responsible product categories in PPOMA_BBP, when user creates the shopping cart to determine the purchasing group.

In our case, we should determine the purchasing group using other criteria.

MM side is OK to determine the purchasing group using specific criteria.

Because Material Master has the purch. Group information.

In case of SRM, we should develop the logic using BBP_PGRP_FIND BADI.

But I’m not sure how to use this badi.

We want to determine the purchasing group based on the following logic.

If described shopping cart without product ID

Do Standard purchasing group determination logic.

Else

Assign the purch group from MARC- EKGRP (Purchasing Group)

Is it possible to determine above the logic?

If yes, Could you give me some information?

Thank you,

Best regards,

SH

Message was edited by:

So Hee Lee

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

You can check for BBPS_RESP_ITEM_DATA_BADI-PRODUCT NE initial, then create a custom function module(RFC enabled in SRM) whcih will fetch the required Pur group from r/3.

The BADI BBP_PGRP_FIND is used to overwrite the settings from the Org structure or when you want to assign multiple Purchasing groups in SRM.

BR,

Disha.

PLs reward points for useful answers.

Former Member
0 Kudos

Thank you for your answer.

I found the way to develop the our logic using BADI: bbp_pgrp_find.

But I’m not sure the following logic is correct.

To differentiate described req. or product id req, We check the E_ITEM – PRODUCT using BBP_PD_SC_GETDETAIL.

IF E_ITEM – PRODUCT is blank, Read the category ID to find the purchasing group.

To find the purch. Group, we can use FM: BBP_OM_DETERMINE_RESP_PGRP.

Import parameter: IS_RESP_ITEM_DATA – Category _ID

Export parameter: ES_PURCH_DATA

ELSE

CALL the customer function to read the R/3 purchasing group from MARC- EKGRP

Search the HRT5500-TABNR using purchasing group from R/3.

Search the HRP5500 – OBJID using HRT5500-TABNR

Call the FM: BBP_OM_DETERMINE_RESP_PGRP

Import parameter: IS_RESP_ITEM_DATA – PROC_GROUP – OBJID

Export parameter: ES_PURCH_DATA

Thank you

Best Regards

SH