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

unicode -program giving dump

Former Member
0 Likes
1,050

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

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
958

Hello Hemant

Probably class

CL_ABAP_CONTAINER_UTILITIES

with its static methods

FILL_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

6 REPLIES 6
Read only

Former Member
0 Likes
958

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

Read only

former_member404244
Active Contributor
0 Likes
958

Hi,

U need to fill the structure using offsets explicitly .

Regards,

nagaraj

Read only

Former Member
0 Likes
958

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.

Read only

uwe_schieferstein
Active Contributor
0 Likes
959

Hello Hemant

Probably class

CL_ABAP_CONTAINER_UTILITIES

with its static methods

FILL_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

Read only

Former Member
0 Likes
958

Thanks all

Read only

Former Member
0 Likes
958

Thanks