i have to fetch the data based on non primary key field from a pooled or clustered table, but for pooled and clustered tables we can't create secondary index then to achieve the performance what to do?
Answer / marek
I assume this question is not about SAP HANA, but the old fashion data bases.
You should avoid selection from cluster data base table. The better way to do this is to use base tables. For example if you want to select data from BSEG table you should use "lower level" tables like BSAK BSIK BSAD BSAK etc.
Also to achieve this you can use standard function module or some kind of BAPI designed for this purpose.
As always you should remember to use optimized WHERE part of the query and WHOLE key in exact the same order like it is in data base (of course this optimization practices can only be applied to one type of DB, Orcale and MS have different ways to optimize the SELECT statement). Additionally you should one import fields you need to, trying to avoid the '*' usage as much as possible. Using FOR ALL ENTRIES and INTO CORRESPONDING FIELDS is not efficient as well.
Is This Answer Correct ? | 0 Yes | 0 No |
How many domains will create for one data element?
Is a logical database a requirement/must to write an abap/4 query?
hi..i hav developed an interactive report in which alv list display in basic list and 1st secondary list in alv grid display.I want to get summation(total) of the columns in the secondary list.I hav used 'do_sum' but i couldnt get.is there any other way to get summation(total) in secondary list which is an alv grid display
What do you do when the system crashes in the middle of batch session?
Can we use transfer dataset to transfer data in internal table ?
list the important field symbol?
What is Group by in Select statement?
Can we create a data element without domain?
What are Tickets in Realtime ?
Where are you used type casting?
Can we use same Domain for more than Data element?
What are the 3 types of tables in sap? : abap data dictionary