‎2009 May 06 8:04 AM
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
‎2009 May 06 8:06 AM
Hi
I think database table structure may be enhanced. Please check
Kiran
‎2009 May 06 8:07 AM
Hi,
Check the internal table structure and Workarea structure should be same in ECC(unicode environment)
‎2009 May 06 8:09 AM
I think it definitely is a case of database structure being changed... !!
‎2009 May 06 8:18 AM
‎2009 May 06 8:24 AM
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
‎2009 May 06 8:24 AM
hi
How u delceared the internal table?
Declare lik :
data : itab type table of kna1.
Kiran
‎2009 May 06 8:31 AM
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.
‎2009 May 06 8:37 AM
Below where iam getting error,
modify ZAML_STAGING from table it_record.
Regards,
SRI
‎2009 May 06 9:01 AM
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.
‎2009 May 06 8:33 AM
There are various SAP notes avaliable for these types of issues.
you have to find the same and implement it.