Using Activity Reporting Service with KM APIs
Symptom
When the KM API is used to manage documents in KM folders, there is incomplete trace information written by SAP Portal application to the SAP Activity Data Collector (ADC) log files, for the ADC OpCodes which return information about the portal request (see http://help.sap.com/saphelp_nw70/helpdata/en/47/8ab49e1b141e1ee10000000a42189d/content.htm)
Reason and Prerequisites
Reason:
The portal request (IPortalComponentRequest, see
http://help.sap.com/javadocs/NW04S/current/ep/com/sapportals/por tal/prt/component/IPortalComponentRequest.html) is not set in the
PortalComponentRequestCache. The class is used to store the portal request for the current user, when the user navigates in the KM.
Prerequisite:
You must have access to portal request.
Solution
In order to log the ADC OpCodes in the custom application set the IPortalComponentRequest to the class PortalComponentRequestCache(PortalComponentRequestCache.setPortalComponentRequest(request)), the class can be find in the jar: bc.util.private_api.jar, package:com.sapportals.wcm.util.pcr.