2007 Aug 02 2:00 PM
Dear All
I need a function module to get the name of the Month. For eg: if i am giving '01' as input i should get 'April' . Like that 02 for May and so on... Please tell me if any function modules are there like that....
Thanks
2007 Aug 02 2:07 PM
select single ltx
into <field_name>
from t247
where spras = sy-langu
and mnr = '01' .
Message was edited by:
Pawan Kesari
2007 Aug 02 2:03 PM
2007 Aug 02 2:05 PM
Hi
I know this, but my requirment is bit different so i need to know whether any Function Modules are there for this....
2007 Aug 02 2:07 PM
2007 Aug 02 2:05 PM
2007 Aug 02 2:06 PM
In MONTH_NAMES_GET there is no provisiuon to give an input..plz read the question before answering..
thanks
2007 Aug 02 2:26 PM
Hi Scorpio,
It seems that your requirement is related with FI.
'01' can correspond to 'April' when we talk about Fiscal periods. But it not always true.
This relation can itself depends on 'Fiscal Year Variant'. To get the actual relation between your period.. i.e. '01' and month ..i.e. 'April' goto table T009C and select record for given 'Fiscal Year Variant' and Language you will get corresponding period and month.
In that case you won't have to write CASE statement.
2007 Aug 02 2:07 PM
2007 Aug 02 2:07 PM
select single ltx
into <field_name>
from t247
where spras = sy-langu
and mnr = '01' .
Message was edited by:
Pawan Kesari
2007 Aug 02 2:09 PM
normally all function modules give data as if it is <b>'01'</b> as <b>Jan</b>. But ur requirement is a peculiar one. There are no such function modules which gives u <b>'01'</b> as <b>April</b>. So, u need to write the code as such like when it is '01', April & '02', May and so..on
Reward Points..
2007 Aug 02 2:10 PM
2007 Aug 02 2:11 PM
2007 Aug 02 2:12 PM
Hi,
may i know your Requirement.
Thanks & Regards,
Vallamuthu.M
2007 Aug 09 7:36 AM