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: 

FM to get succeeding 3 months' names

Former Member
0 Kudos

Hi Experts,

I wana display the stock of the current month plus future 3 months in ALV grid.The month names should be in words n not numbers.Eg:May for 5 etc.

Plz help me out in finding out the function module to do the same.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi..

The table T015M will give u the month name as per the number of month. This might help u bit..

or FM HR_RU_MONTH_NAME_IN_GENITIVE to do the same.

To get the next month:

OIL_GET_NEXT_MONTH

regards,

Padma

Edited by: Padmashree RamMaghenthar on Oct 6, 2008 11:06 AM

Edited by: Padmashree RamMaghenthar on Oct 6, 2008 11:09 AM

4 REPLIES 4

Former Member
0 Kudos

hi..

The table T015M will give u the month name as per the number of month. This might help u bit..

or FM HR_RU_MONTH_NAME_IN_GENITIVE to do the same.

To get the next month:

OIL_GET_NEXT_MONTH

regards,

Padma

Edited by: Padmashree RamMaghenthar on Oct 6, 2008 11:06 AM

Edited by: Padmashree RamMaghenthar on Oct 6, 2008 11:09 AM

Former Member
0 Kudos

Hello

Table T247

FM MONTH_NAMES_GET

Former Member
0 Kudos

Hi,

Check table T247

Regards,

Surinder

Former Member
0 Kudos

Hi,

Try like this....


select SINGLE * from T247 into lv_desc where mnr = lv_month
AND SPRAS = sy-langu.

Or


Use this FM
MONTH_NAMES_GET

Hope it will helps