Application Development 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: 

Performance improvement on BSEG table

former_member186052
Active Participant
0 Kudos
314

Hi,

For one of our programs, we are hitting BSEG table with ZUONR value and BSCHL as '01' values.

The program is taking too long just of this query and causing performance issue.

Is there any alternative through which we can achieve better performance using ZUONR and BSCHL? all we need is just the BELNR.

I've checked couple of threads and tried alternating the solution with BSID/BSAD but couple of cases are failing.

Any help would be highly appreciated!

Thanks,

Sandeep Kumar S

2 REPLIES 2

former_member235395
Contributor
0 Kudos
138

Hi Sandeep,

Avoid get records from BSEG Table, for that use the Auxiliar Tables:

For Vendors: BSAK(Cleared Items) / BSIK (Open Items)

For Customers: BSAD(Cleared Items) / BSID (Open Items)

For G/L account: BSAS(Cleared Items) / BSIS (Open Items)

Regards

raymond_giuseppi
Active Contributor
0 Kudos
138

Which problem did you get with BSID/BSAD 'couple of cases are failing' ?

Note that depending on your actual requirement, you may have to select from both tables (cleared or not-cleared item)