Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Problem in downloading the DMS document in .DOC format using webydnpro abap

$
0
0

Dear Experts,

 

        I am storing the Document no,created data,etc…along with some standard text (this text is comman) in DMS server.while creating standard text for alignment purpose of paragraph n fontsize I used below HTMl code,after that I read this standard text n stored in DMS.

 

************************************************************************

<html>
<body>
<font face="Times New Roman" font size="3">
<br><br>
<p><CENTER><p style="text-align:justify">
&nbsp&nbsp&nbsp&nbsp&nbsp
<u>D.O.LETTER NO. &CURRENT&  /DCM III/2013 ,Dated: &SYDATUM&
</u></P></CENTER>
Dear
<p>   
&nbsp &nbsp
Sub:- Market Borrowings &#8722 consent under Article 293(3) of the
Constitution of India<br>&nbsp&nbsp

**********************************************************************

  

Now I am using below code to download the DMS document in .doc format

 

**********************************************************************

                       ls_input-DOKAR = 'TST'.

                       ls_input-dokvr = '00'.

                       ls_input-doktl = '000'.

                       ls_input-doknr =  LS_docnum .

*

             CALL FUNCTION 'CVAPI_DOC_CHECKOUTVIEW_DIALOG'

               EXPORTING

                 PF_DOKAR                 = ls_input-dokar

                 PF_DOKNR                 = ls_input-doknr

                 PF_DOKVR                 = ls_input-dokvr

                 PF_DOKTL                  = ls_input-doktl

                PF_FTP_DEST             =  'SAPFTPA'

                PF_HOSTNAME              = 'DEFAULT '

                PF_CONTENT_PROVIDE       = 'TBL'

              IMPORTING

                PSX_MESSAGE              =  ls_message

              TABLES

                PTX_CONTENT              =  LT_DRAO .

 

             LOOP AT lt_drao INTO wa_drao.

               wa_bin = wa_drao-orblk.

               APPEND wa_bin TO lt_bin.

             ENDLOOP.

 

 

            DESCRIBE TABLE lt_drao LINES v_line.

            size = 2550 * v_line.

 

            CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'

            EXPORTING

               input_length       = size

            IMPORTING

               buffer             = file_data

            TABLES

               binary_tab         = lt_bin .

 

           CONCATENATE lv_lettername '.DOC' INTO LV_FILENAME .

           CALL METHOD cl_wd_runtime_services=>attach_file_to_response

           EXPORTING

               i_filename      = LV_FILENAME

               i_content       = file_data

               i_mime_type     = 'application/doc'.

 

**********************************************************************

 

The above code is successfullyworking in ECC and downloading the Document in .doc format.

But when we integrate this webdynpro appl. in portal and execute the document is downloading but

Instead of the specified alignments and fontsizes it display the HTML tags which I used in standard text.

 

 

      Please anyone could you help me in this is rately appreciated...thanx in advance.


Viewing all articles
Browse latest Browse all 3667

Trending Articles



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