cancel
Showing results for 
Search instead for 
Did you mean: 

API to read portal SID

former_member184970
Active Participant
0 Kudos

Hi,

Is there any API available to read the portal SID?

Regards

Veera

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member201257
Active Contributor
0 Kudos

String SID = System.getProperty("SAPSYSTEMNAME").toString();

Also, see this post - http://scn.sap.com/community/netweaver-portal/administration-and-development/blog/2012/05/08/runtime...

former_member184970
Active Participant
0 Kudos
Thanks Shanti.
Former Member
0 Kudos

I don't think so unless you store it as a property somewhere in the PCD. You could parse the environment variable sys.global.dir, it will have the SID.