on 12-30-2004 5:36 PM
Beside the information given by setParameter() i like to know the name of the "Interface Mapping". Does somebody know how to get this information ?
Hi Urs,
Maybe you can do something with the following class:
com.sap.aii.mapping.api.StreamTransformationConstants
Cheers,
Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Urs,
At what level doe do want to obtain this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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());
}
}
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.