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

BSIS Query performance issue.

dani_mn
Active Contributor
0 Likes
378

HI,

our BSIS table contains almost 10 millions records, now during check printing process when we are quering BSIS table for getting cost center from the line item.

it is taking almost 30-60 seconds which is slowing the check printing process.

 SELECT single * FROM BSAK
  WHERE BUKRS = COMP AND GJAHR = YR AND AUGBL = PDOC AND BELNR <> PDOC.

  SELECT SINGLE * FROM BSIS WHERE
  BELNR =  BSAK-BELNR  AND BUKRS = COMP AND GJAHR = YR
  AND ( HKONT LIKE 'A%' OR BLART = 'RE' ).

 kostl = bsis-kostl.

for getting cost center first it picks the FI document number from BSAK using Payment document number. and then getting cost center from bsis.

Is there any alternative way of getting cost center of document skiping BSIS.

Thanks,

2 REPLIES 2
Read only

Former Member
0 Likes
342

hi,

if you are firing this query regularly then create intex on bsis table.

performance can improve by creating index only.

regards,

raj

Read only

graghavendra_sharma
Contributor
0 Likes
342

Hi

I have a question here. If you are using SELECT SINGLE * ... then where from ENDSELECT came into picture?