‎2010 Oct 13 1:30 PM
HI All
I have some data types that i dont know what are the behavior of them
I need to know that for all the following data types
Data types such as
byte - Unsigned 8-bit integer value
guid - a 16-byte (128-bit) unique identifier value
SByte - a signed 8-bit integer value
Int16 a - signed 16-bit integer value
Int32 a - signed 32-bit integer value
Int64 a - signed 64-bit integer value
Single - a floating point number with 7 digits precisionI want to know if user want to create such of data types
does he need to specify a length and decimal for example .
for instance to string data type user dont need to specify anything
but for char ne need to specify a length ,etc .
I search for this data type in the help
and i found this following links but it's help for this data types .
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
http://help.sap.com/saphelp_crm/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/content.htm
Thanks
Alex
Edited by: Alex Dean on Oct 13, 2010 3:14 PM
‎2010 Oct 13 2:16 PM
In almost 12 years in SAP, I've never declared any of these, and I doubt you will either. But, may I suggest ABAP Help (F1) on the data: statement....should provide a wealth of information about the various data types.
‎2010 Oct 13 2:16 PM
In almost 12 years in SAP, I've never declared any of these, and I doubt you will either. But, may I suggest ABAP Help (F1) on the data: statement....should provide a wealth of information about the various data types.
‎2010 Oct 13 2:48 PM
[These predefined types|http://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_DICTIONARY.htm] are only ones available and can only be used when typing data element in DDIC , but not directly in ABAP program.
Moreover what do you need such huge memory allocation for (i.e int64) ? I can't even imagine what max value would that be.
If you want to create dynamically certain data type (local to program) use cl_abap_elemdescr=>get_YYY where YYY stands for data type you want the data object be typed with.
Regards
Marcin