SAP Functional, Basis and ABAP Programming Reference Books
Open and Close Posting Periods

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.
 

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com