cancel
Showing results for 
Search instead for 
Did you mean: 

length error occured in IMPORT statement

Former Member
0 Kudos

Hello everyone,

i hv one requirment in PO print(ME23N). in po print asset no nt display without changing other format.

so that i first copy both smartform and driver program, in that i made certain changes such that i declare the patameter p_ebeln and i comment to data statement of p_ebeln & p_ebeln = nest-objky.

then i join asset no (anek-anln1) with the help of inner join. then in smartform i gave condition that if bsart = 'ZCAP'

wa_final-anln1 = gv_anln1.

endif.

i import gv_anln1 in smartform and exported in deriver program.

both are synthetically currect but when i gave print preview dump is occured.

length error occured in IMPORT statement

Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was

not caught in

procedure "%GLOBAL_INIT" "(FORM)", nor was it propagated by a RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

During import the system discovered that the target object has

a different length than the object to be imported.

what i do?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

nast-objky lenght is 30 and ebeln length is 10.

you can write this logic in smartfrom itself....

Former Member
0 Kudos

Hello,

but i commented that statement in driver program. than what to do?

how to write coding in smartform or in driver program for asset no?

is that tavle is write for inner join for asset no?

reply

Former Member
0 Kudos

in your smart form you ebeln number

based on the ANEK-EBELN eq your print porgram EBELN

in smartfrom create program lines then you can write your code....

Former Member
0 Kudos

Hello,

can u send me coding for that?

program line is already created for that

and their first coding is like that,

if gv_bsart = 'ZCAP'.

wa_final-matnr = space.

endif.

and in text they fetch matnr no.

but as per requirement they want asset no when bsart = 'ZCAP'

how that asset no will come.

matnr comes there is bsart is other that ZCAP, but bsart = ZCAP they want asset no instead of matnr.