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

error when selecting bkpf table

Former Member
0 Likes
550

select single belnr

into it_data-belnr

from bkpf

where awkey = it_vbrp1-vbeln and

blart = 'RV'.

above code i am using for selecting bkpf table , actually key field are not useful in this case & hws to use index.

plz reply.

Thanks,

Jyotsna

3 REPLIES 3
Read only

Former Member
0 Likes
507

Hi,

Create a Secondary index on the field AWKEY. Check this link as to how to create a secondary index.

[]

Regards,

Vikranth

Read only

Former Member
0 Likes
507

HI,

Atleast company code(BUKRS) & fiscal year(GJAHR) can be filled, which wont affect performance, along with AWKEY.

Regards,

Amit

Read only

Former Member
0 Likes
507

Hi,

select single belnr

into it_data-belnr

from bkpf

where awkey = it_vbrp1-vbeln and

blart = 'RV'.

In above query what is it_vbrp1-vbeln? if it is internal table you are missing some thing like For all entries in it_vbrp1.Check it once.