cancel
Showing results for 
Search instead for 
Did you mean: 

Custom adapter development PI 7.4/PI7.5 - issues with Audit logging

Former Member
0 Kudos

Hello,

We are migrating from PI 7.0 to PI 7.4/PI 7.5 (the final decision is still up in the air). We have a few custom adapter modules that need to be migrated. I have read the very useful blog at

My NWDS version says "SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.3 SP17 PAT0008"

I have added XPI Adapter Libraries, XPI Mapping Libraries (for good measure) and also external jar com.sap.aii.af.lib.mod.jar to the Build Path though the blog only talks about adding XPI Adapter Libraries

However NWDS gives me errors with the following statement ("Audit cannot be resolved")

  Audit.addAuditLogEntry(msgKey, AuditLogStatus.SUCCESS, "filename is: " + fileName);

I added the following imports but NWDS still says it cannot resolve Audit

import com.sap.engine.interfaces.messaging.api.auditlog.*;

import com.sap.tc.logging.*;

import com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;

I tried to add the following import but NWDS cannot find the import. I also could not find any jars corresponding to this on our single stack 7.4 PI server

import com.sap.aii.af.service.auditlog.Audit; 

What do I need to start logging messages to the adapter logs ?

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sorry, this is actually explained at the blog itself -

I somehow overlooked it and missed a few statements !

Thanks