Skip to Content
author's profile photo Former Member
Former Member

BSIK select data

Hi experts,

I am preparing a service tax report.

I am fetching the data from BSAK and BSIK table based on the reference no. from BKPF table.

I understand the data would be very huge but when I am extracting data from other tables it is working fine

but when I am fetching data from BSIK table based on reference no. it is taking very long time.

In fact when I checked in debugger there are only 44 reference nos. but it is taking very long time i guess around 30-35 mins.

Although it took some seconds to fetch from BSAK table for same no. of references.

I checked in table through DD and there are 525 entires for that reference nos.

I don't know what is d prob while fetching. I have not created any indexes also for BSIK, der is some prob which I am not gettin.

So if any1 can plz suggest sumthing for it since now report is takin almost an hour for executing which is unacceptable.

Thanx.

Anil.

Moderator message - Moved to the correct forum

Edited by: Rob Burbank on Aug 13, 2009 8:59 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 12, 2009 at 04:22 PM

    hi,

    Post the select query you are using so that you can receive suggestions on improving the performance

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Something sounds bad:

      I don't want to change d logic since I want clearing date which is present in BSAK/BSIK.

      BSIK is the index table with open vendor item only, so the clearing date will be initial there, so it's useless to select the record from BSIK.

      But d thing I m not gettin is why it is taking so much time to fetch data from BSIK whereas for same reference nos. it is took very less time to fetch data from BSAK.

      Probably BSAK table have a secondary index with field XBLNR and BSIK hasn't it, have you checked the secondary index?

      Anyway u should consider BSAK and BSIK table are index table for Vendor accounting, so if you don't have the vendor code it should be better not to use them.

      Max

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 05:48 PM

    Please see:

    [Using an Index When You Don't Have all of the Fields|/people/rob.burbank/blog/2006/09/13/using-an-index-when-you-dont-have-all-of-the-fields]

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Max,

      I m not a functional person so I don't have much knowledge about it, but acc. to my FI consultant BSIK is needed since v need partial payment data which is present only in BSIK table.

      So I have to go to BSIK table for partial payment data.

      I hope u have got it.

      My only concern is d time taken to execute the BSIK select query not the report which is around 30-35 mins.

      kindly suggest sumthin.

      Anil.

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2009 at 01:18 PM

    XBLNR is not a key field in BSIK. Better create a secondary index for MANDT, BUKRS & XBLNR and check. This will surely improve the performance.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.