Application Development and Automation 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: 
Read only

Translate statment in unicode system

Former Member
0 Likes
491

hi,

we are going for upgrade, we have created one sandbox and perfomed the UCCHECK

we are getting one error message on below TRANSALTE statment like below.

convtab must be character type data object (data type C, N, D, T, or STRING)

FORM convert_codepage changing i_tbl type tabtyp_tbl.

DATA:

w_tbl TYPE rectyp_tbl.

LOOP AT i_tbl into w_tbl.

TRANSLATE w_tbl USING convtab.

MODIFY i_tbl from w_tbl.

ENDLOOP.

ENDFORM. "convert_codepage

please guide me in this issue.

thanks,

chandra

hi,

we are going for upgrade, we have created one sandbox and perfomed the UCCHECK

we are getting one error message on below TRANSALTE statment like below.

convtab must be character type data object (data type C, N, D, T, or STRING)

FORM convert_codepage changing i_tbl type tabtyp_tbl.

DATA:

w_tbl TYPE rectyp_tbl.

LOOP AT i_tbl into w_tbl.

TRANSLATE w_tbl USING convtab.

MODIFY i_tbl from w_tbl.

ENDLOOP.

ENDFORM. "convert_codepage

please guide me in this issue.

thanks,

chandra

2 REPLIES 2
Read only

Former Member
0 Likes
471

Hi,

If you go through the F1 help for Translate, you will come to know that it works only on character type variables.

Your variable w_tbl may not be character type.

Write your code as below:

DATA: w_tbl TYPE rectyp_tbl,

var_char(50) TYPE C.

LOOP AT i_tbl into w_tbl.

var_char = w_tbl.

TRANSLATE w_tbl USING convtab.

MODIFY i_tbl from w_tbl.

ENDLOOP.

ENDFORM. "convert_codepage

This will work.

regards.

Read only

Former Member
0 Likes
471

HI,

Refer to this link....