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

Error during IMPORT and Export Using Memory Cluster from Database

Former Member
0 Likes
1,173

IMPORT itab1 TO itab2 FROM DATABASE Table(sd) ID var.

Here itab1 and itab2 use the same structure (zstructure) .

When i add new fields to the zstructure in SE30 then it gives a dump

5 REPLIES 5
Read only

Former Member
0 Likes
729

Please share your export statement. Is Zstructure locally defined? .. Also SE30 is for runtime analysis ..how are you modifying structure there ...if the structure is defined locally in the report ...please make sure its modified at both place during Export and Import statment ..

Read only

Former Member
0 Likes
729

Sorry I changed the question which did not reflect previously

IMPORT itab1TO itba2 FROM DATABASE z_database(sd) ID field.

the table is a database table and I add new fields to the structure.

itab1 TYPE STANDARD TABLE OF ZSTRUCTURE. "both internal tables call the same zstructure

itab2 TYPE STANDARD TABLE OF ZSTRUCTURE.

When I change add a new fields in the Z structure it dumps.

Lets say i add a field z_new which is NUMC 3 it points to that and says it does not recognize the structure

Read only

0 Likes
729

EXPORT itab1 FROM itab3TO DATABASE z_table(sd) ID fld.

Also the itab1 and itab3 are type standard table of zstructure

During dump it says it doesnt recognize the third field that i added. (I added my field in the 3rd position of the structure)

Will it not dump if i add the fields at the end????? (is position an issue)

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
729

Hello,

Is your custom table Z_TABLE modelled on standard SAP table INDX? In simpler terms you should copy INDX table into your custom table in order to IMPORT/EXPORT data.

Also check the proper syntax by doing an F1.

BR,

Suhas

Read only

Former Member
0 Likes
729

If I export itab1 to my INDX-like table, then change the structure of the itab1 object, then IMPORT itab1from my INDX-like table, I would expect to get a dump because the structure of my custom table changed, but my data stored in the INDX-like table clusters did not, and therefore SAP cannot import it into the changed structure.

It seems only logical to me that if I change the structure, I must EXPORT the data AFTER the structure changed. Then, I will be be able to import it without difficulty. Did you export after the structure changed? Or, did you change the structure after export?