Application Development and Automation 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: 
Read only

Regarding date display

Former Member
0 Likes
763

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
Read only

Former Member
0 Likes
708

Hi jagadish,

1. use the FM

CONVERSION_EXIT_SDATE_OUTPUT

regards,

amit m.

6 REPLIES 6
Read only

Former Member
0 Likes
709

Hi jagadish,

1. use the FM

CONVERSION_EXIT_SDATE_OUTPUT

regards,

amit m.

Read only

suresh_datti
Active Contributor
0 Likes
708

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

~Suresh

Read only

Former Member
0 Likes
708

hi

use the funtion module

CONVERSION_EXIT_IDATE_OUTPUT

ThankQ

Maruthi Rao. A

Read only

Former Member
0 Likes
708

Hi

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

Regards,

Ram

Read only

Former Member
0 Likes
708

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.

Read only

Former Member
0 Likes
708

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