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: 

Need Help in finding FM for displaying date as output EX:april-07

Former Member
0 Kudos

Hi All,

I have a problem in displaying date for example:

If i give period as 4 and year as 2007,

the output should be displayed as april-07.

Can any one help me out in finding a solution.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

MONTH_NAMES_GET will give you the month name

FUNCTION MODULES

http://www.erpgenie.com/abap/functions.htm

http://www.sapdevelopment.co.uk/fmodules/fmssap.htm

http://www.erpgenie.com/abap/index.htm

http://www.geocities.com/victorav15/sapr3/abapfun.html

Rewards if useful...........

Minal

Message was edited by:

Minal Nampalliwar

3 REPLIES 3

Former Member
0 Kudos

MONTH_NAMES_GET will give you the month name

FUNCTION MODULES

http://www.erpgenie.com/abap/functions.htm

http://www.sapdevelopment.co.uk/fmodules/fmssap.htm

http://www.erpgenie.com/abap/index.htm

http://www.geocities.com/victorav15/sapr3/abapfun.html

Rewards if useful...........

Minal

Message was edited by:

Minal Nampalliwar

Former Member
0 Kudos

hi ,

try this sample code.

data: v_date(16) type c,

v_var(8) type c.

select LTX

from t247

into v_var

where MNR eq p_date+2(2).

concatenate p_date0(2) v_var p_date4(4)

into v_date.

write : v_date.

<b><i>reward points if useful</i></b>

chandra

Former Member
0 Kudos

Hi Shiva

Firstly please check if the fiscal period and calendar period are the same with reference to a given company code. For example if we have a fiscal year starting from April, in April the month nr is 4 while fiscal period is 1.

(Maybe FM like FI_PERIOD_DETERMINE can be used for checking this)

Once we have the calendar period use FM MONTH_NAMES_GET which will get the month name, concatenate with the year and you will get the desired result.

Regards,

Arun