Class cl_dd_document defines a dynamic document. You need an instance of it for each dynamic document that you create.
Use the methods of this class to construct your dynamic document.
Integration
Class
cl_dd_document inherits from superclass cl_dd_area .
例子:
CALL METHOD p_cl_dd->underline. 画一条横线
CALL METHOD p_cl_dd->add_text
EXPORTING
text = text
* TEXT_TABLE =
* FIX_LINES =
* SAP_STYLE = cl_dd_document=>WARNING
sap_color = cl_dd_document=>list_total_int
sap_fontsize = cl_dd_document=>large
sap_fontstyle = cl_dd_document=>serif
sap_emphasis = cl_dd_document=>emphasis "加粗还是斜体 STRONG是加粗
* STYLE_CLASS =
* CHANGING
* DOCUMENT = .
例:
CALL METHOD p_cl_dd->add_text
EXPORTING
text = text
sap_emphasis = 'Strong'
sap_style = 'Key'. " 显示文字的STYLE设置
问题1:
若ALVHTML表头,出现了滚动条,不能整个显示ALV HTML的内容,则
在Call function 'REUSE_ALV_GRID_DISPLAY_LVC'
Exporting
i_callback_html_top_of_page = 'F_TOP_OF_PAGE1' "调用ALV表头显示FORM
I_HTML_HEIGHT_TOP = 23 . "指定ALV表头宽度
效果:
CALL METHOD p_cl_dd->add_link
EXPORTING
* NAME =
url = 'http://www.baidu.com'
tooltip = '百度'
text = 'BaiDu连接'
* DESTINATION_IN_DOC_SET =
* DESTINATION_IN_DOC_POS =
* TABINDEX =
* HOTKEY =
* IMPORTING
* LINK = .
效果:
Use