Goal: Output all texts of a specification type within an HTML container of the same specification.

Adaptation GET_HTML

Prerequisite:

We are in the redefinition of the method GET_HTML

What needs to be done?

At the end of the method, you only need to include the following code.

  • Try to find any text

    TRY.
        CALL METHOD /sct/qp_if_objtyp_html~get_ltxt
          EXPORTING
            iv_spras      = sy-langu
            iv_show_empty = abap_true

  • irg_tdid      =

          IMPORTING
            et_ltxt       = DATA(lt_ltxt)
            et_html       = DATA(lt_html).
      CATCH /sct/qp_cx_error.
    ENDTRY.

    APPEND LINES OF lt_html TO et_html.