on 03-07-2012 8:06 PM
Hi
We want to change the queue name dynamically in the message mapping.
We refered the post
http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/frameset.htm
But as said in it, we are not able to access the parameter QUEUE_ID or QUALITY_OF_SERVICE.
Other than these two parameters, we can access all parameters.
Below is the code to access one of them.
while compiling, the message mapping gives error as below.
cannot find symbol
symbol : variable QUEUE_ID
Any pointers.
///// CODE
MappingTrace trace;
String constant;
java.util.Map map;
trace = container.getTrace();
// get constant map
map = container.getTransformationParameters();
constant = (String) map.get(
StreamTransformationConstants.QUEUE_ID);
trace.addInfo("QUEUE ID:" + constant);
return constant;
Regards
Anandan
Hi Anandan,
I assume you are compiling the udf in message mapping, that's why you are getting the error.
The header parameters will be filled at runtime, hence you cannot access for testing at the mapping level.
Please do end to end testing and check the outcome.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I'm not sure if you can change it in mapping. Better place to do this is in adapter module of CC
Br
Maciej
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anandan,
As given in help you can only get queue Id if you have Quality of service as ExactlyOnceInOrder. So make sure you have selected that option.
http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
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.