Sometimes, when we create the new account doucment, it will give error message 'period XXXXXX is not open', for this reason, we can use TCODE:OB52 to open the conressponding period.
Define the posting company code variant in SM30 - V_T010O
Assign the company code variant in SM30 - V_001_R
Maintain the open and close posting period with OB52.
You can control period by : -
1. G/L number range.
2. Company code.
3. Company code and G/L range.