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

Run-time error IMPORT_WRONG_END_POS

Former Member
0 Likes
1,259

Hi,

I get a dump after the 'Import' statement(ECC 5.0).

"Length of the target is different from the source".

EXPORT(in standard LV03RF0A):

EXPORT OUTPUT TO DATABASE INDX(SD) ID DA_SRTFD.

Structure of internal table OUTPUT is:

DATA: BEGIN OF OUTPUT OCCURS 1000.

INCLUDE STRUCTURE BV03R.

DATA: END OF OUTPUT.

One record is exported.

IMPORT(in Z-FM):

IMPORT OUTPUT FROM DATABASE INDX(SD) ID DA_SRTFD.

Structure of internal table OUTPUT is:

BV03R plus a couple of other fields.

Note:

(1) There is no dump in the previous version (4.6C).

(2) The key is different in 5.0(appended with date and time). That is, the export happens with key V03RSDV03V02<b>0828183456</b> Bold characters are appended in 5.0.

(3) If I correct the key in Z-function module, it gives this dump. If the key is the same as in the old system(V03RSDV03V02), there is no dump. But the data imported is different(1000 records instead of the one record).

(4) In INDX, an average record has length 1000. But the export that is happening in 5.0 has 393.

So eventhough the export is happening, I doubt if the export is happening properly.

Any help will be appreciated.

Santhosh.

3 REPLIES 3
Read only

uwe_schieferstein
Active Contributor
0 Likes
745

Hello Santosh

Perhaps you could give it a try and call the IMPORT statement with one of the following options:

...ACCEPTING PADDING.
...ACCEPTING TRUNCATION.

Look at the ABAP online documentation for details of these conversion options.

Regards

Uwe

Read only

0 Likes
745

Hi Uwe,

I've tried both. It does not work.

Thanks,

Santhosh.

N.B. : Could this be a Basis problem?

Read only

0 Likes
745

Hi,

did you get it resolved ? I have same issue. Please send me a mail with your findings/thoughts to rameshsa@yahoo.com

Regards,

-mty