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

Help with modifying the table.

Former Member
0 Likes
340

Hey folks,

I have a requirement where i have to modify the table

SELECT kunnr

hkunnr

FROM knvh INTO CORRESPONDING FIELDS OF TABLE gt_knvh FOR ALL ENTRIES IN gt_vbrk

WHERE kunnr = gt_vbrk-kunag.

SELECT kunnr

name1

FROM kna1 INTO CORRESPONDING FIELDS OF TABLE gt_kna11 FOR ALL ENTRIES IN gt_knvh

WHERE kunnr = gt_knvh-hkunnr.

LOOP AT gt_kna11 INTO gs_kna11.

gs_final1-hkunnr = gs_kna11-kunnr.

gs_final1-txt5 = gs_kna11-name1.

ENDLOOP.

And i want to modify GT_final1 how would i do it.

If i am using MODIFY statement its giving me a dump.

Thanks in advance.

Regards

Rock

2 REPLIES 2
Read only

Former Member
0 Likes
322

you must specify the index in the modify statement. and check that gs_final1 should not empty at that index..

else you should an append atatement....

Read only

Former Member
0 Likes
322

This is a duplicate post. Please see my answer in the other one.

Rob