09-08-2006 2:27 PM
hi guys,
i need to display date in this format 20 June 2006 so which function module do i need to use for this.
thanks for ur help.
09-08-2006 2:29 PM
Hi jagadish,
1. use the FM
CONVERSION_EXIT_SDATE_OUTPUT
regards,
amit m.
09-08-2006 2:29 PM
Hi jagadish,
1. use the FM
CONVERSION_EXIT_SDATE_OUTPUT
regards,
amit m.
09-08-2006 2:34 PM
You can try HR_IN_GET_DATE_COMPONENTS & concatenate DAY,LTEXT& YEAR to get your format.
~Suresh
09-08-2006 2:34 PM
hi
use the funtion module
CONVERSION_EXIT_IDATE_OUTPUT
ThankQ
Maruthi Rao. A
09-08-2006 2:35 PM
Hi
Use the function module CONVERSION_EXIT_SDATE_OUTPUT and pass the date format as "99991201". It displays as 01.DEC.9999
Regards,
Ram
09-08-2006 2:38 PM
Hi,
Pls check this func and concatenate accordingly.
* Call func to get date components
CALL FUNCTION 'HR_IN_GET_DATE_COMPONENTS'
EXPORTING
IDATE = gd_date
IMPORTING
DAY = gd_days
MONTH = gd_month
YEAR = gd_year
LTEXT = gd_text
EXCEPTIONS
INPUT_DATE_IS_INITIAL = 1
TEXT_FOR_MONTH_NOT_MAINTAINED = 2
OTHERS = 3.
if sy-subrc = 0.
concatenate gd_days gd_text gd_year sepaarted by
space into gd_string.
endif.
Siri.
09-08-2006 2:42 PM
U can use the below logic.
ldate = sy-datum.
select ltx into lcmon from t247
where spras = sy-langu and mnr = ldate+4(2).
concatenate ldate+6(2) lcmon ldate(4) into lcdate
separated by space.
Please note CONVERSION_EXIT_SDATE_OUTPUT would give the date as 30.SEP.2006 while the above code would give it as 30 SEPTEMBER 2006
Regards
Anurag
Message was edited by: Anurag Bankley