Skip to Content
0
Former Member
May 29, 2007 at 05:00 PM

Printing HTML on ABAP Report

363 Views

Hello!

I retrieve the html from a BSP application to an internal table type SOLI_TAB. After i try to load the data using:

  CALL METHOD HTML_CONTROL->LOAD_DATA
    EXPORTING
      TYPE                 = 'text'
      SUBTYPE              = 'html'
*      SIZE                 = 0
*      ENCODING             =
*      CHARSET              =
*      LANGUAGE             =
    IMPORTING
      ASSIGNED_URL         = doc_url
    CHANGING
      DATA_TABLE           =  IT_HMTL
    EXCEPTIONS
      DP_INVALID_PARAMETER = 1
      DP_ERROR_GENERAL     = 2
      CNTL_ERROR           = 3
      others               = 4.
          .
  IF sy-subrc EQ 0.

    CALL METHOD html_control->show_url
      EXPORTING
        url = doc_url.
ENDIF.

The problem is that the html viewer is showing me the html source and not the page as it is shown on a browser.

What am I doing wrong?

Regards,

Pedro Barbosa