cancel
Showing results for 
Search instead for 
Did you mean: 

Handle hex return values in mapping

Former Member
0 Kudos
101

Hi

I have a return from SAP Content Server that comes in hex format. My message mapping are not happy and as far as I have understood, normal message mapping and XSLT cannot handle this return.

I have tried with ABAP mapping, but the output stream is still on hex format. Does anyone know how a java mapping can handle this? The input stream is ok, but I would like to output a string (or something else readable for the mapping) instead of the outputstream from the java mapping. Do I have to use StreamTransformation for the java mapping, or do I have any other options?

Thanks!

regards Ole

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

First you should mention, how you want the output, then people can give advice, how to achive this.

When I have understood right, your response is a plain hex string like this:

127464fde452f.

The easiest way to handle this, is envelope this with a tag:

<root>127464fde452f</root>

Former Member
0 Kudos

Hi

Jepp, I was maybe a bit unclear as I did not understand why the mapping could not process the return message in the beginning. Anyway, as long as I build an XML document in ABAP or Java (similar to what I expect in message mapping), based on the hex string I receive, it will work.

regards Ole

JoelTrinidade
Active Contributor
0 Kudos

Hi Ole,

You cannot use graphical mapping tool or XSLT mapping. You have to use self-written Java mapping.

Rgds

joel

Former Member
0 Kudos

Hi

I think that is what I stated in my question. My question was: How can this be done with Java? When I am using StreamTransformation all I get is binary. I need it to be in a format that can be handled afterwards as I in my BPM has to decide further action.

Ole