‎2007 Jul 06 7:35 AM
‎2007 Jul 06 7:38 AM
Byte-type data objects contain byte strings (or byte sequences) and always have the byte-type data type <b>x</b> or <b>xstring</b>.
Character-type data objects contains character strings (or strings). A character-type data object has either a character-type data type <b>c, d, n, t</b>, <b>string</b> or it is a structure with purely character-type components.
‎2007 Jul 06 7:38 AM
Hi Soumya
ABAP contains a series of statements for processing character fields of the types c, d, n t and string. If you use flat structures or byte strings at operand positions of these statements before Release 6.10, then they are treated as character strings, that means, an implicit casting is carried out.
Since as of Release 6.10 an explicit byte string processing is possible, the statements: FIND, REPLACE, SHIFT, CONCATENATE and SPLIT, which support byte- and character string processing, have the optional addition
... IN {BYTE|CHARACTER} MODE ...
This addition specifies which processing type is carried out. If the addition is not specified, string processing is performed.
The statements: TRANSLATE, CONVERT TEXT, OVERLAY and CONDENSE are only capable of character string processing.
You should no longer use these obsolete statements.
Since release 6.10, ABAP has offered the IN BYTE MODE addition for the statements CONCATENATE, FIND, REPLACE, SHIFTand SPLIT. It allows operands to be processed byte by byte. The functions of these statements remain the same as when they are used for character strings, the only difference being that in this case byte-type data objects (data type x and xstring)are being processed.
Single Bit Processing in Hexadecimal Fields
In a hexadecimal field (type x), you can process the individual bits. ABAP interprets the contents of hex fields byte by byte. For example, a hexadecimal field of length n is n bytes long and has a display length in ABAP of 2xn. The decimal values 0-255 are represented in hexadecimal by the characters '00' to 'FF'.
check this links
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/4d/47dfb6f48511d195200000e8353423/content.htm
Reward all helpfull answers
Regards
Pavan
‎2007 Jul 06 7:44 AM
‎2007 Jul 06 8:00 AM
‎2007 Jul 06 7:38 AM
Byte-type data objects contain byte strings (or byte sequences) and always have the byte-type data type <b>x</b> or <b>xstring</b>.
Character-type data objects contains character strings (or strings). A character-type data object has either a character-type data type <b>c, d, n, t</b>, <b>string</b> or it is a structure with purely character-type components.