Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

alv date format error in output report

Former Member
0 Kudos

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

7 REPLIES 7

yogendra_bhaskar
Contributor
0 Kudos

Hi Yogesh ,

what is the data type of output field and how you are fetching data ?

plz. clarify

Regards

Yogendra Bhaskar

0 Kudos

Use a 8 char data variable to hold the data after fetching .

This will survey

0 Kudos

my data type is dats,

i have tried to use fm convert_date_to_internal but not shows proper output

0 Kudos

Use date types

karun_prabhu
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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,

Former Member
0 Kudos

Thank to all of you for reply