cancel
Showing results for 
Search instead for 
Did you mean: 

how to Take source value remove zero and use it In receiver Determination

Former Member
0 Kudos

Hi

I am working On IDOc to Soap channel.

In idoc Fields ,I am using EMPST field from IDOC and accordingly I am putting Condition in Receiver Determination.

IF EMPST 111 Then Revceive1

IF EMPST 222 Then Revceive2

IF EMPST 333 Then Revceive3

But sometimes values also Come as 000111 or 00111 or 0111 same for Others.

I have used follwong condition in Receiver Determination.

IDOC/E1EDK01/EMPST u2248 *111

But it working fime for leading zero.

But if values come as 8111 or 78111 it is also routing message to Revceive1.

same for others.

Can you plz suggest solution?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Harshalata,

Did you already think about using a [XSLT condition|http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination] in the receiver determination?

I had a look on the internet and string(number($in)) should be able to remove the leading zeros. So in your case it would be something like:

IDOC/E1EDK01[string(number(EMPST))='111']

Regards,

Sven

Edited by: Sven Janssens on Jul 20, 2010 4:57 PM

Former Member
0 Kudos

closing

Former Member
0 Kudos

Hi harshalata Gaonkar,

From your example 111, 222 and 333. I noticed that you are using only the three characters from the right irregardless of the value in the left. If this is true, you may want to use the substring function in message mapping. Get the last three digit then use your if command.

I hope I get your question correctly.

Thank you.

Joel