Skip to Content
0
Former Member
Sep 14, 2010 at 06:08 AM

Need help in processing internal table

14 Views

Hi all,

Im facing a problem in processing an internal table..especially with MODIFY.

The internal table is having following records.(t_vttp)

TKNUM       VBELN      KUNNR       NAME1                             LAND1
0000975179|0071004839|0000022946|HUNTSMAN APC LIMITED               |SA   |
0000975180|0071004845|0000022946|                                   |     |

In the above, there are two delviry documents with same customers.

The customer data is coming from different internal table.

LOOP AT t_vttp.

READ TABLE t_kna1_temp INTO wa_kna1_temp WITH KEY kunnr = t_vttp-kunnr.

IF sy-subrc = 0.

t_vttp-name1 = wa_kna1_temp-name1.

t_vttp-land1 = wa_kna1_temp-land1.

MODIFY t_vttp INDEX sy-tabix TRANSPORTING name1 land1.

ENDIF.

ENDLOOP.

Here for second record,,the customer name and country is nt getting populated to t_vttop.

Pls correct where it is going wrong.

Thanks,

Priya