on 05-10-2007 4:25 PM
I have an issue where we recieve a field in an IDOC -
<E1PLOGI SEGMENT="1">
<E1PITYP SEGMENT="1">
<E1P1001 SEGMENT="1">
<SOBID>UK76610 XE10FINANCE</SOBID>
But from another system it appears as
<E1PLOGI SEGMENT="1">
<E1PITYP SEGMENT="1">
<E1P1001 SEGMENT="1">
<SOBID>UK76610 XE10FINANCE</SOBID>
As you can see there are to additional spaces in the second example.
I am using a rather complex mapping sequence to chop the data up (substring without length), lookup values, add a number mask then concatanate a value on the end. Can you use the substring from a space within a field, instead of a fixed point?
It works perfectly in Development but in test the fewer spaces cause a problem with the mapping.
All fixed and working!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Barry,
Then what you have to do is to write a UDF. It will check the space and take the substring starting from the space to the end. Is this what you are looking for?
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Barry,
>
> Then what you have to do is to write a UDF. It will
> check the space and take the substring starting from
> the space to the end. Is this what you are looking
> for?
>
> ---Satish
That is it!
I have a udf I've written already, but that was for a fixed point and not a space.
int i = Integer.parseInt(a);
String c = b.substring(10,i);
return c;
I will change this then?
couldnt figure out the difference between the two strucutres
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.