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

Query due which the report is failing with TIME_OUT.

SELECT adrstreet~strt_code

adrstreet~city_code

adrstreet~commu_code

adrstreet~regiogroup

adrpcdcity~post_code

INTO TABLE gt_adrstreet

FROM adrstreet

INNER JOIN adrpcdcity ON adrpcdcitycity_code = adrstreetcity_code

FOR ALL entries IN gt_street_district

WHERE adrstreet~strt_code = gt_street_district-strt_code.

Can you please suggest in which way the performance of the above query can be improved to avoid the performance issue.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2010 at 08:28 AM

    Hi,

    Check for gt_street_district is not initial before select.

    Sujay

    Edited by: Sujay Venkateswaran Krishnakumar on Oct 14, 2010 1:58 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2010 at 08:47 AM

    Hi ,

    SELECT adrstreet~strt_code
    adrstreet~city_code
    adrstreet~commu_code
    adrstreet~regiogroup
    adrpcdcity~post_code
    INTO TABLE gt_adrstreet
    FROM adrstreet
    INNER JOIN adrpcdcity ON adrpcdcity~city_code = adrstreet~city_code
    FOR ALL entries IN gt_street_district
    WHERE adrstreet~strt_code = gt_street_district-strt_code.

    Before using all entries in gt_street_district , CHECK if gt_street_district[] is not initial .

    and also see all primary key fields of tables are there in select statement and workarea declared .

    if gt_street_district[] is not initial .

    SELECT adrstreet~strt_code

    adrstreet~city_code

    adrstreet~commu_code

    adrstreet~regiogroup

    adrpcdcity~post_code

    INTO

    corresponding fields of

    table TABLE gt_adrstreet

    FROM adrstreet

    INNER JOIN adrpcdcity ON adrpcdcitycity_code = adrstreetcity_code

    FOR ALL entries IN gt_street_district

    WHERE adrstreet~strt_code = gt_street_district-strt_code.

    endif.

    Regards

    Deepak.

    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.