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

'No component exists with the name ' Error.

Former Member
0 Likes
8,181

Hi,

I am using vbak, vbap, and kna1 tables to get sales order information. it_so and It_cu are my internal tables. To get the customer name from kna1 table, used the second query.

my query is:

select avbeln aaudat akunnr bposnr b~matnr

into corresponding fields of table it_so

from vbak as a

inner join vbap as b

on avbeln = bvbeln.

select kunnr name1

into table it_cu

from kna1

for all entries in it_so

where kunnr = it_so-kunnr.

For the above, I am getting "No component exists with the name KUNNR.

Please help. What I am doing wrong?

Thanks in advance.

Hi,

I am using vbak, vbap, and kna1 tables to get sales order information. it_so and It_cu are my internal tables. To get the customer name from kna1 table, used the second query.

my query is:

select avbeln aaudat akunnr bposnr b~matnr

into corresponding fields of table it_so

from vbak as a

inner join vbap as b

on avbeln = bvbeln.

select kunnr name1

into table it_cu

from kna1

for all entries in it_so

where kunnr = it_so-kunnr.

For the above, I am getting "No component exists with the name KUNNR.

Please help. What I am doing wrong?

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
2,788

Hi ,

Try this logic.

select a~vbeln

a~audat

a~kunnr

b~posnr

b~matnr

into corresponding fields of table it_so

from vbak as a

inner join vbap as b

on avbeln = bvbeln.

if it_so[] is not initial.

select kunnr

name1

into table it_cu

from kna1

for all entries in it_so

where kunnr = it_so-kunnr.

endif.

Read only

0 Likes
2,788

Hi Thanks for the reply. No still not working.getting the same message.

I wrote these two queries in two different from.......endform. But it does not make any difference. Right?

Thank you.

Read only

0 Likes
2,788

Resolved the problem. I did not give Kunnr in internal table.

Thanks.