Skip to Content
author's profile photo Former Member
Former Member

Problem with TRANSPORTING field inside a loop

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 10:52 PM

    MODIFY TABLE IT_ITAB FROM WA_ITAB TRANSPORTING FKART TABIX.

    use the above code and let me know whether table is modified or not

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 10, 2008 at 12:44 AM

    Hi Ramesh,

    use MODIFY IT_ITAB FROM WA_ITAB TRANSPORTING TABIX FKART.

    Regards,

    Amal

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.