cancel
Showing results for 
Search instead for 
Did you mean: 

Getting SID in mapping

Former Member
0 Kudos

Is there way to get the PI's SID in mapping (Graphical or Java)?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You can get it by an UDF.

myUDF(){

System.getProperty("user.name")

}

Regards

Ratan

henrique_pinto
Active Contributor
0 Kudos

that's because usually the instance service user in the OS is xxxadm, where xxx is the sid.

But that can be false to some specific installation.

A more correct method would be to read sy-sysid ABAP property.

Regards,

Henrique.

Former Member
0 Kudos

user.name worked fine.

for sy-sysid, I guess ABAP mapping is required. I don't want to ABAP mapping.

Found in another thread that System.getProperty("SAPSYSTEMNAME");. This works great. I guess this is equivalent of sy-sysid.

Thanks guys.

henrique_pinto
Active Contributor
0 Kudos

good.

It's a little different of sy-sysid because it's not a J2EE specific parameter; it's a System Parameter (probably maintained during installation).

In windows, for example, you can check those if you go into Environment Variables button in the Advanced tab under the Properties screen for System, from Control Panel.

Regards,

Henrique.