cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the name of Interface Mapping ?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Urs,

Maybe you can do something with the following class:

com.sap.aii.mapping.api.StreamTransformationConstants

Cheers,

Frank

Former Member
0 Kudos

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

Former Member
0 Kudos

Urs,

At what level doe do want to obtain this?

Former Member
0 Kudos

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());

}

}