04-21-2008 10:19 AM
hi i have to derive beginning of financial year from system date.
e.g. if my system date is 21.04.2008 , my beginning of financial year will be 01.04.2008.
how to derive this ?? is there any function ??
04-21-2008 10:37 AM
Try this method
take the month let it be M.
take the year let it be Y
new date = ND
IF M GE 10.
ND+4(2) = M- 9.
ND0(4) = Y 1.
ELSE.
ND+4(2) = M + 3.
ND+0(4) = Y.
ENDIF.
04-21-2008 10:42 AM
hi the financial years for a given client will be stored in table T7PM9 get the data from this table ..
regards,
venkat.
04-21-2008 10:43 AM
try to use this function module to get the beginning of the fiscal year : RS_VARI_V_1_ACTUAL_MONTH
Reward if it useful.
Dara.
04-21-2008 10:48 AM
You can use the Function Module
ZPSN_GET_PERD_YEAR_FROM_DATE
to get the financial year from calender year.
The FM returns the Financial Period and Financial year based on the
Calender date given as the input.
04-21-2008 10:55 AM
Hi,
Use the below code.
DATA: V_DATE TYPE SY-DATUM.
V_DATE = SY-DATUM.
IF V_DATE+4(2) > '03'.
CONCATENATE V_DATE+0(4) '04' '01' INTO V_DATE.
ELSE.
V_DATE0(4) = V_DATE0(4) - 1.
CONCATENATE V_DATE+0(4) '04' '01' INTO V_DATE.
ENDIF.
WRITE:/ V_DATE.