cancel
Showing results for 
Search instead for 
Did you mean: 

No CallSapAdapter module

Former Member
0 Kudos

Hi Gurus,

I get a lot of files in an ftp folder which I need to process very quickly. But with some big files and few modules in the CC this takes too much time and I get timeouts.

So I developed a module to be used in a new CC were it will get the files and dispatch them into different local folders. Up to there all is good.

Now I want to track which files I picked and drop. I am able to write into Audit log but as there is no module "CallSapAdapter" then there is no record on "Message Display Tool"

Question: How can I write into Message Display Tool without calling "CallSapAdapter"

Thanks in advance for you time and patience.

Luis.

Edited by: Luis Diaz on Nov 23, 2010 10:31 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Stefan,

Thanks for your response.

I tried what you mentioned but I still don't see the entries.

Let me explain a little further.

I am using PI 7.0 and I use just one module prepared by myself in a Sender CC of type File

FileDispatcher

In this module I use these statements to write log:

  private AuditMessageKey amk;
  amk = new AuditMessageKey(msg.getMessageId(), AuditDirection.OUTBOUND);
  Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "FileDispatcher started");
...
...
...
Audit.flushAuditLogEntries(amk); //Based on your suggestion.
Audit.addAuditLogEntry(amk, AuditLogStatus.WARNING, "After flushAuditLogEntries.");
return inputModuleData; 

But I still don't see any entry in:

http://host:50000/MessagingSystem/monitor/monitor.jsp

This is the place where I want my log. Cause in the CC is not persistent.

I hope there is a way to flush it there.

Thanks for your help.

Luis.

stefan_grube
Active Contributor
0 Kudos

You could look into the source code of the sample adapter.

Maybe there is something useful in there.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/87/3ef4403ae3db12e10000000a155106/frameset.htm

RKothari
Contributor
0 Kudos

Hi,

I am using adapter module is able to see the values in the message servlet link mentioned by you.

However, I just noticed one difference i.e. I am using MessageKey instead of AuditMessageKey as mentioned by you.

MessageKey messageKey = null;

messageKey = new MessageKey(message.getMessageId(), message.getMessageDirection());

You can try this option.

-Rahul

stefan_grube
Active Contributor
0 Kudos

> MessageKey messageKey = null;

> messageKey = new MessageKey(message.getMessageId(), message.getMessageDirection());

This is PI 7.1 code and not valid for PI 7.0

Former Member
0 Kudos

Hi Rahul,

Do you use the module CallSapAdapter at the end?

Cause if I use that module I am able to see my log in MDT (Message Display Tool - http://host:50000/MessagingSystem/monitor/auditlog.jsp)

Thanks for your help anyway.

Luis.

RKothari
Contributor
0 Kudos

Hi,

Yes, I am using CallSapAdapter at the end.

-Rahul