‎2009 Jul 08 2:42 PM
Hi,
does anyone know which is the maximum length allowed for a string variable in ABAP?
Tbahks
‎2009 Jul 08 2:49 PM
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
‎2009 Jul 08 2:44 PM
Please refer the below link...
http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_DICTIONARY.htm
Looks like it is dynamic..
‎2009 Jul 08 2:46 PM
‎2009 Jul 08 2:49 PM
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
‎2009 Jul 08 2:53 PM
‎2009 Jul 08 3:04 PM
‎2009 Jul 08 3:19 PM
Hi,
it should be 65535 characters, but it's variable.
from 256 to 65535 characters.
Regards,
Davide