cancel
Showing results for 
Search instead for 
Did you mean: 

SRM alert for changes in shopping cart

Former Member
0 Kudos

Hi,

We have a requirement to create a shopping cart automatically upon receiving a trigger and the necessary purchase information from an external system and then send an update to the external system when the preferred vendor updates the price in the shopping cart or whenever there's a status update (approved, error, etc.).

I wonder whether there's a way to set an alert that will automatically inform the external system that there's an update in the shopping cart.

There's a BADi called BBP_ALERTING. Can this BADi be used to achieve our goal ? If not, how can we achieve this goal ?

Thanks,

Lara

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi. If you want to trigger the update yourself from a BADI when certain data is changed then BBP_DOC_CHANGE_BADI is called every time data is changed and contains the latest data.

You can use it to check when certain fields are filled in then send the data to the external system.

If you want to make sure that the data is only triggered once you could create custom fields to store a flag when you first send an update to make sure that you do not send it again. You can use the BBP_CUF_BADI to hide the custom fields from the user but you can still amend the data in them from BBP_DOC_CHANGE_BADI.

This way when you first inform the external system that the vendor has been added you can store an X in a custom field. The code to send to the external system can check 'If vendor is not blank and custom field is blank then send to external system and update custom field to X'.

Regards,

Dave.

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Following Alert evnets are avialable for SC.

APPROVAL_PROCESS_DOC_APPROVED

APPROVAL_PROCESS_DOC_DELETED

APPROVAL_PROCESS_DOC_REJECTED

APPROVAL_PROCESS_DOC_UPDATED

ERROR_OCURRED

HELD

ORDERED

RMS_EVENT

SOCO_COMPLETE

SOCO_FAILED

WF_APPR_LATEST_END

WF_APPR_LATEST_START

WF_APPR_REQUESTED_END

WF_APPR_REQUESTED_START

WF_COMPL_LATEST_END

WF_COMPL_LATEST_START

WF_COMPL_REQUESTED_END

WF_COMPL_REQUESTED_START

WF_LATEST_END

WF_LATEST_START

WF_REQUESTED_END

WF_REQUESTED_START

Regards,

Masa