cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem visualizing a view of a z component

Former Member
0 Likes
319

Hi guys,

I have created a new component and i have added it a view.

When i try to preview it i'm gettin these exceptions.

Clase excepción: CX_BSP_WD_RUNTIME_ERROR - La vista ZBP_DAT/ERPMat no se ha podido vincular

Método: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW

Línea texto fuente: 171

Creación de contexto fallida en vista ZBP_DAT/ERPMat de Aplicación /sap/crm_ic_preview

Se ha producido una excepciónClase excepción: CX_BSP_WD_INCORRECT_IMPLEMENT - Controlador de vista o custom se ha implementado con error

Método: CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING

Línea texto fuente: 51

Inicialización de vista ZBP_DAT/ERPMat de Aplicación /sap/crm_ic_preview fallida

Se ha producido una excepciónClase excepción: CX_BSP_WD_INCORRECT_IMPLEMENT - Controlador de vista o custom se ha implementado con error

Método: CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING

Línea texto fuente: 51

La vista & de Aplicación /sap/crm_ic_preview no se puede visualizar

Se ha producido una excepciónClase excepción: CX_BSP_WD_INCORRECT_IMPLEMENT - Controlador de vista o custom se ha implementado con error

Método: CL_BSP_WD_CONTROLLER=>DO_CONTEXT_NODE_BINDING

Línea texto fuente: 51

Any idea?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi,

check the method WD_USAGE_INITIALIZE in component controller. This error occurs when you bind an interface view to other component.

Regards,

Arun

Edited by: Arun Kumar on Jul 1, 2010 5:53 AM

Former Member
0 Likes

Hi Arun,

I do not see this method on the component controller of my new component.

Best regards

Jon

Former Member
0 Likes

I can see it in the component controller context node implementation class.

But it is not implemented on it it is implemented on the class cl_bsp_wd_component_controller and it's empty.

Any idea?

Former Member
0 Likes

Hi,

Redefine the method wd_usage_initialize, you have to bind the interface view context node to the context node of the component ZBP_DAT. Check for the component usage and bind the context nodes in method wd_usage_initialize.


METHOD wd_usage_initialize.
  CASE iv_usage->usage_name.

    WHEN 'zztest'.

          CALL METHOD iv_usage->bind_context_node
            EXPORTING
              iv_controller_type        = cl_bsp_wd_controller=>co_type_component
              iv_target_node_name  = 'TARGET_NODE'
              iv_node_2_bind           = 'SOURCE NODE'.

 ENDCASE.
ENDMETHOD.

In the above code specify the controller type, that is where you want to bind the context node, is it component or custom controller.

Regards,

Arun

Edited by: Arun Kumar on Jul 1, 2010 9:04 AM

Former Member
0 Likes

Hi Arun first of all Thanks!!

i have redefined the method you told me in the component controller of my new component now called zerp_mat.

This is the code:

CASE iv_usage->usage_name.

    WHEN 'ERPMat'.
*
          CALL METHOD iv_usage->bind_context_node
            EXPORTING
              iv_controller_type        = cl_bsp_wd_controller=>co_type_component
              iv_target_node_name  = 'PARTNER'
              iv_node_2_bind           = 'PARTNER'.

The nodes i need to bind are called PARTNER in the component controller context and in the view context node, but i'm still getting the same error when i try to preview the view.

Thanks

Best regards Jon

Former Member
0 Likes

Hi,

Check the name of the context node in both the components and also ensure that the base entity for both the context node are the same.

Regards,

Arun

Former Member
0 Likes

The components name is the same...

Can i send you a mail with the screenshots?

Thanks!!

CarstenKasper
Active Contributor
0 Likes

Set a breakpoint in method DO_CONTEXTNODE_BINDING in view ZBP_DAT/ERPMat.

You probably just gave the wrong literals.

cheers Carsten