Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

file index usage

Former Member
0 Likes
531

Hello Friends,

After creating and index on a file how can I address this index in my ABAP program (ie select staement)?

Thx in advance.

Ali

1 ACCEPTED SOLUTION
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
476

How did you create an index on <b>a file</b>? SELECT statement is to select the data from database, not to read a file.

For information on the SELECT optimization see 'Performance hints for Open SQL Programming' chapter in ABAP help or <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3b7e358411d1829f0000e829fbfe/content.htm">here</a>.

3 REPLIES 3
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
477

How did you create an index on <b>a file</b>? SELECT statement is to select the data from database, not to read a file.

For information on the SELECT optimization see 'Performance hints for Open SQL Programming' chapter in ABAP help or <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3b7e358411d1829f0000e829fbfe/content.htm">here</a>.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
476

Abap and DB server chose dynamicallly from which index they read data. If you use the exact key of the index the program MAY (and usually do) use it.

regards

Read only

0 Likes
476

Re:

A collegue informed me about the existence, according to the Database System, of a parameter %_HINTS which on certain system allows to force the choice of the index used by SELECT

Ex :%_HINTS MSSQLNT 'TABLE <tablename> ABINDEX(<suffix>)'. on a MS SQL Server

Look at OSS note with keywords "Open SQL", "%_HINTS" and filter result with your Database System. (DB2, Oracle, and the like)

Best regards