Application Development 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: 

Import of data cluster ends with mismatch exception, CX_SY_IMPORT_MISMATCH_ERROR

Former Member
0 Kudos

Hi,

I was trying to import a data cluster using IMPORT ... FROM DATABASE AQRDB(lv) ID id statement, and CX_SY_IMPORT_MISMATCH_ERROR exception was thrown because "when importing object FIELDCAT the structure did not match the structure of the target object". So, it seems like there is a field in FIELDCAT structure that has a different type than the equivalent field of the structure in data cluster. Is there any way to look up that structure in data cluster so that I can change FIELDCAT structure's field? I tried looking into database table aqrdb, but I could only see cluster index, and don't know how to get the actual data.

IMPORT fieldcat = fieldcatalog
layout   = layout
SORT     = SORT
FROM DATABASE aqrdb(lv)
TO wa
ID l_srtfd_pattern IGNORING CONVERSION ERRORS.

1 ACCEPTED SOLUTION

Private_Member_7726
Active Contributor
0 Kudos

Hi,

Program RSINDX00 does allow to glean some information about the component lengths and types, but if the Fieldcat has deep/structured components, it will merely allow to guess, which structure has changed (has different length).

Other than that, maybe CL_ABAP_EXPIMP_UTILITIES could be of help (after applying 1282630 - EXPORT/IMPORT: Improvement of analysis tools if its relevant, though that Note does require kernel patches...). I have not actually tried using CL_ABAP_EXPIMP_UTILITIES, so I can't advise on what it can.

Edit in: CL_ABAP_EXPIMP_UTILITIES=>DB_GET_DIRECTORY allows (on SAP Basis 702) to basically get in an internal table the same unsatisfactory information RSINDX00 displays...

cheers

Janis

1 REPLY 1

Private_Member_7726
Active Contributor
0 Kudos

Hi,

Program RSINDX00 does allow to glean some information about the component lengths and types, but if the Fieldcat has deep/structured components, it will merely allow to guess, which structure has changed (has different length).

Other than that, maybe CL_ABAP_EXPIMP_UTILITIES could be of help (after applying 1282630 - EXPORT/IMPORT: Improvement of analysis tools if its relevant, though that Note does require kernel patches...). I have not actually tried using CL_ABAP_EXPIMP_UTILITIES, so I can't advise on what it can.

Edit in: CL_ABAP_EXPIMP_UTILITIES=>DB_GET_DIRECTORY allows (on SAP Basis 702) to basically get in an internal table the same unsatisfactory information RSINDX00 displays...

cheers

Janis