Skip to Content
author's profile photo Former Member
Former Member

How to get the name of Interface Mapping ?

Beside the information given by setParameter() i like to know the name of the "Interface Mapping". Does somebody know how to get this information ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 10:54 AM

    Urs,

    At what level doe do want to obtain this?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      inside of the execute() method like:

      public void execute(InputStream in, OutputStream out) {

      if (trace != null) trace.addInfo("beginning execute");

      try {

      String ifMapName = <b>getNameOfInterfaceMappingWhichHasCalledThisFunction();</b>

      trace.addInfo("InterfaceMappingName: "+ifMapName);

      } catch (Exception ex) {

      trace.addWarning("Ooops: "+ex.getMessage());

      }

      }

  • author's profile photo Former Member
    Former Member
    Posted on Jan 14, 2005 at 12:59 PM

    Hi Urs,

    Maybe you can do something with the following class:

    com.sap.aii.mapping.api.StreamTransformationConstants

    Cheers,

    Frank

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Frank,

      not really there are a lot of information in there but <b>not the name of the interfacemapping</b>. By iterating through the xiContext given by setParameter() i got the following output:

      <u>As defined in StreamTransformationConstants:</u>

      MessageClass = RQ

      VersionMajor = 003

      VersionMinor = 000

      ProcessingMode = A

      MessageId = B9EFFFC05A7411D9CA2F00306E5DA806

      RefToMessageId = 00000000000000000000000000000000

      ConversationId = null

      TimeSent = 20041230150856

      Interface = ORDERS.ORDERS05

      InterfaceNamespace = urn:sap-com:document:sap:idoc:messages

      SenderParty = null

      SenderPartyAgency = null

      SenderPartyScheme = null

      SenderService = BS_QGDBW

      ReceiverName = msgIF_ORDERS_DATARIVER

      ReceiverNamespace = http://prototype.com/xi/test

      ReceiverParty = null

      ReceiverPartyAgency = null

      ReceiverPartyScheme = null

      ReceiverService = BS_QGDBW

      MappingTrace =

      <u>Additional Information found:</u>

      Direction = 0

      MessageID = B9EFFFC05A7411D9CA2F00306E5DA806

      BusinessSystemSender = BS_QGDBW

      BusinessSystemReceiver = BS_QGDBW

      SenderNamespace = urn:sap-com:document:sap:idoc:messages

      SenderName = ORDERS.ORDERS05

      QueueID = null

      SenderSystem = BS_QGDBW

      ReceiverSystem = BS_QGDBW

      These are interresting informations but nothing to find out which interface-mapping-name has called the execute-method....

      Regards,

      Urs

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.