Skip to Content
0
Former Member
May 08, 2010 at 09:25 AM

Error message "No valid source context supplied"

60 Views

Hii,

I will add buttons to my html page. So far, I inserted the following code to my bsp page:

<% DATA: ls_button type CRMT_THTMLB_BUTTON,

lt_button type CRMT_THTMLB_BUTTON_t.

CLEAR ls_button.

ls_button-type = cl_thtmlb_util=>gc_icon_edit.

ls_button-on_click = ''.

ls_button-enabled = 'X'.

ls_button-text = 'Cancel'.

append ls_button to lt_button'.

%>

<thtmlb:areaFrameSetter toolbarButtons = "<%= lt_button %>"

maxButtonNumber = "1" />

When I remove the buttons, that I inserted before with the configuration tool (button Coniguration) and test my page, I get the following error message:

Cannot display view Z_SHOW/Upload of UI Component Z_SHOW

An exception has occured

Exception Class CX_BSP_ELEMENT_EXCEPTION-:No valid source context supplied

Methode CL_BSP_ELEMENT=>IF_BSP_ELEMENT~RAISE_ERROR

Source Test Row: 3

Can anyone explain me, how to fix the error message?

Thanks and regards,

Harris