Skip to Content

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.

untitled.JPG

This is very easy to implement and uses normal HTML code to do so.

Steps :

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.

%>

<html>

<iframe width=“420” height=“315” src= <%= lv_url %> frameborder=“0” allowfullscreen></iframe>

</html> –%>

<%

   endif.

   endif.

%>

*** This will embed the url into an IFrame . With this we can not only embed a video but we can embed a webpage etc.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. R J

    Hi Hasan,

    Super Functionality.

    Are you aware of the functionality of sending SMS from a Service Request. If so then please let me know.

    Best Regards,

    RJ

    (0) 

Leave a Reply