Skip to Content
0
Former Member
Jan 09, 2008 at 10:34 PM

Problem with TRANSPORTING field inside a loop

17 Views

Hi,

Problem with TRANSPORTING field inside a loop

Please see code below and advice

The fields dont get updated FKART & TABIX

DATA : BEGIN OF ITAB OCCURS 0,

VBELN LIKE VBRK-VBELN,

FKART LIKE VBRK-FKART,

VKORG LIKE VBRK-VKORG,

TABIX LIKE SY-TABIX,

END OF ITAB.

DATA : WA_ITAB LIKE LINE OF ITAB.

DATA : IT_ITAB LIKE STANDARD TABLE OF ITAB WITH HEADER LINE.

.

SELECT VBELN FKART VKORG FROM VBRK INTO TABLE IT_ITAB

WHERE VBELN IN S_VBELN

AND VKORG = P_VKORG.

LOOP AT IT_ITAB INTO WA_ITAB.

CLEAR i_lines.

WA_ITAB-TABIX = SY-TABIX.

WA_ITAB-FKART = 'RAS'.

MODIFY TABLE IT_ITAB FROM WA_ITAB TRANSPORTING TABIX FKART.

Table doesnt get modified ?????

ENDLOOP.