How the system identifies a 'Posting Period'? | SAP-FICO

Based on the posting date entered into the system while posting a document, the system automatically determines the period, by looking at the document date and the year. However, for this to occur you should have properly defined the fiscal year variant.