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 to rectfy

Former Member
0 Likes
996

Hi ,

When iam running the same report in NON ECC system it working fine , when iam comming and running the same report in ECC iam getting below error .can any one give me suggtion on the same .

Error ...

The types for the database table and work area (or internal table)"IT_RECORD" are not compatible. .

Internal table structure every thing are same ...

Regards,

Sri

10 REPLIES 10
Read only

Former Member
0 Likes
961

Hi

I think database table structure may be enhanced. Please check

Kiran

Read only

Former Member
0 Likes
961

Hi,

Check the internal table structure and Workarea structure should be same in ECC(unicode environment)

Read only

Former Member
0 Likes
961

I think it definitely is a case of database structure being changed... !!

Read only

0 Likes
961

Hi ,

What will be solution for this ?

Regards,

SRI

Read only

0 Likes
961

Solution would be the structure of both the internal tables should be same.

I hope you are trying to move data from one internal table to another internal table. In those internal tables one have header line and another one does not have header line.

Please check this.

If your problem is not solved still. Please give me the problem clearly. so that i can give u solution.

Regards,

Ajay

Read only

0 Likes
961

hi

How u delceared the internal table?

Declare lik :

data : itab type table of kna1.

Kiran

Read only

0 Likes
961

Hi SRIRAM,

In ECC, The structures need to be exactly same. Even If there is a single difference, It will throw an error.

Can you tell the exact statement where you are getting the error so that I can tell you the replacement.

If it is move, then use Move-corresponding.

Else, give me the exact code.

Read only

0 Likes
961

Below where iam getting error,

modify ZAML_STAGING from table it_record.

Regards,

SRI

Read only

0 Likes
961

Hi Sri,

In the statement modify ZAML_STAGING from table it_record, the structures of the table and the internal table are different. So in unicode programs it will throw an error.

Try using the following solution.

FIELD-SYMBOLS: <wa> TYPE ANY.

LOOP AT it_record into wa_record.

ASSIGN wa_record to <wa> casting type ZAML_STAGING.

MODIFY zaml_staging FROM <wa>.

ENDLOOP.

Hope this works.

Thanks!!

Rakesh.

Read only

Former Member
0 Likes
961

There are various SAP notes avaliable for these types of issues.

you have to find the same and implement it.