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

Performance improvement on BSEG table

Former Member
0 Likes
1,222

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

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
Read only

former_member235395
Contributor
0 Likes
1,046

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,046

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)