Hi Linda,
Instead of fetching data from BSEG Table, can you try the same in the following tables.
INDEX TABLES:
- BSID- Accounting: Secondary Index for Customers (Open Items)
- BSAD- Accounting: Secondary Index for Customers (Cleared Items)
- BSIK- Accounting: Secondary Index for Vendors (Open Items)
- BSAK- Accounting: Secondary Index for Vendors (Cleared Items)
- BSIS- Accounting: Secondary Index for G/L Accounts (Open Items)
- BSAS- Accounting: Secondary Index for G/L Accounts (Cleared Item)
Please find the link below.
How SAP addressed the performance issues with cluster table BSEG? - ABAP Development - SCN Wiki
Regards
Rajkumar Narasimman