Skip to Content
author's profile photo
Former Member

not mutually convertible in unicode program...

hi,

in my program, an structure of type BAPE_VBEP is being assigned to a field say valuepart3 in BAPIPAREX structure as follows:

l_bapiparex-valuepart3 = v_bape_vbep.

note that bape_vbep has additional fields apart from vbeln, posnr and etenr..

but during compilation, i get the error " bothe are not mutually convertible in unicode program:. what does that mean and how to resolve that..

thks

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Posted on Mar 27, 2009 at 08:27 PM

    there might be some type miss match, with the parameter you are passing to the structure.. check them

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Mar 27, 2009 at 08:28 PM

    In unicode environment you will get this error if the structures are not same.

    Try moving each field individually in the required structure either by using

    l_bapiparex-valuepart3-<Field1> = v_bape_vbep-field1.

    Or

    MOVE v_bape_vbep-fied1 TO l_bapiparex-valuepart3-field1

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      OK..But I did not get this error in another program where the variable aa was a char 128 field and variable bb was a user defined structure with 6 fields each like char 29, char 1, char 30 etc. but all added up to 128 characters length.

      so was that why aa = bb valid bcos their lengths were same ??

      thks

  • author's profile photo
    Former Member
    Posted on Mar 27, 2009 at 08:35 PM

    HI,

    Use this FM as it uses the Field Symbols in move data between two different structres.

    CALL FUNCTION 'HR_99S_COPY_STRUC1_STRUC2'
              EXPORTING
                  P_STRUCT1       = v_bape_vbep
             IMPORTING
                 P_STRUCT2       = l_bapiparex-valuepart3 .

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Pl do note that here I am assigning an entire structure to a single field.. So the code first populates like this..

      struct1-f1 = v1.

      struct1-f2 = v2.

      struct1-f3 = v3.

      and then

      struct2-fx = struct1.

      so my question is how are all the fields of struct1 moved to struct2-fx. Are they concatenated or what ?

      this code works very well in 4.6 but in ECC 6.0 I get unicode error.

      any more help ?

  • author's profile photo
    Former Member
    Posted on Apr 21, 2009 at 09:57 PM

    resolved myself...

    Add comment
    10|10000 characters needed characters exceeded