ALV HTML 格式的 同一行 不同字段大小问题

FORM top_of_html_page USING p_cl_dd TYPE REF TO cl_dd_document. * 定义缓冲区变量 DATA: m_p TYPE i , m_buffer TYPE string , l_name1 LIKE t001w-name1, text1(255) TYPE c, text2(255) TYPE c. m_buffer = '<html>'. CALL METHOD p_cl_dd->html_insert EXPORTING contents = m_buffer CHANGING position = m_p. CONCATENATE wa_item-name1 '生产领料单' INTO wa_item-name1. CONCATENATE '<p><font size="3">'wa_item-control_no'</font>' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp' '<B><font size="5">'wa_item-name1'</B></font></p>' INTO m_buffer. CALL METHOD p_cl_dd->html_insert EXPORTING contents = m_buffer CHANGING position = m_p.

 

即可,达到同一行,不同字体的效果

你可能感兴趣的:(ALV HTML 格式的 同一行 不同字段大小问题)