cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a contract from a material code?

Former Member
0 Kudos

Hi all,

Do you know how to get the contract number if you have the material code? Is there any function module that can do this? something like "CTR_GET_FROM_MATERIAL"?

Best regards,

Gerardo.

PS. Reward points for answers.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gerardo,

in SRM, you can use function BBP_PD_CTR_GETLIST with parameter I_ITEM_PRODUCT (for product GUID) or I_ITEM_ORDERED_PROD (for product ID).

you can also use the sourcing function BBP_PD_SOS_FIND, with IT_SEARCH_CRITERIA-ORDERED_PROD.

Rgds

Christophe

PS: please reward points for helpfull answers

Former Member
0 Kudos

Christophe,

Thanks a lot for the tip, it works ok, and just to acknowledge the Source of supplying - BBP_PD_SOS_FIND - use the following parameters:

- product.

- ordered_prod

- category

- category_id

- proc_org

It returns the contracts (in my case) and then you can do the BBP_PD_CTR_GETDETAIL with the CTR-GUID.

Best regards,

Gerardo.

Answers (0)