SAP HTMLCNTL_INIT Function Module for









HTMLCNTL_INIT is a standard htmlcntl init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for htmlcntl init FM, simply by entering the name HTMLCNTL_INIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CNHT
Program Name: SAPLCNHT
Main Program: SAPLCNHT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function HTMLCNTL_INIT pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'HTMLCNTL_INIT'"
EXPORTING
H_CONTROL = "
* CB_FORM_NAVIGATE_COMPLETE = "
* CB_PROG_NAVIGATE_COMPLETE = "
* LEFT = 0 "
* TOP = 0 "
* WIDTH = 0 "
* HEIGHT = 0 "
* METRIC = CNTL_METRIC_DYNPRO "
* ALIGN = 0 "
* REGISTER_EVENT_ON_NAVIGATE = "
* NO_FLUSH = "

EXCEPTIONS
CNTL_SYSTEM_ERROR = 1 CNTL_ERROR = 2 DP_CREATE_ERROR = 3 DP_INSTALL_ERROR = 4 DP_ERROR = 5 CREATE_BROWSER_ERROR = 6 INIT_ERROR = 7
.



IMPORTING Parameters details for HTMLCNTL_INIT

H_CONTROL -

Data type: CNTL_HANDLE
Optional: No
Call by Reference: Yes

CB_FORM_NAVIGATE_COMPLETE -

Data type: C
Optional: Yes
Call by Reference: Yes

CB_PROG_NAVIGATE_COMPLETE -

Data type: SY-REPID
Optional: Yes
Call by Reference: Yes

LEFT -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

TOP -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

WIDTH -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

HEIGHT -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

METRIC -

Data type: CNTL_METRIC
Default: CNTL_METRIC_DYNPRO
Optional: Yes
Call by Reference: No ( called with pass by value option)

ALIGN -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

REGISTER_EVENT_ON_NAVIGATE -

Data type: C
Optional: Yes
Call by Reference: Yes

NO_FLUSH -

Data type: C
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

CNTL_SYSTEM_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CNTL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DP_CREATE_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DP_INSTALL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DP_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

CREATE_BROWSER_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INIT_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for HTMLCNTL_INIT Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_h_control  TYPE CNTL_HANDLE, "   
lv_cntl_system_error  TYPE CNTL_HANDLE, "   
lv_cb_form_navigate_complete  TYPE C, "   
lv_cb_prog_navigate_complete  TYPE SY-REPID, "   
lv_left  TYPE I, "   0
lv_cntl_error  TYPE I, "   
lv_top  TYPE I, "   0
lv_dp_create_error  TYPE I, "   
lv_width  TYPE I, "   0
lv_dp_install_error  TYPE I, "   
lv_height  TYPE I, "   0
lv_dp_error  TYPE I, "   
lv_metric  TYPE CNTL_METRIC, "   CNTL_METRIC_DYNPRO
lv_create_browser_error  TYPE CNTL_METRIC, "   
lv_align  TYPE I, "   0
lv_init_error  TYPE I, "   
lv_register_event_on_navigate  TYPE C, "   
lv_no_flush  TYPE C. "   

  CALL FUNCTION 'HTMLCNTL_INIT'  "
    EXPORTING
         H_CONTROL = lv_h_control
         CB_FORM_NAVIGATE_COMPLETE = lv_cb_form_navigate_complete
         CB_PROG_NAVIGATE_COMPLETE = lv_cb_prog_navigate_complete
         LEFT = lv_left
         TOP = lv_top
         WIDTH = lv_width
         HEIGHT = lv_height
         METRIC = lv_metric
         ALIGN = lv_align
         REGISTER_EVENT_ON_NAVIGATE = lv_register_event_on_navigate
         NO_FLUSH = lv_no_flush
    EXCEPTIONS
        CNTL_SYSTEM_ERROR = 1
        CNTL_ERROR = 2
        DP_CREATE_ERROR = 3
        DP_INSTALL_ERROR = 4
        DP_ERROR = 5
        CREATE_BROWSER_ERROR = 6
        INIT_ERROR = 7
. " HTMLCNTL_INIT




ABAP code using 7.40 inline data declarations to call FM HTMLCNTL_INIT

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_cb_prog_navigate_complete).
 
 
 
 
 
 
 
 
 
DATA(ld_metric) = CNTL_METRIC_DYNPRO.
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!