Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Select Query Taking Long time

$
0
0

Hi,

We have query which is inner join of two tables with for all entries, The query takes long time to run and its almost stuck nothing really happens. This has been running in past successfully. Below is the query:

 

SELECT a~opsl_gl_sys_no INTO CORRESPONDING FIELDS OF TABLE it_sysno

        FROM oiuh_rv_opsl AS a

        INNER JOIN oiuh_rv_gl AS b

        ON a~opsl_gl_sys_no = b~gl_gl_sys_no

        FOR ALL ENTRIES IN it_selection_fields

        WHERE a~opsl_own_no = it_selection_fields-owner_no

          AND a~opsl_own_seq_no = it_selection_fields-owner_seq_no

          AND b~gl_pd_cd = it_selection_fields-product_code

          AND b~gl_or_lvl_1_no = ls_company_org1-org_level1_no

          AND b~gl_sa_dt >= d_min_time

          AND b~gl_sa_dt < d_max_time.

 

If we query the View with same conditions in se16, we get the desired results. But the ABAP code takes lot of time.

 

Best Regards,

Pinto


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>