Dynamic Document
Definition
A dynamic document is an HTML document that you construct using ABAP methods in your program. The underlying classes then create the relevant HTML source text. The document is displayed with the SAP HTML Viewer Control.
Use
Like a traditional R/3 list, you construct dynamic documents line by line using ABAP statements. However, dynamic documents are more flexible than lists as they can be displayed everywhere where SAP Container Controls are allowed.
Structure
A dynamic document is represented by an instance of the class cl_dd_document. You add elements to the document using the methods of this class.
You can create forms (HTML forms) and tables within the document. Input fields, pushbuttons, and dropdown list boxes can be integrated into dynamic documents using forms. On the other hand, tables make it possible to display simply-structured data.
Example layout of a dynamic document
Integration
The system displays dynamic documents using the SAP HTML Viewer Control and the SAP Container Control. In the simplest case both the Container Control and the SAP HTML Viewer are created at the system side. You only have to specify the reserved dynpro area where it can be placed. For more information, see Displaying Dynamic Documents.