cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Adapter

Former Member
0 Kudos

Hi All,

i want to know how can we raise the exception in custom adapter or how can we see the processing log in rwb.

Thanks

Kunaal

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Kindly see this

[http://help.sap.com/saphelp_nw04/helpdata/en/e9/61e1407e858031e10000000a1550b0/frameset.htm]

also see example adapter module and example module

VijayKonam
Active Contributor
0 Kudos

You can use the adapter/module logging api. Refer to http://help.sap.com/javadocs/pi/SP3/xpi/index.html

VJ

0 Kudos

Hi,

if u want to get the trace information to your module, we need to create a file in the name of "log-configuration.xml", the way to create the above file is new u2192 META-INF/log-configuration.xml.

sample code for the file is:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">

<log-configuration>

<log-formatters>

<!-- This formatter produces human readable messages. -->

<log-formatter

name="trc"

pattern="%26d %150l [%t] %10s: %m"

type="TraceFormatter"/>

</log-formatters>

<log-destinations>

<!-- Destination for Trace Information of this sample -->

<log-destination

count="5"

effective-severity="DEBUG"

limit="2000000"

name="sample.trc"

pattern="./log/applications/sample/default.trc"

type="FileLog">

<formatter-ref

name="trc"/>

</log-destination>

</log-destinations>

<log-controllers>

<!-- Trace Location sample -->

<log-controller

effective-severity="DEBUG"

name="sample">

<associated-destinations>

<destination-ref

association-type="LOG"

name="sample.trc"/>

</associated-destinations>

</log-controller>

<!-- Logging Category: none, use the default XILog -->

</log-controllers>

</log-configuration>

Regards

Venkat