I have the following loop, to get the customer name. I have 9 records for the selection and after execution I am able to see only one customer name, because I am not catching it in the loop. How to do it. and where should I clear NAME1.
LOOP AT ITAB_LIKP.
AT NEW KUNNR.
SELECT SINGLE NAME1 FROM KNA1 INTO TNAME1
WHERE KUNNR = ITAB_LIKP-KUNNR.
LOOP AT ITAB_LIPS.