cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fetch Price Row based on custom attribute

Former Member
0 Likes
951

Hi Experts,

I am trying to implement a business case where price rows for a product are fetched on the basis of an enum called pricingCode that is added to the PriceRow itemtype as an attribute. I looked through some solutions and the general consensus is to implement the PDTRowsQueryBuilder interface, and then use it in a class that extends Europe1PriceFactory. The issue here is that the pricingCode is not set in a session; it is received through a CSV via Hot folder, so I do not see the purpose of using a custom Europe1PriceFactory. Is there another way to achieve this? If no, then what steps do I need to follow to set up this custom pricing implementation?

Thanks and Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

nothing limits you to either change the query build or implement the same filtering as in https://answers.sap.com/comments/12830682/view.html in the custom price engine. I assume priceCode filtering criteria will be part of context execution (you can always make it). Customizing the price engine is logical for this requirement, as you do it in one place instead of checking all places where prices might be fetched .