Application Development and Automation 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: 
Read only

Maximum length string

Former Member
0 Likes
29,215

Hi,

does anyone know which is the maximum length allowed for a string variable in ABAP?

Tbahks

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
13,139

Look at [Predefined ABAP Types |http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_COMPLETE.htm]

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 their 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|http://help.sap.com/abapdocu_70/en/ABENPROFILE_PARAMETER_GLOSRY.htm] ztta/max_memreq_MB, see [Maximum Size of Dynamic Data Objects|http://help.sap.com/abapdocu_70/en/ABENMEMORY_CONSUMPTION_2.htm]).

So call transaction RZ11 and input ztta/max_memreq_MB.

Regards,

Raymond

6 REPLIES 6
Read only

former_member212005
Active Contributor
0 Likes
13,139

Please refer the below link...

http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_DICTIONARY.htm

Looks like it is dynamic..

Read only

Former Member
0 Likes
13,139

Hi,

Please see go through the following link...

[|]

Thanks,

Rakesh.

Read only

RaymondGiuseppi
Active Contributor
13,140

Look at [Predefined ABAP Types |http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_COMPLETE.htm]

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 their 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|http://help.sap.com/abapdocu_70/en/ABENPROFILE_PARAMETER_GLOSRY.htm] ztta/max_memreq_MB, see [Maximum Size of Dynamic Data Objects|http://help.sap.com/abapdocu_70/en/ABENMEMORY_CONSUMPTION_2.htm]).

So call transaction RZ11 and input ztta/max_memreq_MB.

Regards,

Raymond

Read only

Former Member
Read only

Former Member
0 Likes
13,139

Yes..it is variable in nature.

Read only

former_member998879
Participant
0 Likes
13,139

Hi,

it should be 65535 characters, but it's variable.

from 256 to 65535 characters.

Regards,

Davide