cancel
Showing results for 
Search instead for 
Did you mean: 

XML payload search in Xi messages

Former Member
0 Kudos

Hi All,

I need to get the XML pay load for a message which contains a specific value for a specific field. Also I need to get the XML message ID of this message. Is there any option available in Xi for this purpose?

Thanks in advance..

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

if you want to get messageid use my blog:

/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi

accessing Technical Context Objects

if you have a BPM use my other blog:

/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm

Regards,

michal

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In mapping use streamtransformation constants to access adapter-message specific attributes.

The follwoing is the sample code...

use it as a reference.

Accessing the File Adapter Adapter-Specific Attribute “FileName”

DynamicConfiguration conf = (DynamicConfiguration) container

.getTransformationParameters()

.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create(

“http://sap.com/xi/XI/System/File”,

“FileName”);

String valueOld = conf.get(key);

if (valueOld != null) {

String valueNew = valueOld.replaceAll(“input”,”output”);

conf.put(key, valueNew);

}

urs

sreeni

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

sure it is but you need to use trex search engine for that

http://help.sap.com/saphelp_nw04/helpdata/en/43/6030fae92f5f87e10000000a1553f6/content.htm

once you configure trex you will

be able to search for XML payload from RWB

(runtime workbench of XI)

this is the first - fast way

there are also some non standard ways

but these are pretty slow and if you have many messages

they will not be very efficient in use:

/people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Thanks Michal

MichalKrawczyk
Active Contributor
0 Kudos

no problem Jaison

Regards,

michal