cancel
Showing results for 
Search instead for 
Did you mean: 

System ID in the user defined function

Former Member
0 Kudos

Folks,

I am trying to get the system id of the XI system with in the user defined function. How can I get it? I have looked into the technical context objects/contants and could not find any which gives you the XI system ID (3 character system ID).

Any input is greatly appreciated.

- Shanth

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

this is quite easy as shown in this post:

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

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

Hi,

Adding to the link whihc Michael has given...

There is another system property which gives sap system name...rather than taking 'user.name' and parsing....

Please the code below.....

System.getProperty("SAPSYSTEMNAME");

this returns the 3 letter system id.....i got XID !!!!

Thanks,

Renjith

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you can get a few more like: SAPSYSTEM

etc.

Regards,

michal

Former Member
0 Kudos

Thanks guys.

What are others I can get using getProperty method?

Thanks,

Shanth

Former Member
0 Kudos

Use the method

System.getPropertyNames();

to see the list of all the available properties....

Thanks.

Answers (0)