on 04-12-2010 2:30 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.