on 08-24-2012 3:54 PM
Hi,
I am working on File to IDoc scenario. I am getting a string with 480 characters from the scource side.
I need to search for a value 'LN' in the string and populate the next character after LN into the POSEX field in IDoc. The index where LN appears always differ.
The next character of LN consists of the Item Number.
Can i achieve this using standard functions in sap PI?
If yes, how do i map this else how do i achieve this using user defined function.
Regards,
Deepthi Premnath.
Hi,
you can check below UDF:
int index = var1.indexOf("LN");
return (var1.substring (index+2, index+3));
Above UDF will search for LN string and will return the next character after this string, but are you sure that the item number will always be single character?
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.