on 2010 Jun 30 2:26 PM
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?
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
Set a breakpoint in method DO_CONTEXTNODE_BINDING in view ZBP_DAT/ERPMat.
You probably just gave the wrong literals.
cheers Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.