cancel
Showing results for 
Search instead for 
Did you mean: 

Exception CL_WDR_CONVERSION_UTILS=======CM00G

Former Member
0 Kudos

Hi guys,

we have installed the patch on our SAP system to SAPKGPHD45 SP 45 for EA-HR 6:00.

Now we have kernel release = 700.

We have one WebDynpro with in a Interactive Form component and when we try to call the WD it returns an exeption about a standard conversion method.

I carryover below the error text:

Runtime Errors UNCAUGHT_EXCEPTION

Exception CX_WDR_CONVERSION_EXCEPTION

-


-


Short text

An exception occurred that was not caugh.

-


-


| What happened?

| The exception 'CX_WDR_CONVERSION_EXCEPTION' was raised, but it was not caught

| anywhere along

| the call hierarchy.

|

| Since exceptions represent error situations and this error was not

| adequately responded to, the running ABAP program

| 'CL_WDR_ADOBE_XML_CONVERTER====CP' has to be

| terminated.

-


-


| Error analysis

| An exception occurred that is explained in detail below.

| The exception, which is assigned to class 'CX_WDR_CONVERSION_EXCEPTION', was

| not caught in

| procedure "IF_WD_CONVERSION_UTILS~TO_STRING" "(METHOD)", nor was it propagated

| by a RAISING clause.

| Since the caller of the procedure could not have anticipated that the

| exception would occur, the current program is terminated.

| The reason for the exception is:

| The Entered Value Is Not on the List of Valid Values.

|

-


-


| Information on where terminated

| Termination occurred in the ABAP program "CL_WDR_ADOBE_XML_CONVERTER====CP" -

| in "IF_WD_CLIENT_CONVERSION_UTIL~BOOLEAN_TO_STRING".

| The main program was "SAPMHTTP ".

|

| In the source code you have the termination point in line 23

| of the (Include) program "CL_WDR_ADOBE_XML_CONVERTER====CM002".

| The termination is caused because exception "CX_WDR_CONVERSION_EXCEPTION"

| occurred in

| procedure "IF_WD_CONVERSION_UTILS~TO_STRING" "(METHOD)", but it was neither

| handled locally nor declared

| in the RAISING clause of its signature.

|

| The procedure is in program "CL_WDR_CONVERSION_UTILS=======CP "; its source

| code begins in line

| 1 of the (Include program "CL_WDR_CONVERSION_UTILS=======CM00G ".

-


-


| Source Code Extract

| Line |SourceCde

-


| 1|METHOD if_wd_client_conversion_util~boolean_to_string .

2

| 3| DATA rtti TYPE REF TO cl_abap_typedescr.

| 4| rtti = cl_abap_typedescr=>describe_by_data( value ).

5

| 6| "wdy_boolean, abap_bool

| 7| "wdy_boolean is used for checkboxes. Adobe Reader accepts 0 and 1 in the data-XML only!

| 8| CASE value.

| 9| WHEN abap_true.

| 10| IF rtti->absolute_name = '\TYPE=WDY_BOOLEAN'.

| 11| output = '1'.

| 12| ELSE.

| 13| output = 'true'.

| 14| ENDIF.

| 15| WHEN abap_false.

| 16| IF rtti->absolute_name = '\TYPE=WDY_BOOLEAN'.

| 17| output = '0'.

| 18| ELSE.

| 19| output = 'false'.

| 20| ENDIF.

| 21| WHEN OTHERS.

| 22| " must be ' ' or 'X'

|>>>>>| RAISE EXCEPTION TYPE cx_wdr_conversion_exception

| 24| EXPORTING

| 25| textid = cx_wdr_conversion_exception=>valuelist.

| 26| ENDCASE.

27

| 28|ENDMETHOD.

-


I wait your suggests,

Regards, Davide.

Accepted Solutions (0)

Answers (1)

Answers (1)

ChrisPaine
Active Contributor
0 Kudos

Hi Davide,

looks like the code you are using to populate your form is populating something other than abap_true or abap_false into the boolean attribute.

Check how you are populating your form context.

Cheers,

Chris