You are on page 1of 6

Business hours assignment block

In contact person ov page

Create a component uses in ur component and the respected view.

In the view set create a view area and add the component uses to it.

In ur view write the bsp code.


In ur standard component bp_hours view BP_HOURS/ContactBuzHoursOV write the
code for assignment block header title.

Create navigation link for the NEW button.


For edit button add the Window ContactBuzHoursEdit interface view to the
component uses.

In the component window add the interface view for edit button.

When click on new button then result will come..

In the component controller of ur component means the method is


WD_USAGE_INITIALIZE
Write code.
CALL METHOD super->wd_usage_initialize
EXPORTING
iv_usage = iv_usage.
TRY.
CASE iv_usage->usage_name.
WHEN 'CU_BuPaCustom'.
try.

CALL METHOD iv_usage->bind_context_node


EXPORTING
iv_controller_type = cl_bsp_wd_controller=>co_type_component
iv_name
= iv_usage->usage_name
iv_target_node_name = 'CUSTOMER'
" Node of the MAIN component
iv_node_2_bind
= 'CUSTOMER'. " Node of the embedded component
endtry.
WHEN 'BuPaBusinesshours'.
TRY.
CALL METHOD iv_usage->bind_context_node
EXPORTING
iv_controller_type = cl_bsp_wd_controller=>co_type_component
iv_name
= iv_usage->usage_name
iv_target_node_name = 'CUSTOMER' " Node of the MAIN component
iv_node_2_bind
= 'PARTNER'. " Node of the embedded component

CATCH cx_bsp_wd_incorrect_implement.
"#EC NO_HANDLER
Go on with next binding
ENDTRY.
WHEN OTHERS.
Postal validation
cl_crm_uiu_addr_tools=>bind_popup_context( iv_usage ).

ENDCASE.
CATCH cx_root.
endtry.
ENDMETHOD.

You might also like