Skip to Content
author's profile photo Former Member
Former Member

unicode -program giving dump

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Jun 04, 2007 at 01:14 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 04, 2007 at 01: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 04, 2007 at 12: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 04, 2007 at 12:59 PM

    Hi,

    U need to fill the structure using offsets explicitly .

    Regards,

    nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 08:01 AM

    Thanks all

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 08:02 AM

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.