Hello,
i try to find a way to get SC instance and user context inside SRM UI Add-On.
Indeed, for OData request done with keys which do not have OBJECT_ID and NUMBER_INT (this is the case for all Entity Type from UTIL service),
there is no way to get Shopping Cart instance:
- neither with /SAPSRM/CL_PDO_FACTORY_SC_ADV class as we do not have header guid,
- nor with /SRMNXP/CL_INTL_PDO_SC class as GET_OBJECT_ID_FROM_BUFFER method does not return Shopping Cart number...
Furthermore, it is not possible to get user context through /SAPSRM/CL_PDO_FACTORY_USER class...
Does anybody have an idea to get those data?
Regards.
Laurent.