cancel
Showing results for 
Search instead for 
Did you mean: 

XI adapter module

Former Member
0 Kudos

Hi,

I've done a adapter module and I want to use it in a communication channel, I want to know how can I write a log file to disk in the java code or to write something that I can see in the component monitoring.

Can someone help me please?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

use audit logs;

You must write at least one audit log AuditLogStatus.SUCCESS or AuditLogStatus.ERROR in the adapter or the adapter services of the Adapter Framework for each message.

http://help.sap.com/saphelp_nw04/helpdata/EN/a6/66e540aa827e7fe10000000a1550b0/frameset.htm

Former Member
0 Kudos

If I write the statement in java it ends with the error "invalid expression". Can you help me to find out how to use it?

I try to write log also with the class Logger but it don't write anything...

jyothi_anagani
Active Contributor
0 Kudos

Hi ,

Write The Auditlog as shown below...

AuditMessageKey amk;

if (msg.getMessageDirection()== MessageDirection.INBOUND)

     amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);

else

     amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.OUTBOUND);

Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Sample Audit Log Message.");

For more help Please refer the WIKI.....

http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns

I this WIKI I have used Auditlog..

Thanks.

Former Member
0 Kudos

where I can read the log at the end of the execution?

Shabarish_Nair
Active Contributor
0 Kudos

you can see it in the;

1. Communication channel logs for that particular adapter (open the message id link)

2. RWB -> message monitoring -> adapter engine monitoring.

jyothi_anagani
Active Contributor
0 Kudos

Hi,

You can see this log in

RunTimeWorkBench(RWB) --> Communication Channel Monitoring --> MessageID(Auditlog)..

Thanks.

Answers (1)

Answers (1)

Former Member
0 Kudos

go through this -

[http://help.sap.com/saphelp_nwpi711/helpdata/en/3b/6fe540b1278631e10000000a1550b0/frameset.htm]