Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Xstring

Former Member
0 Kudos

What is xstring data type ?

Why do SAP stores the data in that format ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

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 ?

0 Kudos

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.

0 Kudos

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)