cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign supplier automatically in a shopping cart?

alonso_valenzue
Participant
0 Kudos

Hi Gurus,

When I have only one option of source of supply in an item of shopping cart, I want select it automatically without clicking in "Sources of Supply / Service Agents" tab and pressing "Assign Supplier" button.

How can I assign the supplier automatically?

The system is:

Component software: SRM_SERVER

Release: 700

Level: 0008

Support package: SAPKIBKV08

Thanks in advance and best regards,

Alonso Valenzuela

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

     We use for any modification on Shopping cart data at run time, we use BBP_DOC_CHANGE_BADI Badi in SRM system. Keep debugger in BADI implimentation and see data of Internal table VALUE( IT_PARTNER ). We will able to see partner function number 00000019 ( Supplier). U can assign any supplier by modifing that record. Please let me know if you dont understand properly. Thnx

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

If there is only one sos available, system should assign it automatically.

If this is not heppening in your system, implement note 1516847.

Regards,

Ricardo

alonso_valenzue
Participant
0 Kudos

Hi Ricardo,

Thanks a lot for the information.

If I have 2 or more options, can I assign the supplier automatically through a badi or enhancement or another choice where I can apply a desired business logic?

Thanks in advance and best regards,

Alonso Valenzuela

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

If you have more than one supplier, you should select it manually.

Perhaps using BBP_DOC_CHANGE_BADI and updating the partner table with only one entry of partner function 19 (deleting the other supplier), you will be able to reach this behaviour that you want.

Regards,

Ricardo