2007 Oct 18 6:08 AM
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.
2007 Oct 18 6:21 AM
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
2007 Oct 18 6:21 AM
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
2007 Oct 18 6:21 AM
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
2007 Oct 18 6:29 AM
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