CNHTTST1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program uses the HTML control to create a simple WWW browser...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter CNHTTST1 into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Title: Demo for HTML Control: Use as General WWW Browser
INCLUDE CNHTINCL.
No SAP DATABASE tables are accessed within this REPORT code!
CONTROL_INIT CALL FUNCTION 'CONTROL_INIT'.
HTMLCNTL_CREATE CALL FUNCTION 'HTMLCNTL_CREATE' EXPORTING OWNER_REPID = PROG_REPID LINK_REPID = PROG_REPID DYNNR = '0100' CONTAINER = 'HTML_CONTAINER' CHANGING HANDLE = H_HTML_CONTROL.
HTMLCNTL_INIT CALL FUNCTION 'HTMLCNTL_INIT' EXPORTING H_CONTROL = H_HTML_CONTROL REGISTER_EVENT_ON_NAVIGATE = 'x' CB_FORM_NAVIGATE_COMPLETE = 'ON_CONTROL_EVENT'.
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.
HTMLCNTL_DESTROY CALL FUNCTION 'HTMLCNTL_DESTROY' CHANGING H_CONTROL = H_HTML_CONTROL EXCEPTIONS OTHERS = 1.
CONTROL_FLUSH CALL FUNCTION 'CONTROL_FLUSH'.
HTMLCNTL_GO_HOME CALL FUNCTION 'HTMLCNTL_GO_HOME' EXPORTING H_CONTROL = H_HTML_CONTROL.
HTMLCNTL_GET_CURRENT_URL CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL' EXPORTING H_CONTROL = H_HTML_CONTROL IMPORTING URL = URL.
HTMLCNTL_GO_BACK CALL FUNCTION 'HTMLCNTL_GO_BACK' EXPORTING H_CONTROL = H_HTML_CONTROL.
HTMLCNTL_GET_CURRENT_URL CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL' EXPORTING H_CONTROL = H_HTML_CONTROL IMPORTING URL = URL.
HTMLCNTL_GO_FORWARD CALL FUNCTION 'HTMLCNTL_GO_FORWARD' EXPORTING H_CONTROL = H_HTML_CONTROL.
HTMLCNTL_GET_CURRENT_URL CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL' EXPORTING H_CONTROL = H_HTML_CONTROL IMPORTING URL = URL.
HTMLCNTL_DO_REFRESH CALL FUNCTION 'HTMLCNTL_DO_REFRESH' EXPORTING H_CONTROL = H_HTML_CONTROL.
HTMLCNTL_GET_CURRENT_URL CALL FUNCTION 'HTMLCNTL_GET_CURRENT_URL' EXPORTING H_CONTROL = H_HTML_CONTROL IMPORTING URL = URL.
HTMLCNTL_SHOW_URL CALL FUNCTION 'HTMLCNTL_SHOW_URL' EXPORTING H_CONTROL = H_HTML_CONTROL URL = URL.
CONTROL_DISPATCH CALL FUNCTION 'CONTROL_DISPATCH' EXPORTING FCODE = FCODE.
CONTROL_GET_EVENT_PARAM CALL FUNCTION 'CONTROL_GET_EVENT_PARAM' EXPORTING H_CONTROL = H_HTML_CONTROL PARAM_ID = 0 CHANGING RETURN = URL.
HTMLCNTL_LOAD_HTML_DOCUMENT CALL FUNCTION 'HTMLCNTL_LOAD_HTML_DOCUMENT' EXPORTING H_CONTROL = H_HTML_CONTROL DOCUMENT_ID = 'HTMLCNTL_CNHTTST1_START' IMPORTING ASSIGNED_URL = DOC_URL EXCEPTIONS OTHERS = 1.
CALL FUNCTION 'HTMLCNTL_SHOW_DATA' EXPORTING H_CONTROL = H_HTML_CONTROL URL = DOC_URL.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name CNHTTST1 or its description.
CNHTTST1 - Demo for HTML Control: Use as General WWW Browser CNHTTST1 - Demo for HTML Control: Use as General WWW Browser CNHTINCL - Include CNHTINCL CNHIERAR - Hierarchy Analysis Project, Note 149698 CNHIERAR - Hierarchy Analysis Project, Note 149698 CNFW_FORECAST_USER_COMMAND_I01 - Include CNFW_FORECAST_USER_COMMAND_I01