Application Development 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: 

Fiscal period dates

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

its asking for date...but i have only month and year