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

Move field to a structure in a unicode compatible system.

Hi All,

Thank you for viewing this thread. I am working in an upgrade project. (upgrade from 4.6c to ECC 6.0 version)

As a part of it, In a custom function module , I am getting the below error.

"LS_BAPIMVKE" and "LS_BAPIMTCS-DATA" are not mutually convertible in a Unicode program.

The corresponding statement to which the error occurs in the function module is "MOVE ls_bapimtcs-data TO ls_bapimvke".

Here the ls_bapimtcs and ls_bapimvke are work areas of the structures with fields 12 and 59 respectively.

and ls_bapimtcs-data is of type char 4000 length. ls_bapimvke doesnt have such type of field.

Kindly suggest a solution for the successful activation of the function module.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 12:22 PM

    Hi,

    Use CL_ABAP_CONTAINER_UTILITIES->FILL_CONTAINER_C this method to move structure to field

    Use CL_ABAP_CONTAINER_UTILITIES->READ_CONTAINER_C this method to move field to structure

    Thanks

    Srilatha

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 24, 2009 at 12:16 PM

    Hi,

    try moving fields indivudually between the structures and see.

    Regards,

    Nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 12:18 PM

    Hi:

    use

    MOVE-corresponding ls_bapimtcs-data TO ls_bapimvk

    Regards

    Shashi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 12:20 PM

    HI Palakodety,

    Try to use the move-corrospoinding or

    move the individual fields of workarea...to another work area.

    hope it helps.

    Regards!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 12:22 PM

    Hi,

    use

    class----


    cl_abap_container_utilities

    method----fill_container_c.

    first declare varibale with string type.

    fill the data into the variable using above class and method and from varibale to your destination.

    thanks

    Vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 12:37 PM

    use the method: CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2009 at 12:42 PM

    Replace move statement with this code:

    FIELD-SYMBOLS: <mtcs> type any,

    <mvke> type any.

    assign LS_BAPIMVKE to <mvke> casting type c.

    assign LS_BAPIMTCS-data to <mtcs>.

    <mtcs> = <mvke>.

    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.