Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

hide address bar in pop up

hi all,

We have a requirement in which we had to make a field hyperlink, on click of which a new internet explorer window opens up which shows a document from local cache. this window is a full internet explorer window and contains the address bar too. we need to suppress the address bar. any pointers would be appreciated. IView settings cant be used as we did not create an iView for local document feature. It has been integrated in CRM service. PFB the code written for the same:

METHOD GET_P_DOCUMENT_NAME.
  DATA : wa_files  TYPE ZMCA_ROC_CACHE,
          lv_url    TYPE bapiuri-uri,
          lv_doc_id TYPE bdn_con-bds_docid,
          lr_view   TYPE REF TO ZL_ZMCAENHA_ZMCAROCCACHE_IMPL.

   CREATE OBJECT lr_view.

   CASE iv_property.
     WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.

     WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
       READ TABLE lr_view->LT_ROC_CACHE INTO wa_files INDEX iv_index.

       rv_value = wa_files-DOC_URL.


   ENDCASE.

ENDMETHOD.


wa_files-DOC_URL contains the URL of the document to be opened.


Kindly help.


Regards,

Sanchit Gupta

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question