on 02-03-2011 10:15 PM
Hi Guru,
I have the follow scenario_
SAP R/3 -
SAP PI
SAP PI----SAP R/3.
I will send message from sap r/3 to sap pi with rfc.
sap pi will send back a number of message, was send and the name of send system.
Those information schould be save in sap table.
Please could you help me.
I will appreciate, thanks .
regards
Hi,
You can use this simple UDF to get the name of the sender system.
java.util.Map map;
map=container.getTransformationParameters();
String sender=(String)map.get(StreamTransformationConstants.SENDER_SERVICE);
return sender;
Map the output of this UDF to any node where you want the value of the sender system.
Cheers
Biswajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guru,
thank you for your input. but how i kann give back the number of message
in the abap table. the scenario looking like follow.
sap r/3-----IP(Integration Process) In the Integration process i need to count all message and return the Integer
back in sap r/3.
I would appreciate it
thanks
Regards.
You need to use java mapping . Inside use StreamTransformationConstants interface to fetch it.
Folllow this link
SENDER_SYSTEM is deprecated so use SENDER_SERVICE.
implement class similar to this (code snippet)
public class retrieveInterfaceDetails implements AbstractTransformation{
private senderName="";
private Map myMap;
public void setParameter(Map param) {
myMap = param;
}
public void transform(TransformationInput arg0, TransformationOutput arg1) throws StreamTransformationException {
// Tweak your logic and pass it to output payload
senderName =(String) myMap.get(StreamTransformationConstants.SENDER_SERVICE);
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.