cancel
Showing results for 
Search instead for 
Did you mean: 

Change Queue name in Message mapping

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

pvishnuvardan_reddy
Active Contributor
0 Kudos

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

maciej_jarecki
Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Sathish

Our interface is EOIO only.

Changing the queue id is the next question. But we are not able to even access the QUEUE_ID constant.

Anyway I wrote a adapter module and can change the queue name there dynamically.

Regards

Anandan

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Sathish how you did that?  could you provide me example code. i hae the same issue

Former Member
0 Kudos

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

chaitanya_sudha
Explorer
0 Kudos

Hi Satish,

How did you do this requirement ? I have same requirement. Please share your thoughts.

Thanks in advance,

Chaitanya.