06-08-2007 4:11 PM
Hi,
I have a table name and a field name in two char variables, I want to the data type of the variable. Is there any function to do this?
For example:
CALL FUNCTION get_data_type
EXPORTING
table_name = 'SPFLI'
field_name = 'CARRID'
IMPORTING
data_type = data_type.
where at the end data_type would have 'CHAR'.
Thanks in advance,
André Costa
06-08-2007 4:17 PM
Hi,
Please try this FM DDIF_FIELDINFO_GET.
Enter the table name and field name and check the return table DFIES_TAB parameter for field DATATYPE.
Regards,
Ferry Lianto
06-08-2007 4:14 PM
06-08-2007 4:14 PM
Hi
from the Domain of that field we know the data type and length
see the tables DD03L enter table and field name
or from table DD07L enter domain and get its values
Reward points for useful Answers
Regards
Anji
06-08-2007 4:16 PM
06-08-2007 4:17 PM
Hi,
Please try this FM DDIF_FIELDINFO_GET.
Enter the table name and field name and check the return table DFIES_TAB parameter for field DATATYPE.
Regards,
Ferry Lianto
06-08-2007 4:17 PM