cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Date Format from DDMMYY to DD/MMM/YYYY

Former Member
0 Kudos

Hi,

Thanks in Advance.

Is there any function Module to Conver the Given Date in the given Below Format.

DD / MMM / YYYY

For Example if the given date is 16072009 then it should print as 16 / JUL / 2009

Regards:

Sridhar.J

Accepted Solutions (1)

Accepted Solutions (1)

former_member187457
Active Contributor
0 Kudos

any update..

if issue is solved ..plz close the thread

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

use the below code it may help u

PARAMETERS: p_date TYPE d.

DATA: datestring TYPE char11, l2 TYPE T247-KTX.

CALL FUNCTION 'ISP_GET_MONTH_NAME'

EXPORTING

date = p_date

language = 'E'

month_number = '00'

IMPORTING

shorttext = l2 .

IF sy-subrc <> 0.

CONCATENATE p_date6(2) '/' l2 '/' p_date0(4) INTO datestring.

WRITE: datestring .

surya reddy

former_member187457
Active Contributor
0 Kudos

Hi SJ,

Try concatenate.

Get the month name from FM ISP_GET_MONTH_NAME ..from this FM get SHORTTEXT

concatenate DD SHORTTEXT YYYY into l_Date separated by '/'.

thnx

Rahul

Former Member
0 Kudos

Hi

Go through this link

https://wiki.sdn.sap.com/wiki/display/Snippets/FUNCTIONMODULEFORCONVERTINGDATEINTOTHEGIVENFORMAT

Hope this will help you.

with Regards

Nikunj Shah

Former Member
0 Kudos

Hi,

Please check the FM 'HRGPBS_HESA_DATE_FORMAT'.

Regards,

Ram