SAP Reports / Programs | Basis Components | Frontend Services - Use subcomponents (see SAP Note 1322184) | Graphical User Interface(BC-FES-GUI) SAP BC

CNHTTST1 SAP ABAP Report - Demo for HTML Control: Use as General WWW Browser







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


ABAP code to call this SAP report using the submit statement

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.






SUBMIT CNHTTST1. "Basic submit
SUBMIT CNHTTST1 AND RETURN. "Return to original report after report execution complete
SUBMIT CNHTTST1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Demo for HTML Control: Use as General WWW Browser


INCLUDES used within this REPORT CNHTTST1

INCLUDE CNHTINCL.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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.

HTMLCNTL_SHOW_DATA





CALL FUNCTION 'HTMLCNTL_SHOW_DATA' EXPORTING H_CONTROL = H_HTML_CONTROL URL = DOC_URL.



Contribute (Add Comments)

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.