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: 

RAW data type

Former Member
0 Kudos

Hi Experts,

Please let me know what is raw data type???

In one table for the field GUID , somebody changed the datatype from raw data type (16) to char (24) .

So I need the reason why they changed from RAW to CHAR . Is der is any sprcific reason behind it...

Awaitning for ur precious replies.

Thanks in advance,

Radhika

1 ACCEPTED SOLUTION

Former Member

Hi Radhika,

This text about the RAW type is on Sap Help web:

RAW: Uninterpreted byte string. Fields of type RAW may have only a maximum length of 255 in tables. If longer raw fields are required in tables, you should select data type LRAW.

LRAW: Uninterpreted byte string of any length, but has to be declared with a minimum length of 256. Fields of this type must be located at the end of transparent tables (in each table there can be only one such field) and must be preceded by a length field of type INT2. If there is an INSERT or UPDATE in ABAP programs, this length field must be filled with the length actually required. If the length field is not filled correctly, this may lead to a data loss in the LRAW field! A fields of this type cannot be used in the WHERE condition of a SELECT statement.

Best Regards.

2 REPLIES 2

Former Member

Hi Radhika,

This text about the RAW type is on Sap Help web:

RAW: Uninterpreted byte string. Fields of type RAW may have only a maximum length of 255 in tables. If longer raw fields are required in tables, you should select data type LRAW.

LRAW: Uninterpreted byte string of any length, but has to be declared with a minimum length of 256. Fields of this type must be located at the end of transparent tables (in each table there can be only one such field) and must be preceded by a length field of type INT2. If there is an INSERT or UPDATE in ABAP programs, this length field must be filled with the length actually required. If the length field is not filled correctly, this may lead to a data loss in the LRAW field! A fields of this type cannot be used in the WHERE condition of a SELECT statement.

Best Regards.

Former Member