on 03-31-2008 10:27 AM
Hello friends,
I am new to XI. Now i am doing Java Mapping. I could not understand the purpose of the method setParameter(Map param) in the interface StreamTransformation.
Can you tell me why it is needed and where it is used?
Thanks & Regards,
Senthil.
Hi senthil,
in the method setParameter() you declare an instance of Map class.
In runtime the Mapping runtime triggers this method passing the Runtime StreamTransformation parameters to the instance of Map, you can use this instance later on in your program to access runtime parameters such as MESSAGE_ID etc.
**Reward points if helpful.
--Sankar Choudhury
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sankar,
Thanks a lot for your reply. I got some idea.
Do i need to implement(i.e., assigning parameters to the Map instance) the setParameter( ) eventhough i am not going to use those parameters in my mapping?
Can i simply put like this, if i am not going to use those params:
public void setParameter( ){ }
Hi senthil,
In the Interface StreanTransformation the prototype of the method declared as : void setParameter(Map)
So we need to define the method like this.
and according to the rule of java every method declared in a interface and if we are implementing that interface then we have to override the methods in the interface.
so here we have to define the setParameter method like:
public void setParameter(Map param) {
map = param;
}
--Sankar Choudhury
Hi,
Look at the description of the method:
http://help.sap.com/saphelp_nw70/helpdata/EN/e4/028c4057d5701de10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/e2/e13fcd80fe47768df001a558ed10b6/frameset.htm
Chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.