Skip to Content

SAP PI/PO 7.5 Java Mapping getting calling Service Interface

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 12, 2017 at 06:36 AM

    Hi,

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

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 12, 2017 at 03:49 AM
    Add comment
    10|10000 characters needed characters exceeded