cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_WF_LIST to fire on conditon

Former Member
0 Kudos

Hi.

We are using SRM 7.1 - the Badi BBP_WF_LIST is being used to filter the carts in SoCo based on some custom logic. however we want the custom filtering to trigger only for the 1st time when the list gets displayed. i.e. at the very 1st time when the buyer comes in the Sourcing transaction. Every other time when the buyer uses the "Search" button or enters some fields in any of the selection criteria for the SoCo, we dont want this filtering logic of the BAdi to fire.

Can this be achieved?

Thanks.

Anuradha SenGupta.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

If getting the context/user event is not possible - You could probably create a static class and a static variable in this static class. First time when BADI is called set it to X which can be checked the next time. As it is static it retains the value.

Rgds,

Prasanna

laurent_burtaire
Active Contributor
0 Kudos

Hello,

Get current action...

First, get transaction context. Then, get instance from context and finally get current action (equivalent to sy-ucomm).

Now, you can use this action as a filter to trigger or not the BAdI implementation.

Regards.

Laurent.

Former Member
0 Kudos

Hello Laurent.

Do you have any sample code as to how to read the current context and action performed?

Thanks.

Anuradha.

jason_boggans
Active Contributor
0 Kudos

Moved to General thread as not strictly Shopping cart or Catalog Related.

Jason Boggans

SAP SRM Moderator