on 09-04-2008 2:54 PM
Hi All,
i am sending ASN details from ICH to R/3....mapping is done between despatcheddeliverynotification -> ZBAPI.
The problem is extra space is getting added to the fields at front and as such the data is getting misplaced.
Is there any way to avoid this space..i tried changing the data type in my bapi from char to xmlstring but it does allow as it's rfc enabled.
Kindly help on this
Hi,
trim() function can only removes white space from both ends of the string.But here in your case getting special characters.
you can raplace these special charecters with space(" ") and then pass this new string to trim function.
Markup/Result
Ex:String a = "##abcdef#";
String new=a.replace('#',' ');
//you will get " abcdef " (with white spaces)
String final=new.trim();
//you will get string with out space "abcdef"
Edited by: murali krishna on Sep 5, 2008 8:24 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it's just not junk values i am getting 0's appended at the last
I will be clear now
1) in ich the data is
asn number smi_asn00001701
po number 450001750
2) in r/3 in my bapi i am getting it as
asn number ###smi_asn00001701####
po number 4500017500000[]#[]
i tried re-desinging the entire scenario with no progress
is it tht sum cache or xml data not getting refreshed??
>>The problem is extra space is getting added to the fields at front and as such the data is getting misplaced.
The extra spaces that is before and after the field can be removed in mapping using the standard Text function trim.
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.