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

CNHTTST2 SAP ABAP Report - Demo for HTML Control: Processing Control Events in ABAP







CNHTTST2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program demonstrates how events from the HTML control are handled in the ABAP program...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 CNHTTST2 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 CNHTTST2. "Basic submit
SUBMIT CNHTTST2 AND RETURN. "Return to original report after report execution complete
SUBMIT CNHTTST2 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: Processing Control Events in ABAP


INCLUDES used within this REPORT CNHTTST2

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:

HTMLCNTL_CREATE CALL FUNCTION 'HTMLCNTL_CREATE' EXPORTING OWNER_REPID = PROG_REPID PARENTID = DYNPRO_DEFAULT LINK_REPID = PROG_REPID DYNNR = '0100' CONTAINER = 'HTML_CONTROL' CHANGING HANDLE = H_HTML_CONTROL.

HTMLCNTL_INIT CALL FUNCTION 'HTMLCNTL_INIT' EXPORTING H_CONTROL = H_HTML_CONTROL REGISTER_EVENT_ON_NAVIGATE = 'x'.

HTMLCNTL_GET_EVENT_URL CALL FUNCTION 'HTMLCNTL_GET_EVENT_URL' EXPORTING H_CONTROL = H_HTML_CONTROL CHANGING URL = URL.

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_GET_EVENT_GETDATA CALL FUNCTION 'HTMLCNTL_GET_EVENT_GETDATA' EXPORTING H_CONTROL = H_HTML_CONTROL CHANGING GET_DATA = GETDATA.

HTMLCNTL_GET_EVENT_POSTDATA CALL FUNCTION 'HTMLCNTL_GET_EVENT_POSTDATA' EXPORTING H_CONTROL = H_HTML_CONTROL IMPORTING SIZE = POSTDATA_SIZE TABLES POST_DATA = POSTDATA_TAB EXCEPTIONS CNTL_ERROR = 1 OTHERS = 2.

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

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_LOAD_HTML_DOCUMENT CALL FUNCTION 'HTMLCNTL_LOAD_HTML_DOCUMENT' EXPORTING H_CONTROL = H_HTML_CONTROL DOCUMENT_ID = 'HTMLCNTL_TESTEVNT_HOME' 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_HTML_DOCUMENT CALL FUNCTION 'HTMLCNTL_LOAD_HTML_DOCUMENT' EXPORTING H_CONTROL = H_HTML_CONTROL DOCUMENT_ID = 'HTMLCNTL_TESTHTM2_FRAME1' DOCUMENT_URL = 'HTMLFrame1.htm'

HTMLCNTL_LOAD_HTML_DOCUMENT CALL FUNCTION 'HTMLCNTL_LOAD_HTML_DOCUMENT' EXPORTING H_CONTROL = H_HTML_CONTROL DOCUMENT_ID = 'HTMLCNTL_TESTEVNT_HOME' DOCUMENT_URL = 'HTMLFrame2.htm'

HTMLCNTL_LOAD_HTML_DOCUMENT CALL FUNCTION 'HTMLCNTL_LOAD_HTML_DOCUMENT' EXPORTING H_CONTROL = H_HTML_CONTROL DOCUMENT_ID = 'HTMLCNTL_TESTHTM2_FRAMESET' 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_SAP_AG' OBJECT_URL = 'SAP_AG.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'



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