2006 Jun 12 10:23 AM
Dear Friends,
Pls let me know the function module to get the current Fiscal Year by passing the system date.
Regards,
MARK K
2006 Jun 12 10:28 AM
Dear Friends,
Pls let me know the function module to get the current Fiscal Year by passing the system date.
Regards,
MARK K
2006 Jun 12 10:28 AM
2006 Jun 12 10:28 AM
2006 Jun 12 10:32 AM
CALL FUNCTION 'GM_GET_FISCAL_YEAR'
EXPORTING
I_DATE = SY-DATUM
I_FYV =
IMPORTING
E_FY =
EXCEPTIONS
FISCAL_YEAR_DOES_NOT_EXIST = 1
NOT_DEFINED_FOR_DATE = 2
OTHERS = 3
.
For the above FM, what the details should be given for the following and they indicate what.
EXPORTING
I_FYV = (?)
IMPORTING
E_FY = (?)
Regards,
2006 Jun 12 10:39 AM
i_FYV is the Fiscal year variant , u can get Fiscal year variants from table T009
DATA : L_YEAR(5).
IMPORING
E_FY = L_YEAR.
u will get the value to L_YEAR.
2006 Jun 12 10:39 AM
You can use GET_CURRENT_YEAR to find the Fiscal year of the entered date.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
BUKRS = '1000' " Company Code
DATE = SY-DATUM " Date to find fiscal year for
IMPORTING
CURRM = w_currm " Current Fiscal Month
CURRY = w_curry " Current Fiscal Year
PREVM = w_prevm " Previous Fiscal Month
PREVY = w_prevy. " Previous Fiscal Year
Enter the date you need in the place of sy-datum.
FTI_FISCAL_YEAR_MONTH_GET Returns fiscal year for specific date
Kindly reward points by clicking the star on the left of reply,if it helps.
2006 Jun 12 10:46 AM
what is the value to be given for :
I_FYV =
in the export part.
Regards,
2006 Jun 12 10:48 AM
2006 Jun 12 10:32 AM
Hi Mark,
U can Use this Function module to get the Fiscal year..
<b>*function module used to determine current fiscal year and period
CALL FUNCTION '/BEV3/CHPERIOD_DETERMINE'
EXPORTING
date = sy-datum
version = c_version
IMPORTING
period = l_period
year = l_fiscal_year
EXCEPTIONS
period_in_not_valid = 1
period_not_assigned = 2
version_undefined = 3
OTHERS = 4.
</b>
If not use GM_GET_FISCAL_YEAR
Regards,
Sridhar Reddy...
Message was edited by: sridhar reddy kondam
2006 Jun 12 10:34 AM
function module used to determine current fiscal year and period
CALL FUNCTION '/BEV3/CHPERIOD_DETERMINE'
EXPORTING
date = sy-datum
version = c_version -
>> ???
IMPORTING
period = l_period
year = l_fiscal_year
EXCEPTIONS
period_in_not_valid = 1
period_not_assigned = 2
version_undefined = 3
OTHERS = 4.
What is version.
Regards,
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |