cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI/PO 7.5 Java Mapping getting calling Service Interface

Former Member
0 Kudos

I know how to build a Java map (done quite a few). I have a new requirement that I can't quite figure out...

The java map will handle the incoming data differently based on what File adapter picked up the file. I do not want to rely on File name or File Directory to determine this information as those can be changed (which of course would cause issues).

I would like to be able to "know" which Service Interface is being used when the Java map is called. Is this possible? I don't remember seeing it listed as part of a dynamic configuration entry and I can't find a list of valid System.getProperty() options.

Any ideas on how this could be done? If not, then I will just add a parameter to the java map and send in the information that way.

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor

Hi,

In the TransformationInput input, the interface should be in the XI Header. Have you tried input.getInputHeader().getInterface(); ?

Regards,

Mark

Former Member

Thank you for this. I completely missed this during research.

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Thank you for this. I completely missed this during research.