cancel
Showing results for 
Search instead for 
Did you mean: 

Error - The exception, which is assigned to class 'CX_WDR_RT_EXCEPTION'

Former Member
0 Kudos

Hi All,

I get the following error when getting parameters from HTML Form to ABAP Webdynpro Application.

Short text

An exception occurred that was not caught.

What happened?

The exception 'CX_WDR_RT_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_CLIENT_APPLICATION=====CP' has to be terminated.

Source Code Extract |

-


Line

SourceCde

-


36

if <url_param>-name np 'sap-*' and

37

<url_param>-name np 'sap.*' and

38

  • <url_param>-name ns '~' and

39

<url_param>-name np 'wd*'.

40

wa_url_param-name = <url_param>-name.

41

translate wa_url_param-name to upper case. "#EC SYNTCHAR

42

wa_url_param-value = <url_param>-value.

43

insert wa_url_param into table <all_url_params>.

44

endif.

45

endloop.

46

endif.

47

wa-name = if_wd_application=>all_url_parameters.

48

wa-value = l_all_url_params.

49

insert wa into table parameters.

50

51

l_parameters = view_info->get_parameters_for_inplug( inbound_plug ).

52

  • transfer all provided parameters for component if they have been defined in RR

53

loop at l_parameters assigning <parameter>.

54

wa-name = <parameter>-parameter_name.

55

l_parameter = wa-name.

56

clear wa-value.

57

*-------read url parameters

58

read table <all_url_params> assigning <tihttpnvp> with key name = l_parameter.

59

if sy-subrc = 0.

60

try.

61

create data wa-value type (<parameter>-abap_type).

62

assign wa-value->* to <f>.

63

cl_wdr_conversion_utils=>from_string( exporting in = <tihttpnvp>-value

64

changing data = <f> ).

65

catch cx_wdr_conversion_exception.

>>>>>

raise exception type cx_wdr_rt_exception.

67

endtry.

68

insert wa into table parameters[].

69

else.

70

*-------parameter not specified in url => read application properties

71

l_app_properties = me->application_info->get_properties( ).

72

read table l_app_properties into wa_property

73

with key name = wa-name.

74

if sy-subrc = 0.

75

try.

76

create data wa-value type (<parameter>-abap_type).

77

assign wa-value->* to <f>.

78

cl_wdr_conversion_utils=>from_string( exporting in = wa_property-value

79

changing data = <f> ).

80

catch cx_wdr_conversion_exception.

81

raise exception type cx_wdr_rt_exception.

82

endtry.

83

insert wa into table parameters[].

84

endif.

85

endif.

-


Any help will be greatly appreciated.

Thanks

RM

Accepted Solutions (0)

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

It appears that you are using some URL parameters. You must have supplied a field to hold one of these URL parameters, but the data type is not compatible with the incomming data. I would suggest setting an external breakpoint in this block of code to determine which URL parameter is causing your problem.