‎2005 Aug 17 9:22 AM
Hi,
I have a query with 3 fields numerics. But I don't know how to define it because if I define them like numeric, it doesn't work, if I define them like Char it doesn't works. In one case I define it like numerric but appears like float. I don't know if there are a function to convert the field to a numeric o something like that
‎2005 Aug 17 9:31 AM
Hi, you do the query for which table?
Can you paste your code here?
Thanks a lot
‎2005 Aug 17 9:35 AM
‎2005 Aug 17 9:39 AM
can u explain with some example for the output you are expecting in the query?
‎2005 Aug 17 10:06 AM
I want this:
Field 1 Field2 Field3
box 2000 4000
But appears this:
Field 1 Field2 Field3
box 2E+4
‎2005 Aug 17 10:13 AM
Hi,
U check with the output structure u defined.
Sometimes if the length of the Column Header and the field differs it will appear as Exponent too.
‎2005 Aug 17 10:19 AM
I have this code in the query
TYPE-POOLS ibco2 .
DATA: v_conf_ca TYPE ibco2_instance_tab2,
v_atinn_ca LIKE ibvalue0-atinn,
v_values_ca LIKE ibvalue0.
FIELD-SYMBOLS:
<i_conf_ca> TYPE ibco2_instance_rec2.
******************************************************
CHECK NOT mara-cuobf IS INITIAL.
*
CALL FUNCTION 'CE_C_GET_CBASE'
EXPORTING
instance = mara-cuobf
IMPORTING
configuration = v_conf_ca
EXCEPTIONS
internal_error = 1
instance_is_a_classification = 2
OTHERS = 3.
*
READ TABLE v_conf_ca ASSIGNING <i_conf_ca> INDEX 1.
*
CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'
EXPORTING
input = 'CANAL'
IMPORTING
output = v_atinn_ca.
*
READ TABLE <i_conf_ca>-values
INTO v_values_ca WITH KEY atinn = v_atinn_ca.
WRITE v_values_ca-atwrt TO v_atwrt_canal.