cancel
Showing results for 
Search instead for 
Did you mean: 

unicode error in web dynpro

Former Member
0 Kudos

Dear all,

I'm facing a strange problem.

This morning my WD worked well. I changed my specific table used in the WD (added new fields).

My context is on this table.

I update all my views with this context.

I have 2 methods which used the specific table as importing parameters.

I have errors message now when I activate my WD.

In Onaction method : 
data: 
    stru_pricing                        TYPE if_zeupricing_v_manage=>element_pricing .
....
....
  elem_pricing->get_static_attributes(
    IMPORTING
      static_attributes = stru_pricing ).


  wd_this->populate_zeupricing(
    EXPORTING
      itab =   stru_pricing                   
  ).

The itab of populate_zeupricing method is declared as my specific table.

The error message :

Method ONACTIONUPDATE_PRICING

ITAB_PRICE and STRU_PRICING are not mutually convertible. In

Unicode programs,ITAB_PRICE must have the same structure layout as

STRU_PRICING, independent of the length of a Unicode character.

could you please tell me what I did to obtain this error. For me I have only added some fields in my table and adapt my context on this.

thanks a lot.

Kind regards

Véronique

Accepted Solutions (0)

Answers (2)

Answers (2)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I assume that by adding the additional fields, that the two structures are no longer compatible. ABAP in Unicode mode can handle different data structures up to the point where you have a binary data field (probably a packed decimal in this case). See this slide for an visual explanation:

http://www.flickr.com/photos/tjung/4117418946/

You need correct the differences between the two structures.

Former Member
0 Kudos

what is the type of your itab_price .

It should be like :

itab_price TYPE if_zeupricing_v_manage=>elements_pricing .