‎2008 Aug 26 6:25 AM
Hello Abapers,
I have an issue with xstring...The sample program is like
DATA a TYPE xstring.
a = 'BEN123NNET'.
WRITE : a.
but the output is ' BE '
Why isn't the remaining fields getting displayed?
With Regards,
Bennet Thomas.
‎2008 Aug 26 6:35 AM
Hi,
Actualy xstring recognize only the HEX values i.e 0 to 9 and A,B,C,D , E and F. since N is beyond that range the string is truncated.
Instead of your string if you take a string like 'BEA123BF' you will get the entire string.
Or use string instead of Xstring.
Regards,
Anirban
‎2008 Aug 26 6:28 AM
Hi
May be the data length of xstring u hav defined somewhere in yr program is of 2.that's why it is taking only BE
chek this .
Thnks
Anurodh
‎2008 Aug 26 6:30 AM
Hi Thomas....
We can use... SSTRING for this.
What is the problem with that.?
---Naveen.I
‎2008 Aug 26 6:35 AM
Hi Naveen,
I am working with unicodes and have an issue with this xstring data type....will this (SSTRING) be of use when we work with structures during unicode conversions...will there be any alignments that we need to consider?
With Regards,
Bennet Thomas.
‎2008 Aug 26 6:35 AM
Hi
Check this link you will come to know when we use Xstring
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abapprogramtodownloadBITMAPfileto+PC
Regards
Pavan
‎2013 Dec 23 6:12 AM
Dear Pavan,
The link provided by you is not working. Can you specify some alternate URL?
regards
Supriyo
‎2008 Aug 26 6:35 AM
Hi,
Actualy xstring recognize only the HEX values i.e 0 to 9 and A,B,C,D , E and F. since N is beyond that range the string is truncated.
Instead of your string if you take a string like 'BEA123BF' you will get the entire string.
Or use string instead of Xstring.
Regards,
Anirban
‎2008 Aug 26 6:40 AM
Hi Anirban,
Thank you.. I was breaking my head with this...Have a great day...
With Regards,
Bennet Thomas.