IsPeriodOpen

Indicates whether a period is open. Since periods in Financial Management apply to years and scenarios, you must pass the member IDs of the applicable scenario and year in addition to the member ID of the period.

Tip:

You should call IsPeriodOpen before calling methods such as PostJournals and UnpostJournals that require an open period. If a period is not open, open it with OpenPeriod. For information on opening periods, see OpenPeriod.

Syntax

<HsvJournals>.IsPeriodOpen lCategory, lYear, lPeriod, pnRc

Argument

Description

lCategory

Long (ByVal). The member ID of the Scenario dimension member.

lYear

Long (ByVal). The member ID of the Year dimension member.

lPeriod

Long (ByVal). The member ID of the Period dimension member to be checked.

pnRc

Integer. Returns -1 is returned if the period is open, or 0 if the period is unopened or closed.