Skip to Content
0
Former Member
Dec 04, 2006 at 07:27 AM

Linking BSID-Kunnr to KNA1-Kunnr to get KNA1-Name1

560 Views

hi Friends,

here io am linking BSID-Kunnr to KNA1-Kunnr to get KNA1-Name1 using For all entries, but i am getting error stating

"When u use the addition For all entries in , the field kunnr n itab-zuonr must have the same type and the same length."

here is the code snippet.

select kunnr zuonr bukrs from bsid into corresponding fields of table

it_bsid up to 100 rows.

if sy-subrc = 0.

if not it_bsid[] is initial.

select kunnr name1 name2 stras ort01 regio pstlz from kna1

into corresponding fields of table it_kna1

for all entries in it_bsid

where kunnr eq it_bsid-zuonr.

endif.

endif.

please let me know if anybody have solution.

Regards,

Anil kumar P