Hi,
Invoice can be posted in back period if MM period and FI period are allowed/open in transaction code MMRV( back posting allowed) and OB52 respectively.
In OB52,only open present period.
You can check to control with FI_PERIOD_CHECK and FI_PERIOD_DETERMINE.
Regards,
Biju K