Get Example source ABAP code based on a different SAP table
ABAP_DYNPRO - HTML Browser This example demonstrates the encapsulation of the browser controls in a class.
ABAP_SOURCE_CODE ABAP_EXEC >
ABAP_DESCRIPTION The class CL_ABAP_BROWSER>> encapsulates the use of the class CL_GUI_HTML_VIEWER>. The static method SHOW_HTML> can be used to display a HTML file in a modal or modeless dialog box or in the same window as the current dynpro. External data, in this case a picture loaded from the MIME Repository, can be passed and displayed. The SAPEVENT> events are still passed on and can be handled by the user.
The HTML file passed first has errors, since the < html>> tag is written incorrectly. In SAP systems, this case always produces a corresponding message.
The error list is also represented using SHOW_HTML>, where the error check for this simple purpose is disabled by passing a blank to the corresponding parameter, but the print option is switched on.
The found error is corrected in the HTML file and passed again, with the error check enabled this time. When the program starts, the file can be display in a modal window, a modeless window, or without a dialog box. If a modeless dialog box is chosen, container dynpros and information messages must be used to keep the dialog box alive. If no messages were sent, the modeless dialog box would not be visible.