cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime constants - UserName ?

Former Member
0 Kudos

Hi,

My scenario is HTTP - XI - PROXY(ECC).

I would like to capture user id of the person who posted the data using HTTP post to XI.

I could see this user id in SXMB_MONI as below. But, <b>I do not know how to capture/read this user id into mapping</b> using technical context objects or dynamic access configuration since there is no context object to access this field.

- <SAP:RunTime xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:Date>20071017</SAP:Date>

<SAP:Time>102604</SAP:Time>

<SAP:Host>uspls247</SAP:Host>

<SAP:SystemId>XS1</SAP:SystemId>

<SAP:SystemNr>08</SAP:SystemNr>

<SAP:OS>SunOS</SAP:OS>

<SAP:DB>ORACLE</SAP:DB>

<SAP:Language />

<SAP:ProcStatus>003</SAP:ProcStatus>

<SAP:AdapterStatus>000</SAP:AdapterStatus>

<b> <SAP:User>SM903673</SAP:User></b>

<SAP:TraceLevel>3</SAP:TraceLevel>

I have looked at the following help in SAP Library and blogs which did not help.

http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm

/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping

/message/686478#686478 [original link is broken]

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

Thank you in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Gurus, Can anyone help with this ?

Thanks,

mk

Former Member
0 Kudos

Hi Mallik,

Your problem is quite common, and the solutions are several, mostly crappy tricks.

Since you can not access to the data out of the payload, it's impossible get the data in the mapping, so the best solution is to develop a java bean and add it to the HTTP adapter module.

I was in SAP teched last week, and I did a 'hands on' with PI7.1 with a very similar solution, but instead of getting the data of the username of the message, it was the systemID of the sender machine, so same solution for your problem

gime your mail and i will send you the docs and the code.

Cheers.

Eduardo.

Former Member
0 Kudos

Hi Edurdo,

Can you please copy / paste as a link here as an attachment..

Will give chance for others as well in case if they face same issue.

.would be really appreciated.

Thanks again!

Nilesh

Former Member
0 Kudos

Here some of the data you will need.

http://www.megaupload.com/?d=GW492APD

docs of how to do it, in this other link:

http://www.megaupload.com/?d=OEGSBUHD

I am sure you will solve your problem with all this.

if you have any doubt after reading the doc, ask me.

Cheers.

Eduardo.

Former Member
0 Kudos

Hi Eduardo Martín, Can you please mail those documents to mallik.kancharla@palm.com ? I could not download the files from the link you have provided.

thank you for your help

Former Member
0 Kudos

sorry, it was the only place I knew to upload the file.

Maybe you didn't know you have to enter 3 characters in the top of the page (for the security method to avoid robots).

Anyway, i send it to u.

Cheers.

Eduardo.