Allowed OB52 based on company code

If you have several company codes and want your users only to be able to open and close periods (transaction OB52) belonging to their posting period variant (=company code). 

First you configure the Posting Variant :-

1) FI- FI Global Settings - Document - Posting Periods - Define Variants for Posting Periods 

2) FI- FI Global Settings - Document - Posting Periods - Assign Variants to Company Code
 

Second Step:-

Goto SE11 copy the view V_T001B to ZV_T001B_000X (000X indicate the Posting Varient)

In Change mode, tabstrips Selection Conditions Insert line 2 with

Table     Field Name   Operator   Comparative Value    AND/OR
T001B   BUKRS           EQ            '000X'                          AND

Save your entries
 

Third Step :-

Goto SE54, Options Generated Objects -> Create

Authorizations Group  FC31
Function Group          Z00F0
Maintenance Type     One Type
Overview Screen       65
Single Screen             0
 

Final Step :-

Goto SE93, Create a new transaction code ZOB52_000X

Start object - Transaction with parameters (parameter transaction)

Transaction SM30, Tick Skip initial screen

Name of screen field       Value
VIEWNAME                     ZV_T001B_000X
UPDATE                           X

Save your entries.

Now, test your new transaction code ZOB52_000X which will only display the Posting Variant that you have define in your table view.

SAP FI/CO Tips

See Also
Open and Close Posting Periods

SAP Books
SAP FICO Books  - Certification, Interview Questions and Configuration

SAP FICO Tips
SAP FI/CO Tips - Financial Accounting/Controlling

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.