2012 May 23 8:01 AM
Hi experts,
I ran a trace on one of our SAP transactions and found that the performance can be improved by creating an index on VBPA table.
The trace shows as below:
As per this the order of where clause shows as:
But, when I check in VBPA table, the fields are in the order:
Please let me know which order should be followed while creating a secondary index.
Hi experts,
I ran a trace on one of our SAP transactions and found that the performance can be improved by creating an index on VBPA table.
The trace shows as below:
As per this the order of where clause shows as:
But, when I check in VBPA table, the fields are in the order:
Please let me know which order should be followed while creating a secondary index.
2012 May 23 8:37 AM
Instead of creating an index for VBPA, rather try using tables VAKPA or VRKPA for efficiently finding sales documents for a specific partner.
Thomas
2012 May 23 8:44 AM
Hi Thomas,
Thanks, but, this is for FD32 transaction. And the client does not want to stop using FD32 (they are not ready to execute the report RFDKLI20 in background).
2012 May 23 8:48 AM
2012 May 23 8:50 AM
I can see an inactive index on VBPA for IS-Media, the fields are:
MANDT
PARVW
KUNNR
This looks sufficient for your purpose as well, why not take the SAP standard as an example.
Thomas
2012 May 23 8:52 AM
Raymond, the solution of index creation is from the same note.
2012 May 23 8:54 AM
Yes Thomas, I saw that too, but will activating this SAP provided index help in our case?
As per the trace the order of where clause on VBPA shows as:
This is exactly why I am a little concerned, because of the order in which the fields KUNNR and PARVW appear.
2012 May 23 9:06 AM
2012 May 23 9:15 AM
The order of the fields in the where-clause and in the index does not need to match exactly, what's important is that your index contains the relevant fields for providing a good selectivity when the query hits the database. Since the query has EQ-conditions for PARVW and KUNNR, this will work fine.
Thomas
2012 May 23 8:41 AM
First read Note 185530 - Performance: Customer developments in SD for information on sales document indexes to read for better performance.
Regards,
Raymond
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |