cancel
Showing results for 
Search instead for 
Did you mean: 

Contract are not displaying in Source of Supply tab

0 Kudos

Hi All,

Requirement:
Contracts for a product catogory must be displayed in Source of Supply tab.

Process:
1) We created a contract with product category, supplier and released.
2) The contract person is "Awaiting for Approval", We Approved the Contract.
3) When we created a Shopping cart for SERVICE with same supplier and porduct category
4) If we hit the "Source of Supply" tab, the contract which i created must be displayed.

Problem:
Contract are not getting diplayed in shopping cart. Please check the below screen shot.

What i did:
1) I used a BAdi "BBP_SOS_BADI", to populate the contract details.
2) In the Et_found_contract is empty.
3) With the help of FM: BBP_PD_CTR_GETLIST, able to get the contract list.
4) But i am unable to pass the values to ET_Found_contract, because lot of fileds are missing like POS_ID, CTR_HDR_NUMBER etc.

Some other method:
1) Used BBP_PD_INDEX_FIND.
2) I checked the SPRO settings backend system for product category.
3) And i saw many links in SCN, but still not fixed.

Can you please guide me, where i am going wrong.

Help me.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

I fixed the issue myself. Steps which may be helpful for others.

1)Definition Name: BBP_SOS_BADI

2)Method : BBP_SOS_SEARCH

3)Give the POS_ID to  FM BBP_PD_SC_ITEM_GETDETAIL,

4)Give category_id to FM BBP_PD_CTR_GETLIST, you will get e_pdlist[] Contract list.

5)Give guid and object_id  to BBP_PD_CTR_GETDETAIL, get item details e_item_ctr.

6)Fill related fields into et_found_vendorlist.

You can see the Source of Supply tab will get list of contracts with suppliers.

Thanks,

Ravindrakvs.

chetan_b
Active Contributor
0 Kudos

Hi Siva,

We also have same requirement. We tried with BADI BBP_SOS_BADI but its not working. Can you please send code that you have used.

Regards,

Chetan

0 Kudos

Hi Chetan,

Yes its working for me. I completed the requirement. Just go through all the steps mentioned in the above correct ans.

You must fill the et_found_vendorlist, then u can see the supplier over there.

Please let me know what is the issue for you.

Regards,

Ravindra.

Answers (1)

Answers (1)

former_member208675
Active Contributor
0 Kudos

Hi,

You should refer following link:

http://wiki.sdn.sap.com/wiki/display/SRM/Source+of+Supply+redetermination+in+Shopping+Cart

It talks about FM BBP_PD_SOS_FIND to determine source of supply.

I hope it helps.

Regards,

0 Kudos

Hi,

Thanks for reply.

1) If we use this FM BBP_PD_SOS_FIND, the BADI "BBP_SOS_BADI" will trigger again. it will be an infinite loop.

2) I already saw the link, but no difference.

Can you help me, which tables this contracts will be stored for particular product category.

Any other was to solve the issue.