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

printing month

Former Member
0 Likes
922

Hi,

is there any function module to print the month??

Plz help....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
844

Hi,

Check this FM..

MONTH_NAMES_GET – language is only parameter. Returns internal table with months.

Regards,

Bhaskar

Hi,

is there any function module to print the month??

Plz help....

5 REPLIES 5
Read only

Former Member
0 Likes
844

try this

CONVERSION_EXIT_IDATE_OUTPUT

Regards

prabhu

Read only

andreas_mann3
Active Contributor
0 Likes
844

use :

write: sy-datum+4(2).

and use table <b>t015m</b> for month-name

A.

Message was edited by:

Andreas Mann

Read only

Former Member
0 Likes
844

hi,

DATA: DATE_CHAR(20).
DATA: DATE TYPE SY-DATUM.
DATA: MONTH_NAME LIKE T247-LTX.
DATE = SY-DATUM.

SELECT SINGLE LTX FROM T247
INTO MONTH_NAME
WHERE SPRAS = SY-LANGU
AND MNR = SY-DATUM+4(2).

CONCATENATE SY-DATUM+6(2) MONTH_NAME SY-DATUM(4)
INTO DATE_CHAR SEPARATED BY SPACE.

WRITE: / DATE_CHAR.

or use this FM

CACS_DATE_GET_YEAR_MONTH : To get the number of the month

MONTH_NAMES_GET: To get month description

Regards

Reshma

Read only

Former Member
0 Likes
845

Hi,

Check this FM..

MONTH_NAMES_GET – language is only parameter. Returns internal table with months.

Regards,

Bhaskar

Read only

Former Member
0 Likes
844

hi

check with the following if it helps...

CONVERSION_EXIT_IDATE_OUTPUT

DATA: DATE_CHAR(20).

DATA: DATE TYPE SY-DATUM.

DATA: MONTH_NAME LIKE T247-LTX.

DATE = SY-DATUM.

SELECT SINGLE LTX FROM T247

INTO MONTH_NAME

WHERE SPRAS = SY-LANGU

AND MNR = SY-DATUM+4(2).

CONCATENATE SY-DATUM+6(2) MONTH_NAME SY-DATUM(4)

INTO DATE_CHAR SEPARATED BY SPACE.

WRITE: / DATE_CHAR.

or use this FM

CACS_DATE_GET_YEAR_MONTH : To get the number of the month

MONTH_NAMES_GET: To get month description

<b>plz reward if useful...</b>

regards

dinesh