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: 

Error is "CONVT_CODEPAGE" and exception is "CX_SY_CONVERSION_CODEPAGE"

Former Member
0 Kudos

Dear experts,

How are you?

The runtime error was occured as follows :

1) Error : CONVT_CODEPAGE

2) Exception : CX_SY_CONVERSION_CODEPAGE

3) System Environment : R/3 470*110, non-unicode system

4) Transaction : PA20

Language Key : 3

Program : CL_ABAP_CONV_IN_CE======CP

5) Source code extract :

000280 raise exception type cx_parameter_invalid_type

000290 exporting parameter = paramstr type = typestr.

000300 endif.

000310 when 'C'.

000320 len = strlen( uccp ).

000330 if len <> 4.

000340 paramstr = 'UCCP'.

000350 typestr = len.

000360 shift typestr right.

000370 concatenate 'C(' typestr ')' into typestr.

000380 raise exception type cx_parameter_invalid_type

000390 exporting parameter = paramstr type = typestr.

000400 endif.

000410 when 'g'.

000420 len = strlen( uccp ).

000430 if len <> 4.

000440 paramstr = 'UCCP'.

000450 typestr = len.

000460 shift typestr right.

000470 concatenate 'STRING(' typestr ')' into typestr.

000480 raise exception type cx_parameter_invalid_type

000490 exporting parameter = paramstr type = typestr.

000500 endif.

000510 when others.

000520 paramstr = 'UCCP'.

000530 typestr = t.

000540 raise exception type cx_parameter_invalid_type

000550 exporting parameter = paramstr type = typestr.

000560 endcase.

000570 x = uccp.

> SYSTEM-CALL CONVERT ID 41

000590 " EXPORTING

000600 BUFFER x

000610 " IMPORTING

000620 DATA char

000630 " CHANGING

000640 CINFO cl_abap_conv_in_ce=>uccp_cinfo.

000650 ENDMETHOD.

I referenced the notes 864789,865885, and 832232.

But I couldn't resolve it.

Would you please help me?

Thanks.

Regards,

Soyeon Rhee

6 REPLIES 6

former_member223537
Active Contributor
0 Kudos

Hi,

YOu are using data with Japanese/Chinese/Thai or other double byte characters.

If you are using GUI_UPLOAD or GUI_DOWNLOAD or OPEN DATASET, then you need to pass the corresponding code page of the language in the statement.

Best regards,

Prashant

0 Kudos

Dear Prashant,

Thank you for your advice.

I'm a beginner for SAP basis, so would you please let me know about it more detail?

And suddenly, I encountered this error from yesterday.

I think that something in module(FI,HR or etc) was modified in IMG or program.

But they said that they had not change anything on system.

How can I track the change?

Thank you.

Best regards,

Soyeon Rhee

former_member223537
Active Contributor
0 Kudos

Hi,

Could you please let me know which transaction you had executed bcz of which you got this dump.

If its a program, then please paste the line which resulted in dump.

Best regards,

Prashant

0 Kudos

Dear Prashant,

Thank you for your advice.

The source code is as follows:

-


Source code extract

-


000280 raise exception type cx_parameter_invalid_type

000290 exporting parameter = paramstr type = typestr.

000300 endif.

000310 when 'C'.

000320 len = strlen( uccp ).

000330 if len <> 4.

000340 paramstr = 'UCCP'.

000350 typestr = len.

000360 shift typestr right.

000370 concatenate 'C(' typestr ')' into typestr.

000380 raise exception type cx_parameter_invalid_type

000390 exporting parameter = paramstr type = typestr.

000400 endif.

000410 when 'g'.

000420 len = strlen( uccp ).

000430 if len <> 4.

000440 paramstr = 'UCCP'.

000450 typestr = len.

000460 shift typestr right.

000470 concatenate 'STRING(' typestr ')' into typestr.

000480 raise exception type cx_parameter_invalid_type

000490 exporting parameter = paramstr type = typestr.

000500 endif.

000510 when others.

000520 paramstr = 'UCCP'.

000530 typestr = t.

000540 raise exception type cx_parameter_invalid_type

000550 exporting parameter = paramstr type = typestr.

000560 endcase.

000570 x = uccp.

-


> SYSTEM-CALL CONVERT ID 41

000590 " EXPORTING

000600 BUFFER x

000610 " IMPORTING

000620 DATA char

000630 " CHANGING

000640 CINFO cl_abap_conv_in_ce=>uccp_cinfo.

000650 ENDMETHOD.

-


Contents of system fields

-


SY field contents..................... SY field contents.....................

-


-


-


-


SY-SUBRC 0 SY-INDEX 0

SY-TABIX 5 SY-DBCNT 0

SY-FDPOS 5 SY-LSIND 0

SY-PAGNO 0 SY-LINNO 1

SY-COLNO 1 SY-PFKEY

SY-UCOMM BACK SY-TITLE &#54532;&#47196;&#44536;&#47016; OM_START

SY-MSGTY SY-MSGID

SY-MSGNO 000 SY-MSGV1

SY-MSGV2 SY-MSGV3

SY-MSGV4

-


Active calls / events

-


No.... Type........ Name..........................

Program

Include Line

Class

-


13 METHOD UCCP

CL_ABAP_CONV_IN_CE============CP

CL_ABAP_CONV_IN_CE============CM003 58

CL_ABAP_CONV_IN_CE

12 METHOD GET_UCCP_PREFIX_CONSTANTS

CL_HROM_KEY_GENERATOR=========CP

CL_HROM_KEY_GENERATOR=========CM00C 13

CL_HROM_KEY_GENERATOR

11 METHOD CHECK_ARRAYTYPE_PREFIX

CL_HROM_KEY_GENERATOR=========CP

CL_HROM_KEY_GENERATOR=========CM007 17

CL_HROM_KEY_GENERATOR

10 METHOD DELETE_DYN_ARRAYTYPE

CL_HROM_KEY_GENERATOR=========CP

CL_HROM_KEY_GENERATOR=========CM005 17

CL_HROM_KEY_GENERATOR

9 METHOD DELETE_ONE_QUERY

CL_HR_ST_COLUMNS_BASE=========CP

CL_HR_ST_COLUMNS_BASE=========CM00L 17

CL_HR_ST_COLUMNS_BASE

8 METHOD DELETE_ONE_SELECTION

CL_HR_ST_ADHOC_SELECTION======CP

CL_HR_ST_ADHOC_SELECTION======CM006 28

CL_HR_ST_ADHOC_SELECTION

7 METHOD CLEAN_UP

CL_HR_ST_ADHOC_SELECTION======CP

CL_HR_ST_ADHOC_SELECTION======CM001 74

CL_HR_ST_ADHOC_SELECTION

6 METHOD IF_HR_SEARCHTOOL_FAVORITES~END_OF_OBJECTMANAGER

CL_HR_ST_ADHOC_SELECTION======CP

CL_HR_ST_ADHOC_SELECTION======CM00D 6

CL_HR_ST_ADHOC_SELECTION

5 METHOD DESTROY

CL_HR_OBJECTMANAGER===========CP

CL_HR_OBJECTMANAGER===========CM002 76

CL_HR_OBJECTMANAGER

4 FUNCTION NF_GM_CALL_OBJMAN_FUNCTION

SAPLOM_NAVFRAMEWORK_OO_OBJ

LOM_NAVFRAMEWORK_OO_OBJU10 72

3 FORM EM_EVENT_TO_CURRENT_OBJECTS

SAPLOM_NAVFRAMEWORK_OO_OBJ

LOM_NAVFRAMEWORK_OO_OBJF03 171

2 FUNCTION NF_GM_CREATE

SAPLOM_NAVFRAMEWORK_OO_OBJ

LOM_NAVFRAMEWORK_OO_OBJU12 292

1 EVENT START-OF-SELECTION

OM_START_NF

OM_START_NF 19

I appreciate your help.

Best regards,

Soyeon Rhee

0 Kudos

Hi Soyeon Rhee,

I think the problem may be related to the language code page. I am not very sure.

But you posted the query in wrong forum. You should post it in the basis forum( SAP NetWeaver Administrator).

Regards,

Atish

0 Kudos

Dear Atish,

Thank you for your reply.

I didn't know there are basis forum on SDN.

I posted it in the basis forum.

Best regards,

Soyeon Rhee