This document explains how to embed a video / flash object in a view in SAP CRM WebUI. It is possible that similar functionality can be tried in CRM 7 EHP 1 through Web mashup , but this will help you out in embedding without mashup.
This is very easy to implement and uses normal HTML code to do so.
1. Identify the component & view where you want to embed the object. Open the same in component workbench tcode – BSP_WD_CMPWB
2. In the view’s .HTM file just put this code.
3. Imagine a situation where we want to display a video whose link is in the field URI of the business partner.
Code should be as this in the component BP_HEAD’s view AccountDetails’ html file – AccountDetails.htm .
DATA: lv_xml TYPE string,
lv_entity TYPE REF TO cl_crm_bol_entity,
lv_url TYPE string.
lv_entity ?= controller->typed_context->INDEPENDANTHOMEPAGE->collection_wrapper->get_current( ).
if lv_entity is BOUND.
lv_url = lv_entity->get_property_as_string( iv_attr_name = ‘URI’ ).
if lv_url is not INITIAL.
CONCATENATE ‘”‘ lv_url ‘”‘ into lv_url.
<iframe width=“420” height=“315” src= <%= lv_url %> frameborder=“0” allowfullscreen></iframe>
*** This will embed the url into an IFrame . With this we can not only embed a video but we can embed a webpage etc.