cancel
Showing results for 
Search instead for 
Did you mean: 

Access current system or target system ID in message mapping

Former Member
0 Kudos

Hi.

I have a requirement to map three different constant values to Sales Org field, depending on whether the system is D, Q or Prod.

This needs to be done in the message mapping section of the Interface along with all the other mapping logic.

Is there any way how we can access the current system ID or the Target system ID (XI is communicating with target, in this case, ECC, using RFC receiver Communication channel)?

Please help.

Thanks.

Anuradha.

Accepted Solutions (1)

Accepted Solutions (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Anuradha,

Please look into this thread.

regards

Anupam

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The key element would be :-

System.getProperty("SAPSYSTEMNAME");

Use this in UDF to get System Name ... and then on basis of systemname do whatever you want to perform.

Regards

Prabhat Sharma