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

CNHTTST4 SAP ABAP Report - Demo for HTML ControL: Own Initial Pages for WebRFC







CNHTTST4 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter CNHTTST4 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 CNHTTST4. "Basic submit
SUBMIT CNHTTST4 AND RETURN. "Return to original report after report execution complete
SUBMIT CNHTTST4 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: Own Initial Pages for WebRFC


INCLUDES used within this REPORT CNHTTST4

No INCLUDES are used within this REPORT code!


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 PARENTID = DYNPRO_0 LINK_REPID = PROG_REPID DYNNR = '0100' CHANGING HANDLE = H_HTML_CONTROL.

HTMLCNTL_INIT CALL FUNCTION 'HTMLCNTL_INIT' EXPORTING H_CONTROL = H_HTML_CONTROL LEFT = 0 TOP = 0 * WIDTH = 1 * HEIGHT = 1 * METRIC = CNTL_METRIC_DYNPRO ALIGN = HTML_CONTROL_ALIGN REGISTER_EVENT_ON_NAVIGATE = 'x'.

HTMLCNTL_DESTROY CALL FUNCTION 'HTMLCNTL_DESTROY' CHANGING H_CONTROL = H_HTML_CONTROL EXCEPTIONS OTHERS = 1.

CONTROL_EXIT call function 'CONTROL_EXIT'.

HTMLCNTL_GO_BACK CALL FUNCTION 'HTMLCNTL_GO_BACK' EXPORTING H_CONTROL = H_HTML_CONTROL.

HTMLCNTL_GO_FORWARD CALL FUNCTION 'HTMLCNTL_GO_FORWARD' EXPORTING H_CONTROL = H_HTML_CONTROL.

HTMLCNTL_DO_REFRESH CALL FUNCTION 'HTMLCNTL_DO_REFRESH' EXPORTING H_CONTROL = H_HTML_CONTROL.

HTMLCNTL_GET_EVENT_FRAME CALL FUNCTION 'HTMLCNTL_GET_EVENT_FRAME' EXPORTING H_CONTROL = H_HTML_CONTROL CHANGING FRAME_NAME = FRAME.

HTMLCNTL_GET_EVENT_ACTION CALL FUNCTION 'HTMLCNTL_GET_EVENT_ACTION' EXPORTING H_CONTROL = H_HTML_CONTROL CHANGING ACTION = ACTION.

HTMLCNTL_DISPATCH_WEBRFC_EVENT CALL FUNCTION 'HTMLCNTL_DISPATCH_WEBRFC_EVENT' EXPORTING H_CONTROL = H_HTML_CONTROL FRAME = FRAME EXCEPTIONS HTMLCNTL_GET_EVENT_DATA_ERROR = 1 HTMLCNTL_LOAD_DATA_ERROR = 2 HTMLCNTL_WEBRFC_ERROR = 3 HTMLCNTL_SHOW_DATA_ERROR = 4 HTMLCNTL_PARSE_DATA_ERROR = 5 OTHERS = 6.

HTMLCNTL_LOAD_HTML_DOCUMENT CALL FUNCTION 'HTMLCNTL_LOAD_HTML_DOCUMENT' EXPORTING H_CONTROL = H_HTML_CONTROL DOCUMENT_ID = HOMEPAGE 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.

HTMLCNTL_LOAD_MIME_OBJECT CALL FUNCTION 'HTMLCNTL_LOAD_MIME_OBJECT' EXPORTING H_CONTROL = H_HTML_CONTROL OBJECT_ID = 'HTMLCNTL_TESTHTM2_SAPLOGO' OBJECT_URL = 'SAPLOGO.GIF'

HTMLCNTL_LOAD_MIME_OBJECT CALL FUNCTION 'HTMLCNTL_LOAD_MIME_OBJECT' EXPORTING H_CONTROL = H_HTML_CONTROL OBJECT_ID = 'HTMLCNTL_TESTHTM2_BACKGROUND' OBJECT_URL = 'HOME_BACKGROUND.GIF'

HTMLCNTL_LOAD_WEBRFC_GRAPHICS CALL FUNCTION 'HTMLCNTL_LOAD_WEBRFC_GRAPHICS' EXPORTING H_CONTROL = H_HTML_CONTROL EXCEPTIONS CNTL_SYSTEM_ERROR = 1 CNTL_ERROR = 2 OBJECT_NOT_FOUND = 3 OTHERS = 4.



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 CNHTTST4 or its description.