cancel
Showing results for 
Search instead for 
Did you mean: 

Backend checks and modifications in Fiori apps

laurent_burtaire
Active Contributor
0 Kudos

Hi all,

i have a question regarding the way to manage inside a Fiori App existing backend checks and modifications done through BAdI or enhancements.

For example, in SRM transactional Fiori App such as "My Shopping Cart", during mini cart creation,update, check and change BAdI are not called: they are triggered only when you order your SC.

So, what is the best practice in this case? Do we code same logic in the OData model or not?

Thank you for any pointers you could have.

Regards.

Laurent.

Accepted Solutions (1)

Accepted Solutions (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

BAdI calls are done only when Shopping Cart PDO instance is created.

This instance is created when you "transfer" mini-cart items to "real" SRM Shopping Cart by clicking onto cart icon, in the right top corner.

So, before this action, no BAdI are called.

For the SRM UI Add-On, as catalog call can be done, BBP_CAT_CALL_ENRICH and BBP_CATALOG_TRANSFER BAdI are called:

i- during catalog call for the first BAdI,

ii- during item transfer from catalog to mini-cart, then, a second time from mini cart to review cart as explained in SAP note 1891371 - BBP_CATALOG_TRANSFER BAdI behaviour is SRM UI Add-On 1.0

Regards.

Laurent.

Answers (0)