SAP ICON_CHECK Function Module for









ICON_CHECK is a standard icon check 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 icon check FM, simply by entering the name ICON_CHECK into the relevant SAP transaction such as SE37 or SE38.

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



Function ICON_CHECK 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 'ICON_CHECK'"
EXPORTING
ICON_NAME = "ABAP name of icon
* LANGUAGE = ' ' "
* BUTTON = 'X' "
* STATUS = 'X' "
* MESSAGE = 'X' "
* FUNCTION = 'X' "
* TEXTFIELD = 'X' "
* LOCKED = 'X' "

IMPORTING
ICON_TEXT = "Quickinfo
ICON_SIZE = "Width of icon
ICON_ID = "

EXCEPTIONS
ICON_NOT_FOUND = 1
.



IMPORTING Parameters details for ICON_CHECK

ICON_NAME - ABAP name of icon

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

LANGUAGE -

Data type: SY-LANGU
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUTTON -

Data type: ICON-BUTTON
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

STATUS -

Data type: ICON-STATUS
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MESSAGE -

Data type: ICON-MESSAGE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FUNCTION -

Data type: ICON-FUNCTION
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TEXTFIELD -

Data type: ICON-TEXTFIELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOCKED -

Data type: ICON-LOCKED
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ICON_CHECK

ICON_TEXT - Quickinfo

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

ICON_SIZE - Width of icon

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

ICON_ID -

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

EXCEPTIONS details

ICON_NOT_FOUND -

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

Copy and paste ABAP code example for ICON_CHECK 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_icon_name  TYPE ICON-NAME, "   
lv_icon_text  TYPE ICONT-QUICKINFO, "   
lv_icon_not_found  TYPE ICONT, "   
lv_language  TYPE SY-LANGU, "   SPACE
lv_icon_size  TYPE ICON-OLENG, "   
lv_button  TYPE ICON-BUTTON, "   'X'
lv_icon_id  TYPE ICON-ID, "   
lv_status  TYPE ICON-STATUS, "   'X'
lv_message  TYPE ICON-MESSAGE, "   'X'
lv_function  TYPE ICON-FUNCTION, "   'X'
lv_textfield  TYPE ICON-TEXTFIELD, "   'X'
lv_locked  TYPE ICON-LOCKED. "   'X'

  CALL FUNCTION 'ICON_CHECK'  "
    EXPORTING
         ICON_NAME = lv_icon_name
         LANGUAGE = lv_language
         BUTTON = lv_button
         STATUS = lv_status
         MESSAGE = lv_message
         FUNCTION = lv_function
         TEXTFIELD = lv_textfield
         LOCKED = lv_locked
    IMPORTING
         ICON_TEXT = lv_icon_text
         ICON_SIZE = lv_icon_size
         ICON_ID = lv_icon_id
    EXCEPTIONS
        ICON_NOT_FOUND = 1
. " ICON_CHECK




ABAP code using 7.40 inline data declarations to call FM ICON_CHECK

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 NAME FROM ICON INTO @DATA(ld_icon_name).
 
"SELECT single QUICKINFO FROM ICONT INTO @DATA(ld_icon_text).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = ' '.
 
"SELECT single OLENG FROM ICON INTO @DATA(ld_icon_size).
 
"SELECT single BUTTON FROM ICON INTO @DATA(ld_button).
DATA(ld_button) = 'X'.
 
"SELECT single ID FROM ICON INTO @DATA(ld_icon_id).
 
"SELECT single STATUS FROM ICON INTO @DATA(ld_status).
DATA(ld_status) = 'X'.
 
"SELECT single MESSAGE FROM ICON INTO @DATA(ld_message).
DATA(ld_message) = 'X'.
 
"SELECT single FUNCTION FROM ICON INTO @DATA(ld_function).
DATA(ld_function) = 'X'.
 
"SELECT single TEXTFIELD FROM ICON INTO @DATA(ld_textfield).
DATA(ld_textfield) = 'X'.
 
"SELECT single LOCKED FROM ICON INTO @DATA(ld_locked).
DATA(ld_locked) = 'X'.
 


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!