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

Date Format

Former Member
0 Likes
573

Hi all.

jus want 2 display a current date in this format

for eg. lets take 2days date

17 December 2007 --> should b display like this

Is any function module is dere.???

5 REPLIES 5
Read only

Former Member
0 Likes
554

Hi,

i dont think there is a FM. u need to use case statement and make of your own.

Regards,

Niyaz

Read only

Former Member
0 Likes
554

Hi,

Just use conversion_exit_sdate_output. It will work.

Regards,

subbu

Read only

former_member386202
Active Contributor
0 Likes
554

Hi,

Try these FMs

HR_RU_MONTH_NAME_IN_GENITIVE

ISP_GET_MONTH_NAME

MONTH_NAMES_GET

Regards,

Prashant

Read only

former_member188827
Active Contributor
0 Likes
554

data zdate type sy-datum value '20071217'.

data date(50).

data: zd(2),zmn(2),zyr(4).

data month type t247-ltx.

zyr = zdate+0(4).

zmn = zdate+4(2).

zd = zdate+6(2).

SELECT SINGLE ltx from t247 into month where mnr = zmn and spras = 'E'.

CONCATENATE zd month zyr into date SEPARATED BY space.

WRITE / date.

also try..........

data date(50).

CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'

EXPORTING

input = '20071217'

IMPORTING

OUTPUT = date

.

WRITE / date.

plz reward points if dis helps..

Edited by: abapuser on Dec 17, 2007 12:53 PM

Read only

Former Member
0 Likes
554

try this code...

DATA : date LIKE sy-datum,

month TYPE CHAR20,

t_date TYPE CHAR40.

DATE = sy-datum.

SELECT SINGLE LTX INTO month FROM t247 WHERE mnr = date+4(2)

and spras = sy-langu.

CONCATENATE date6(2) month date0(4) INTO t_date

SEPARATED BY '-'.

WRITE : t_date.