Skip to Content
author's profile photo
Former Member

SYNTAX ERROR

Hi All,

When I m executing my program, this message showing:

<b>"ITAB2" and the line of "ITAB4" are incompatible....</b>, wat it's reason....

Thanks & Regards,

<b>Anil Kumar</b>

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

8 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:15 AM

    Hi Anil,

    Check the Structure of Internal tables ITAB2 and ITAB4.

    If both of them has the Same structure mans only you can move data's from one internal to other Internal tanle.

    Thanks,

    Reward If Helpful.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:14 AM

    hi,

    both the internal table is should be same fields and same size too.

    then only u can move directly from one Itab2 to itab 4..

    regards.

    baskaran.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:14 AM

    ANIL... your structure of itab4 and itab2 are not same.. and u are trying to do something between this two table.. thats why it is showing error...

    change itab4's type to itab2's type... error will no more..

    reward points if useful..

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:15 AM

    hi,

    it means that table[with out header line] and work area are of not the same structure. check it.

    ur message shows that table itab2 is different from workarea itab4.

    if helpful reward some points.

    with regards,

    Suresh Aluri.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:17 AM

    Hi,

    u got the message because ITAB2 nad ITAB4 are of different structures..so what u can do is move the field one by one or use move-corresponding statement to move from one table to other..

    LOOP AT ITAB4.

    Move-corresponding itab4 to itab2.

    endloop.

    Regards,

    Nagaraj

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:18 AM

    hi Anil

    Define both tables ITAB2 and ITAB4 with header lines and should be of same fields and size.

    regards

    AJ

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:20 AM

    hi

    check your both inter nal tables.

    It must be have same size and same type of data fields.

    so check it.

    Thanks,

    prashant.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 09:20 AM

    Hi,

    I check my structure again, both tables....but it is same......

    Now wat can in do.....

    <b>Anil Kumar</b>

    Add comment
    10|10000 characters needed characters exceeded