on 02-21-2012 10:21 PM
Hi.. Dear Experts.
How can I read whiteSpace in Payload.
E.g My Payload is showing <Data>ABCD 1234 1545</Data>
However between ABCD and 1234 exist 5 withspace .I verified when I made a download the Payload and check it in notepad.
I need to take the whitespace for my mapping
Can you help me?
Regards
Hello,
Have you checked the responses from your other thread?
http://forums.sdn.sap.com/thread.jspa?threadID=2139022&tstart=0
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Xinaxu,
Do you want to remove the white space in data between <Data> and </Data>? If yes then you can write a udf.
Refer this link for an idea on how to handle white space in java http://www.rgagnon.com/javadetails/java-0352.html
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
if you want to read Whitespaces in a field value , create UDF in Message mapping.
Could you please explain about your requirement clearly.
Regards,
Jag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i am just giving the procedure here to find whitespaces in String. you can use this procedure to find whitespaces and take required actions as per your requirement.
Convert String into Character Array. Var1 holding the string value.
char chA[] = var1.toCharArray();
Check Each character in Character Array for whitespaces.
for(int k=0; k < chA.length; k++)
{
if(Character.isWhitespace(chA[k]))
{ }
else
{}
}
if possible please explain what do you want to do after finding whitespaces in a field.
Regards,
Jag
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.