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: 

Not able to save text more than 129 characters : URGENT

former_member648330
Discoverer

Hi All,

I have created data element with length CHAR255. But it's not taking more than 129 characters.

Thanks.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos

A variable of 255 characters can definitely contain more than 129 characters.

Please explain the context, otherwise you can't get a quick answer...

former_member648330
Discoverer
0 Kudos

Hi Sandra,

I had created a database table with one of the key field length as 255 characters (Char255). But when passing a string of 200 characters in program it is storing only 129 characters.

Thanks.

Sandra_Rossi
Active Contributor
0 Kudos

If you check what the value is with ALV Grid, you can see maximum 128 characters per field (ALV Grid limit).

If you check by using SELECT with ABAP program, you can see all the characters.

AlexAdam
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you using plain english or unicode language for your char255 input

You can verify your text length here: https://r12a.github.io/app-conversion/

------

Generally Sandra Rossi is correct:
https://help.sap.com/doc/abapdocu_752_index_htm/7.52/en-US/abenddic_character_byte_types.htm#:~:text....

Character Strings

The following built-in data types in ABAP Dictionary are available for general character strings:

  • CHAR for text fields
The built-in type CHAR, mapped to the ABAP type c, is used to describe general text fields with a maximum length of 30000 characters (only 1333 characters for table fields).