2006 Aug 29 6:11 AM
Hi all,
Does the declaration of ranges using an internal table.
eg : DATA: BEGIN OF r_saknr OCCURS 0,
sign TYPE c LENGTH 1,
option TYPE c LENGTH 2,
low LIKE ska1-saknr,
high LIKE ska1-saknr,
END OF r_saknr .
Affect the performance..
Or is the below definition faster...
ranges: r_saknr for ska1-saknr.
Can u please help me in deciding this..It is urgent.
Thanks and Regards,
Seema
2006 Aug 29 6:14 AM
2006 Aug 29 6:15 AM
<b>ranges: r_saknr for ska1-saknr.</b>
this is better. because you can use 'IN' operator with 'RANGES' declaration not with internal table.
Regards,
2006 Aug 29 6:16 AM
Hi,
Both are same..Ranges will internally declare the internal table like the one you have declared..
I believe performance will not be affected by this..
Thanks,
Naren
2006 Aug 29 6:23 AM
range is better option but i don't think it effect on performance of ur code....
use that one which u feel easy....
2006 Aug 29 7:01 AM
try to USE option = 'BT' over option = 'EQ'.
like
1.matnr range = 1 - 10 which gives good performance than
2.matnr = 1
= 2.....etc.
u have to reduce the DB cost.
check DBcost in ST05.
Regards
Prabhu