on 04-27-2009 12:13 PM
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?
nast-objky lenght is 30 and ebeln length is 10.
you can write this logic in smartfrom itself....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.