Skip to Content
avatar image
Former Member

BSPWD_BASICS Enhancements

Hi,

I have Enhanced Component BSPWD_BASICS view: WorkAreaHostViewSet to delete buttons from the Work Area Toolbar.

All is activated without error but the Redefinition of the method if_bsp_wd_toolbar_callback~get_buttons is never called.

In runtime I have validated that erasing rows from internal table rt_buttons dissapear the required buttons.

Any help will be appreciated.

Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 16, 2008 at 02:36 PM

    Hi Claudia,

    I'm trying to use the code above in the component CRM_UI_FRAME but I receive a casting error =S.

    Can u share the code you used to solve this problem.

    Thanx in advanced.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 06:51 PM

    Redefined method should be called runtime if the enhancement set is properly assigned to the client.

    Where are you clearing the entries runtime?

    Thanks,

    Thirumala.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 15, 2008 at 06:57 PM

    In the method if_bsp_wd_toolbar_callback~get_buttons

    • get view controller in workarea

    DATA: lv_id TYPE string.

    lv_id = get_viewarea_content_id( co_workarea_name ).

    DATA: lv_delegate TYPE REF TO if_bsp_wd_toolbar_callback.

    TRY.

    lv_delegate ?= get_controller( lv_id ).

    IF lv_delegate IS BOUND.

    rt_buttons = lv_delegate->get_buttons( ).

    ENDIF.

    CATCH cx_sy_move_cast_error. "#EC NO_HANDLER

    • not implementing the toolbar interface is not an error!

    ENDTRY.

    DELETE rt_buttons INDEX 13.

    DELETE rt_buttons INDEX 14.

    DELETE rt_buttons INDEX 15.

    DELETE rt_buttons INDEX 16.

    DELETE rt_buttons INDEX 17.

    DELETE rt_buttons INDEX 18.

    ENDMETHOD.

    In the View: BSPWDVC_CMP_EXT I have the correct entries.

    BSPWD_BASICS ZENHWEBUI_VN B Aplicación BSP ZENHWEBUI_VN ZRepVta.xml

    BSPWD_BASICS WorkAreaHostViewSet ZENHWEBUI_VN WorkAreaHostViewSet

    And in View: BSPWDV_EHSET_ASG my Enhancement Set is assigned to the Client.

    For some reason the Enhancement for this component is not being called. Someone tried to Enhance this component?

    I have deleted the rows for this internal table manually without the Enhancement in this method and the buttons disappear...

    Edited by: urjose on Oct 15, 2008 1:58 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 12:45 AM

    What buttons you are trying to hide from the work area? I dont think you can enhance BSPWD_BASICS application.

    Thanks,

    THirumala.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 01:55 PM

    The following:

    More >

    Preview Output

    Planning

    Sales Assistant

    Distribute

    Redetermine Parties

    Regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I had the same problem.

      My solution:

      Enhance component CRM_UI_FRAME (or CRM_UI_PORTAL if you have portal integration) and here enhance view BSPWD_BASICS/WorkAreaHostViewSet.

      If you do your changes here, everything works.

      I can't explain the problem, actually it should make no difference where you enhance the view (it's a component usage), but the problem can be solved as described above.

      Regards,

      Claudia

  • avatar image
    Former Member
    Oct 16, 2008 at 03:22 PM

    I'm receiving the same error:

    Error Business Server Page (BSP)

    ¿Qué ha sucedido?

    Se ha producido un error al llamar la página BSP a causa de un error

    Nota

    Se ha procesado en el sistema el texto de error siguiente:

    Se ha producido una excepción del tipo CX_SY_MOVE_CAST_ERROR, pero ni se ha tratado localmente ni se ha declarado en una claúsula RAISING

    Clase de excepción CX_SY_MOVE_CAST_ERROR

    Nombre de error MOVE_CAST_ERROR

    Programa CL_CRM_UI_CORE_APPL_CONTROLLERCP

    Include CL_CRM_UI_CORE_APPL_CONTROLLERCM00C

    Clase ABAP CL_CRM_UI_CORE_APPL_CONTROLLER

    Método EXECUTE_NAVIGATION

    Línea 53

    Texto explicativo En la operación CAST ('?=' o 'MOVE ? TO') se ha producido un conflicto de tipo. El tipo de fuente CLASS=CL_CRM_UI_FRAME_APP_CONTROLLER no es compatible como asignación conel tipo destino CLASS=CL_BSPWD_BASICS_WA_HOST_VS.

    Clase de error: Exception

    Su equipo SAP Business Server Pages

    Add comment
    10|10000 characters needed characters exceeded

    • We just upgraded to CRM 7.0 and I'm getting this same CAST error from CL_CRM_UI_FRAME_APP_CONTROLLER TO CL_BSPWD_BASICS_WA_HOST_VS.

      Does anyone can help? Please!