on 11-19-2009 10:50 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what is the type of your itab_price .
It should be like :
itab_price TYPE if_zeupricing_v_manage=>elements_pricing .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.