Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

UNI CODE UPGRADATION ERR

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

More info please?

Former Member
0 Kudos

Please mention as what phase did you get the error. What is the process you followed till this stage.

0 Kudos

We need the tipycal things to solve the problem:

- when?.

- where?.

- how?.

Alfredo.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

Check note 1092829 - BAPI terminates w/ runtime error UC_OBJECTS_NOT_CONVERTIBLE

markus

Former Member
0 Kudos

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