Application Development and Automation 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: 
Read only

Fiscal year

Former Member
0 Likes
709

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
656

Hi Saranya,

To get the last date of a fiscal year use the FM:

FIRST_AND_LAST_DAY_IN_YEAR_GET

Get the last date into a variable and check whether it is equal to the report date or not.

[Sample Code|;

Regards,

Chandra Sekhar

5 REPLIES 5
Read only

Former Member
0 Likes
656

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

Read only

Former Member
0 Likes
656

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.

Read only

0 Likes
656

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?

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
656

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

Read only

Former Member
0 Likes
657

Hi Saranya,

To get the last date of a fiscal year use the FM:

FIRST_AND_LAST_DAY_IN_YEAR_GET

Get the last date into a variable and check whether it is equal to the report date or not.

[Sample Code|;

Regards,

Chandra Sekhar