05-15-2006 10:46 AM
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.
05-15-2006 10:48 AM
in the fieldcatalof of that field , u can try this
it_fieldcatalog-edit_mask = '__/__/____'
05-15-2006 10:48 AM
in the fieldcatalof of that field , u can try this
it_fieldcatalog-edit_mask = '__/__/____'
05-15-2006 10:49 AM
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
05-15-2006 10:51 AM
Hi,
take this into a variable type SY_DATUM and thn use that variable for diaplaying.
Regards,
Aswin
05-15-2006 10:52 AM
Use fieldcat-DATATYPE = 'DATS' and fieldcat-INTTYPE = 'D' for the date field
05-15-2006 11:35 AM
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.
05-15-2006 11:48 AM
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