ABAP OO Class Methods

CL_ABAP_BROWSER SAP Class - Display an HTML or XML File







CL_ABAP_BROWSER is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84.

Below is the documentation available for class CL_ABAP_BROWSER including details of:

  • Interface class implementations
  • Inheritance details
  • Methods defined within class ( including link to full details )
  • Attributes ( including initial values )
  • Class Events

Also check out the Resources section below to view useful tips, screenshots, links and general information related to this SAP class and its methods, or even add your own for future reference.




Methods of CL_ABAP_BROWSER





A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.

Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD CL_ABAP_CHAR_UTILITIES=>methodname EXPORTING/IMPORTING...



BUILD_HTML - Makes HTML Table from String
BUILD_XHTML - Assembles an xHTML Table from an xString
CHECK_HTML - Checks the HTML file for formal correctness
CLASS_CONSTRUCTOR - CLASS_CONSTRUCTOR
CLEAR_BROWSER - Closes Dialog Box (Only for Internal Use)
CLOSE_BROWSER - Close Browser
CREATE_BROWSER - Creates the Browser (Only for Internal Use)
CREATE_CHECKER - Factory Method for Check Object
FILL_BROWSER - Supplies the Browser with the HTML File
FILL_BROWSER_WITH_URL - Supplies the Browser with the URL
FILL_BROWSER_WITH_XML - Supplies the Browser with the XML File
CL_GUI_TOOLBAR~HANDLE_BROWSER_BAR - Navigation Process
CL_GUI_DIALOGBOX_CONTAINER~HANDLE_BROWSER_CLOSE - Closes Dialog Box
HANDLE_EXTERNAL_DATA - Loads External Data (Screens etc.)
CL_GUI_HTML_VIEWER~HANDLE_HTML_LOAD - Fills the Navigation Table
HANDLE_NAV_TAB - Insert and Delete Navigation Stack
CL_GUI_HTML_VIEWER~HANDLE_SAPEVENT - Event Handling for "SAPEVENT"s
PREPARE_BROWSER - Prepares Browser
REUSE_BROWSER - Uses Existing Browser
SET_BUTTONS - Activates/Deactivates the Pushbuttons
SET_TITLE_AND_SIZE - Sets the Window Title, Size and Position
SHOW_HTML - Displays a HTML File
SHOW_HTML_VIA_HANDLE - Displays the HTML File
SHOW_URL - Displays an existing URL
SHOW_URL_VIA_HANDLE - Dispalys the URL
SHOW_XML - Displays a XML File
SHOW_XML_VIA_HANDLE - Displays the XML File


CL_ABAP_BROWSER Attributes

List of attributes within class CL_ABAP_BROWSER. These can be referenced using the following syntax CL_ABAP_BROWSER=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.


NameDescriptionInitial Value
ANCHOR Goto Point
BROWSER Browser
BROWSER_BAR Tool Area
BROWSER_BOX Dialog Box
BROWSER_CONTAINER Browser Area
BROWSER_FORMAT Format
BROWSER_POSITION Position
BROWSER_SIZE Size
BROWSER_SPLITTER Splitter Container
BROWSER_TITLE Window Title
BROWSER_TOOL Toolbar
BUTTONS Navigation Buttons



CHECKER HTML repair and conversion tool
CONTEXT_MENU Browser Context Menu
DATA_TABLE External data
EXT_CONTAINER Ext Container
EXT_URL URL
HANDLE Self Reference
HTML Table for HTML
HTML_CHECK Html Check 'X'
HTML_ERRORS Html Errors
LANDSCAPE Landscape Format 'L'
LARGE Large Size 'L'
MEDIUM Middle Size 'M'
MIDDLE Center 'M'
MODAL Modal Dialog Box
NAVIGATE_HTML Navigate Html 'X'
NAVIGATE_HTML_AFTER_SAP_EVENT Navigate Html After Sap Event 'E'
NAVIGATE_OFF Navigate Off ' '
NAV_INDEX Navigation Index
NAV_TAB Navigation table
PORTRAIT Portrait Format 'P'
PRINTING Printing
SAP_EVENT_FLAG Sap Event Flag
SMALL Small Size 'S'
TOPLEFT Top Left 'TL'
URLS Urls
XHTML Xhtml
XHTML_SIZE Xhtml Size
XLARGE Size Extra Large 'XL'
XML_TAB Table for XML




Events of the Class CL_ABAP_BROWSER

Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING...

CLOSED - Browser was closed
SAPEVENT - "SAPEVENT" Hyperlink