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

SYNTAX ERROR

Former Member
0 Likes
1,015

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>

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
969

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.

9 REPLIES 9
Read only

Former Member
0 Likes
969

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.

Read only

Former Member
0 Likes
969

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..

Read only

Former Member
0 Likes
970

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.

Read only

Former Member
0 Likes
969

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.

Read only

former_member404244
Active Contributor
0 Likes
969

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

Read only

anupam_srivastava2
Participant
0 Likes
969

hi Anil

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

regards

AJ

Read only

Former Member
0 Likes
969

hi

check your both inter nal tables.

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

so check it.

Thanks,

prashant.

Read only

Former Member
0 Likes
969

Hi,

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

Now wat can in do.....

<b>Anil Kumar</b>

Read only

0 Likes
969

Hi Anil,

Can you paste your code here?

Then we can easily analyse your problem.

Thanks.