Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

optimizing queries to table BSEG

mayra_cobo
Explorer
0 Likes
945

Hi,

I would like to know if there is a way of optimizing queries to tables BKPF and BSEG.

Thanks in advance.

Regards,

Mayra

3 REPLIES 3
Read only

Former Member
0 Likes
678

That depends on the query you execute against MKPF or MSEG.

As a general method, you may consider adding indexes on these tables accordingly to the most frequent queryes that manipulate their content.

Again, the index (its structure) depends on the structure of the corresponding queryes.

Bogdan

Read only

0 Likes
678

Sorry, ofcourse I meant BKPF and BSEG (not MKPF and MSEG), the rest still remains true

Read only

Former Member
0 Likes
678

Mayra,

It depends on data you have to read those table. But you may consider to use so called secondary index tables:

BSAD Accounting: Secondary index for customers (cleared items)

BSAK Accounting: Secondary index for vendors (cleared items)

BSAS Accounting: Secondary index for G/L accounts (cleared items)

BSID Accounting: Secondary index for customers

BSIK Accounting: Secondary index for vendors

BSIM Secondary Index, Documents for Material

BSIS Accounting: Secondary index for G/L accounts

regards,

Andrzej