01-03-2008 8:53 PM
What is xstring data type ?
Why do SAP stores the data in that format ?
01-03-2008 9:30 PM
Often we need to transfer heavy files between Web Applications in Java and SAP in ABAP. Information passed as XML will Increase the performance of your Java-ABAP applications interfaces. So the data that needs to be passed from ABAP needs to be XML Compatible and so we are using the XSTRING.
XSTRING is one of the predefined Data types in ABAP with variable length.
It is a Data type for variable-length byte sequence used in XML outputs
XSTRING Data types are used in Transformation of an XML Doument.
VInodh Balakrishnan
01-03-2008 9:30 PM
Often we need to transfer heavy files between Web Applications in Java and SAP in ABAP. Information passed as XML will Increase the performance of your Java-ABAP applications interfaces. So the data that needs to be passed from ABAP needs to be XML Compatible and so we are using the XSTRING.
XSTRING is one of the predefined Data types in ABAP with variable length.
It is a Data type for variable-length byte sequence used in XML outputs
XSTRING Data types are used in Transformation of an XML Doument.
VInodh Balakrishnan
01-03-2008 10:06 PM
Thanks Vinodh for your response.
In couple of the forum message i found people referring Xstring with the Hexadecimal string.
Are they the same or did i understand it in the wrong way ?
01-03-2008 10:29 PM
Here is the official help for XSTRING.
RAWSTRING
Uninterpreted byte sequence of variable length. In the Dictionary, you can specify a length (minimum 256 characters) for this type. This data type can be used in types (data elements, structures, table types) and domains. Binary data of the type RAWSTRING can be stored in the database. However, there are limitations here that are described in the explanations given for the ABAP keyword STRING. String fields cannot be used in table keys, in indices, or in the WHERE condition of a SELECT statement. In ABAP, the Dictionary type RAWSTRING is mapped onto the ABAP type XSTRING, which is used as a reference to a memory area of variable size.
01-03-2008 10:34 PM
This will also help.
The predefined data types string and xstring describe data objects of variable length (dynamic data objects). While the length of data objects in all other elementary data types is determined for its whole lifetime, the length of text and byte strings varies according to their content (the maximum size of a string is determined by profile parameter ztta/max_memreq_MB)