‎2008 Aug 28 10:48 AM
Hi in my requirement i have to enter the fiscal year and report date in the selection screen.The report date should be got based on the codn that it should be the last date of the fiscal year.Please help me how to code for this report date or can anyone give some idea on this.
‎2008 Aug 28 12:10 PM
‎2008 Aug 28 11:02 AM
I didn't get ur question. Please give us more details..Assuming you want to get the period for this calendar date. Please look into the below Std FM's.
1. LAST_DAY_OF_MONTHS --> To get the last day of that Month.
2.GM_GET_FISCAL_YEAR --> Get fiscal year
3.CCODE_GET_FISCAL_YEAR_VARIANT --> To Get Fiscal year Variant
4. FTI_FISCAL_YEAR_MONTH_GET --> FY Month Get
5.BAPI_COMPANYCODE_GET_PERIOD --> Current Period
‎2008 Aug 28 11:24 AM
any way user will give the fiscal year rite, then in your program hard code date(last date of fiscal year) i.e 31-03-fiscalyear.
‎2008 Aug 28 11:49 AM
Hi in the selection screen i want to enter the fiscal year and last date of fiscal year as mandatory.The fiscal year would be entered by the user but the last date of the fiscal year has to be obtained based on the fiscal year entered so i cant hardcode it.Can you please help?
‎2008 Aug 28 12:03 PM
Hello Saranya,
I hope that you have the company code with you )
For this you need to use the FM :
1. CCODE_GET_FISCAL_YEAR_VARIANT - To get the Fiscal Year Variant
2. FIRST_AND_LAST_DAY_IN_YEAR_GET - To get the first & last dates of the Fiscal Year using the Fiscal Yr. Variant obtained from above.
This code should be there in the event AT-SELECTION-SCREEN OUTPUT.
BR,
Suhas
Edited by: Suhas Saha on Aug 28, 2008 1:03 PM
‎2008 Aug 28 12:10 PM