05-04-2008 5:01 AM
HI FRIENDS
iam working for unicode upgradation project i got the following probelm if any one knows plz forword messages points are alloted by any kind of help
error "G_RETURN" and "IT_GRN_DTL" are not mutually convertible in a Unicode program. .
DATA: IT_GRN_DTL LIKE Z62V_GRN_ADDCVD OCCURS 0 WITH HEADER LINE.
DATA: IT_GRN_DTL LIKE Z62V_GRN_ADDCVD OCCURS 0 WITH HEADER LINE.
data: r_return(114) type c.
G_RETURN = IT_GRN_DTL(114).
IF SY-SUBRC = 0.
G_RETURN = IT_GRN_DTL(114).
WRITE:/ 'UPDATE',G_RETURN.
ELSE.
WRITE: / 'eRROR -
>', G_RETURN.
ENDIF.
05-05-2008 4:42 PM
05-06-2008 6:41 AM
Please mention as what phase did you get the error. What is the process you followed till this stage.
05-06-2008 8:32 AM
We need the tipycal things to solve the problem:
- when?.
- where?.
- how?.
Alfredo.
09-18-2008 6:49 AM
Hi,
Check this it will help you .
When two structures are incompatible. By using the following Classes we can make it compatible.
Example
Error faced while Unicode syntax check :
SRTFDLOW and "XSRTFDLOW" are not mutually convertible in a Unicode
Resolution:
CLASS CL_ABAP_CONTAINER_UTILITIES DEFINITION LOAD.
DATA: LV_TAB(1000) TYPE C.
CALL METHOD
CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C
EXPORTING
IM_VALUE = XSRTFDLOW
IMPORTING
EX_CONTAINER = LV_TAB
CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C
EXPORTING
IM_CONTAINER = LV_TAB
IMPORTING
EX_VALUE = SRTFDLOW.
12-03-2008 4:08 PM
In SAP program LVBAK001 in version 6.0 , it calls a method in order to update an order. I got a short dump saying
The reason for the exception is:
In the running program "SAPLVBAK", the field "CH_PAREX", which is of the type
"u" and
length 990, was to be accessed with the offset 30 and the length 1230.
However, subfield accesses in which the sum of the offset and length
specifications is greater than the field length are not allowed.
Is there something I can do? Or this is something SAP need to fix since it is inside of SAP problem. Thanks.
CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINer_c
EXPORTING
IM_VALUE = DA_BAPE_VBAP
IMPORTING
EX_CONTAINER = CH_PAREX+LENSTRUC(DA_LENGTH_BApe_vbap)
EXCEPTIONS
ILLEGAL_PARAMETER_TYPE = 1
OTHERS = 2.
12-05-2008 3:25 AM
Check note 1092829 - BAPI terminates w/ runtime error UC_OBJECTS_NOT_CONVERTIBLE
markus
02-16-2009 12:10 PM
Hi msr,
in unicode system this will not be allowed.
your are passing offset length value to declared variable, right.
if the offset think is of different data type, sap will not allow.
as above said by other contrbutors,
use
cl_abap_container_utilities->fill_container_c.
or take the excat field from the internal table and pass.
either of the things will work.
all the best.
Thanks
Vinod