Quantcast
Channel: SCN : Unanswered Discussions - ABAP Testing and Troubleshooting
Viewing all articles
Browse latest Browse all 430

Performance difference on BT and EQ range

$
0
0

Hello Experts,

 

I am fairly new to ABAP. On program LM61RF86, there is a select statement that goes like this:

 

SELECT matnr werks FROM marc

            APPENDING CORRESPONDING FIELDS OF TABLE gt_mdmwz

            WHERE matnr IN ir_matnr

            AND   werks IN ir_werks_range

            AND   dispo IN ir_dispo

            AND   disgr IN ir_disgr

            AND   beskz IN ir_beskz

            AND   sobsl IN ir_sobsl

            AND   maabc IN ir_maabc

            AND   mmsta IN ir_mmsta

            AND   dismm IN ir_dismm.


This is being called when we use RMMD06NEW. If we pass select single values like below to the range ir_dispo it takes forever to get data from MARC.

SIGN          OPTION          LOW          HIGH

I                    EQ                 001

I                    EQ                 003


But why is it that when we pass range values like below, it is easily obtained.

SIGN          OPTION          LOW          HIGH

I                    BT                 001              003


What can you suggest for the range so that before it is passed to this program it can be handled easily. <removed by moderator>.


 

Message was edited by: Manish Kumar


Viewing all articles
Browse latest Browse all 430

Trending Articles



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