Currently, i have used an implementation of the BADI BBP_DOC_CHECK_BADI and this implementation should trigger for Shopping Cart only. The problem is that it is also being triggered foir the Template. I am planning on setting up a flag in which if the flag is populated, it will skip the codes of the implementation (meaning the Template triggerred the implementation.) Else, it will continue with the logic of the implementation (meaning the SC triggered the implementation).
How can i know if the Shopping Cart or Shopping Cart Template is callign the BADI implementation?
Thanks in advance.