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: 

Regarding date display

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi jagadish,

1. use the FM

CONVERSION_EXIT_SDATE_OUTPUT

regards,

amit m.

6 REPLIES 6

Former Member
0 Kudos

Hi jagadish,

1. use the FM

CONVERSION_EXIT_SDATE_OUTPUT

regards,

amit m.

suresh_datti
Active Contributor
0 Kudos

You can try HR_IN_GET_DATE_COMPONENTS & concatenate DAY,LTEXT& YEAR to get your format.

~Suresh

Former Member
0 Kudos

hi

use the funtion module

CONVERSION_EXIT_IDATE_OUTPUT

ThankQ

Maruthi Rao. A

Former Member
0 Kudos

Hi

Use the function module CONVERSION_EXIT_SDATE_OUTPUT and pass the date format as "99991201". It displays as 01.DEC.9999

Regards,

Ram

Former Member
0 Kudos

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.

Former Member
0 Kudos

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