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: 

Doubt reg. displaying date in an ALV List

Former Member
0 Kudos

Hi Pals,

I have a query while using classical ALC. I am using the REUSE_ALV_GRID_DISPLAY function module. While displaying the list I have a date field which getting displayed as 20060515 but I want this column to be displayed as 05/15/2006. Is there a direct way of doing this other than concatenation?

Your inputs would be highly appreciable.

Thank You.

Regards,

Gayathri N.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

in the fieldcatalof of that field , u can try this

it_fieldcatalog-edit_mask = '__/__/____'

6 REPLIES 6

Former Member
0 Kudos

in the fieldcatalof of that field , u can try this

it_fieldcatalog-edit_mask = '__/__/____'

Former Member
0 Kudos

Hii

GO TO <b>SYSTEM --> USER PROFILE -->OWN DATA --> DEFAULTS</b>

and check for the required option in date format.

Then declare date as sy-datum.

then you will get the date in the required format .

also you use function module

<b>CONVERSION_EXIT_PDATE_OUTPUT</b>

Thanks &Regards

Naresh

Former Member
0 Kudos

Hi,

take this into a variable type SY_DATUM and thn use that variable for diaplaying.

Regards,

Aswin

Former Member
0 Kudos

Use fieldcat-DATATYPE = 'DATS' and fieldcat-INTTYPE = 'D' for the date field

Former Member
0 Kudos

Thank you very much all for your input!!! I have yet another query. When my date field contains 00000000, it is being displayed as 00/00/0000. How should I avoid this? Should I be clearing my internal table manully or is there a direct way of doing this??

I will close this thread once after my resolution to this query. Thank you all !

Rgds,

Gayathri N.

0 Kudos

Hi,

in the fieldcatalog use the option NO_ZERO = 'X' for that

field , it will <b>not</b> display initial values

pls close thread if solved