Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

How to Download HTML file instead of Mail attachment

$
0
0

Hello Experts,

 

I want to download html doc when i cleck download button in Webdynpro .. Now i am sending the same HTML as mail attachment(below code FYI)..

 

DATA: lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.

data :   lt_body  TYPE         soli_tab.

 

CALL METHOD cl_document_bcs=>create_from_multirelated

       EXPORTING

         i_subject          = p_sub

*       i_language         = SPACE

*       i_importance       =

*       i_sensitivity      =

         i_multirel_service = lo_mime_helper

*       iv_vsi_profile     =

       RECEIVING

         result             = lo_document.

 

     IF lt_body IS NOT INITIAL.

*      V_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(

*      I_TYPE = 'HTM'

*      I_IMPORTANCE = '5'

*      I_TEXT = T_BODY

*      I_SUBJECT = P_SUB ).

       CALL METHOD lo_document->add_attachment

         EXPORTING

           i_attachment_type    = 'HTM'

           i_attachment_subject = p_sub

           i_att_content_text   = lt_body.

     ENDIF.

 

HTML content is having in Lt_body and i want to download the same to my desktop as html file.

do we need to use any method in BCS classes or any alternate solution ?

 

Regards,

Balaji


Viewing all articles
Browse latest Browse all 3523

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>