Application Development 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: 

Can we create secondary index for table BKPF

former_member244346
Participant
0 Kudos

Hi Experts,

I have a requirement to fetch data from table BKPF based on some non key field filtration, below is the logic provided.

SELECT bukrs
belnr
gjahr
blart
budat
bvorg
xblnr
FROM bkpf
APPENDING TABLE t_bkpf_tmp
FOR ALL ENTRIES IN t_bkpf
WHERE gjahr = t_bkpf-gjahr
AND blart = c_zv
AND bvorg = t_bkpf-bvorg.

So here i have tried with open cursor method but still system giving time out error for this table,Can i created a secondary index for this filtration if i created secondary index whether it will impact to other's or not.

It will very help full for me if anybody give proper solution.

Thanks,

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

Look at the table BVOR to solve your requirement (JOIN it with BKPF)