06-04-2007 1:44 PM
Hi
I am running a program in which all the unicode changes have been made in single 6.0. It is giving dump while running. dump analysis shows that it is a type mismatch.
i think it is due to the type mismatch during assignment of single value field ( type C) to a structure which is not of type c.
t_steplist = t_data-data.
t_data is internal table containing field data (1000) type c.
t_steplist is internal table with header line of type structure xyz.
structure xyz is not of type c , it contain some intiger fields also but its first field is of type c of length 128 . I think for this assignment the length of first field should be greater then 1000.
Can any body confirm or give his suggestion.
Thanks in advance
Hemant
06-04-2007 2:14 PM
Hello Hemant
Probably class
CL_ABAP_CONTAINER_UTILITIES
with its static methodsFILL_CONTAINER_C Container vom Typ C oder STRING mit Inhalt füllen
READ_CONTAINER_C Container vom Typ C oder STRING lesen
may be helpful. Also have a look at thread
Regards
Uwe
06-04-2007 1:55 PM
Hi,
I think ur conclusion is true..u need to explicitly fill the structure using offsets instead of straight assign
santhosh
Message was edited by:
Kaluvala Santhosh
06-04-2007 1:59 PM
Hi,
U need to fill the structure using offsets explicitly .
Regards,
nagaraj
06-04-2007 2:11 PM
hi hemant,
try using Field-symbols...
data: begin of STRUC,
F1(3) type x,
F2(8) type p,
F3(10) type c
end of STRUC,
CONTAINER(1000) type c.
field-symbols: <C_STRUC> type c.
assign STRUC to <C_STRUC> casting.
<C_STRUC> = CONTAINER.
or try by using the FM SO_CHAR_TO_STRUCT
regards,
priya.
06-04-2007 2:14 PM
Hello Hemant
Probably class
CL_ABAP_CONTAINER_UTILITIES
with its static methodsFILL_CONTAINER_C Container vom Typ C oder STRING mit Inhalt füllen
READ_CONTAINER_C Container vom Typ C oder STRING lesen
may be helpful. Also have a look at thread
Regards
Uwe
12-04-2007 8:01 AM
12-04-2007 8:02 AM