cancel
Showing results for 
Search instead for 
Did you mean: 

Get XI SystemId

Former Member
0 Kudos

Hi Everyone,

I have an issue to fetch the SystemID for my XI devlopment in the message mapping. For example,

If I am working on my XI system named (ABC001) then I need the System ID "ABC" which is to be used in my message mapping. Can anybody help me out on this issue. I guess there should be some standard method to get this value which have to be implemented in the UDF of the mapping.

Helpful answers will be rewarded with points.

regards

Shyam

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

If u r saying that ur sys id is ABC001 and it will always be same then try to use constant function and give the name ABC and map it to target element.

No need to use any UDF.

for ur information u can below Mapping Runtime Constants in UDF.

http://help.sap.com/saphelp_nw04/helpdata/en/e4/028c4057d5701de10000000a1550b0/frameset.htm

chirag

Former Member
0 Kudos

Hi guys;

that´s a quite interesting question.

I actually have the same issue.

We are using some property files in message mapping for huge list of FixValue Mappings.

so we created a folder at the XI Server like

development => /usr/.../DXI/.../PropertyFiles

quality => /usr/.../QXI/.../PropertyFiles

production => /usr/.../PXI/.../PropertyFiles

to get the wright file dynamically in the message mapping, we have to determine the System ID for building the path

I will test chandra.k advice.

any other advice how to achieve this?

kind regards

Jochen

Former Member
0 Kudos

You can retrieve any SAP J2EE "instance" profile settings using System.getProperties(propertyName) ...

If you want to get its SYSID, use System.getProperties("SAPSYSTEMNAME"). Look for the most suitable system settings to fulfill your requirement.

I use this in all my JAVA sources, it works perfectly

Chris

Former Member
0 Kudos

hi

below is UDF

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

return user_login_id.substring(0,3);

This returns system id since the system users are always

xi0adm / xc0adm or xp0adm.

and check this weblog for reference

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

reward points if found helpfull

regards

chandra.k

Former Member
0 Kudos

Hi ,

System ID will be conatant through out development..

Why don't you simply pass a Constant Value of 'ABC' in mapping where ever you required.

or else

Create a UDF and just

Return "ABC"

and use this UDF where ever you required.

Regards,

Ramesh.