Step-by-stepThe following steps need to be executed in the Component Workbench.
Completing the wizard will create a context node for your component. This new context node is however not linked directly to the correct super class. To change the Super Class of the created Context Node dubbel click on the name of the implementation class (like ZL_BT140I_S_DETAILS_CN01) of your newly created context node.
Go to Tab Properties, fill in a desciption since this is a mandatory field
Select Change Inheritance and fill in CL_CRM_UIU_BT_DATE_CN as super class.
Now that we have added a new super class we have inherited new methods and attributes this makes the already existing attribute Base_Entity_Name double. Remove the attribute and then check for errors and release the component.
data: lv_collection type ref to if_bol_bo_col.lv_collection = cl_crm_uiu_bt_date_tools=>on_new_focus( iv_focus_bo = focus_boiv_level = 'I'iv_date_type = 'CONTSTART'iv_category = 'T' ).me->collection_wrapper->set_collection( lv_collection ).endmethod.
Pass the' I 'for Item, 'H' for Header
Pass the Date Type defined in the date profile
Pass the category as T for Dates.
Now we need to add the newly created context node as a field to the configuration of the component.
You can find the new context node in the available fields section.
The field that you need to select to display a date is `Current date´.