04-27-2015 10:10 AM
Hello All,
I'm new to ABAP
I have requirement in alv report shows wrong characters in date field.
Input : - 27.04.2015
Output: - 20.4..01.0
i want to shows output as same as i am fetching from database table.
plz give details to achieve this requirement. i have tried CONVERT_DATE_TO_INTERNAL fm but dont know how to use
04-27-2015 10:12 AM
Hi Yogesh ,
what is the data type of output field and how you are fetching data ?
plz. clarify
Regards
Yogendra Bhaskar
04-27-2015 10:19 AM
Use a 8 char data variable to hold the data after fetching .
This will survey
04-28-2015 10:55 AM
my data type is dats,
i have tried to use fm convert_date_to_internal but not shows proper output
04-27-2015 10:18 AM
04-27-2015 10:21 AM
Hello Yogesh Bagul.
Always try creating the variables in line with a Standard table-column.
This will automatically take care of conversions when displayed via ALV.
04-27-2015 10:25 AM
hi yogesh,
Declare ur date filed of Sy-datum type,
or u cane also give the refrence of ANY table and there DATE type field while building Field Catalog,
for Example,
wa_fieldcat-ref_tabname = 'MARA',
wa_filedcat-ref_fieldname = 'ERSDA'
regards,
04-27-2015 10:41 AM