cancel
Showing results for 
Search instead for 
Did you mean: 

accessing XI logical system in message mapping

HarshC
Active Participant
0 Kudos

Hi All,

How can I retrieve the current PI logical system name in my mapping. I need to map it as part of the payload.

Is there a java api that I can use?

Thanks,

Harsh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

you can write a small UDF & use the below to get SID of the system

String sysSID = (String)System.getProperty("SAPSYSTEMNAME");

OR

String sysSID = (String)System.getProperty("user.name");

Hope this helps

Regards

Vishnu

HarshC
Active Participant
0 Kudos

Thanks. Exactly what I was looking for.

Can you please point me to the link to the relevant documentation.

Harsh

PS: Points awarded.

HarshC
Active Participant
0 Kudos

Also, I see that this doesn't give us the client.

Can we get that as well?

Thanks,

Harsh

Former Member
0 Kudos

Hi

Glad to know that it helped you..

we used this in one of our scenarios earlier.. but I dont know if there is any good doc on this.

check if this helps

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/72e26432-0701-0010-19ba-abc05de7...

Our scenario was something like this.

The customer had only Two systems (one Prod + other for dev/test/QA etc). since we cannot adjust mappings other than Dev, we used the above way & looked up values to generate the exact target location.

I shall update this link for better doc, if I find any. (also for client info)

- just try "SAPSYSTEM" if it works

Cheers

Regards

Vishnu

Answers (0)