06-29-2007 7:07 AM
Hi,
How can i get the perid start and end dated by giving month and year.
Can any ine tell me the function module,
and also first and last date from calender by giving the month and year.
Thanks
06-29-2007 7:17 AM
Hi,
check this below fun module
CALL FUNCTION 'FI_PERIOD_DETERMINE'
EXPORTING
i_budat =
I_BUKRS = ' '
I_RLDNR = ' '
I_PERIV = ' '
I_GJAHR = 0000
I_MONAT = 00
X_XMO16 = ' '
IMPORTING
E_GJAHR =
E_MONAT =
E_POPER =
EXCEPTIONS
FISCAL_YEAR = 1
PERIOD = 2
PERIOD_VERSION = 3
POSTING_PERIOD = 4
SPECIAL_PERIOD = 5
VERSION = 6
POSTING_DATE = 7
OTHERS = 8
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
06-29-2007 7:26 AM