cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping runtime constant to get system details of the XI box

Former Member
0 Kudos

Hi

We have a need to get the XI system details ( sysid and the client) at runtime - when executing a mapping that we designed using Message mapping . Is there any runtime constant/udf that we can use to retrieve this information ?

We are on XI 3.0 SP23.

Accepted Solutions (1)

Accepted Solutions (1)

siddhesh_pathak4
Contributor
0 Kudos

Check with "System.getProperty" this this will give you the system name

if (System.getProperty("SAPSYSTEMNAME").equalsIgnoreCase("ABC")) {
//  Put your values
}
return (systemname or what you want);

Former Member
0 Kudos

Hi

I basically want to get the value of the system that the mapping executed on ( i.e sysid + client ) - what is the runtime constant that will return this for me ?

Former Member
0 Kudos

I dont think there is a constant for fetching the client

you can only fetch sap system id

Rajesh

former_member200962
Active Contributor
0 Kudos

Hi,

refer this blog by Michal..

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

just ignore the BPM part...you will need only the mapping logic and your target message will have the necessary value...also refer this link for the list of parameters that you can access:

http://help.sap.com/saphelp_nwpi71/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm

http://help.sap.com/saphelp_nwpi71/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/frameset.htm

Regards,

Abhishek.

Answers (1)

Answers (1)

Former Member
0 Kudos

Using ABAP Mapping program to access runtime constants (same as Java or UDF)

http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/frameset.htm

then

SY-SYSID will return system ID.

SY-MANDT will return client number.

Then your can pass the information to your message mapping by specifying two mapping programs in your interface mapping

Regards.

Liang

Edited by: Liang Ji on Mar 30, 2009 5:38 PM