SAP CHARACTERISTIC_COMMENTARY Function Module for









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

Function Group: KYCO
Program Name: SAPLKYCO
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CHARACTERISTIC_COMMENTARY 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 'CHARACTERISTIC_COMMENTARY'"
EXPORTING
APPLCLASS = "Application class
FIENM = "Field name
I_RKB1X = "
KEYID = "Characteristic
LINE = "Line in which the cursor is placed
MODE = "Mode
TABNAME = "Table name
* TXT_M = ' ' "Text for the characteristic
CHTAB = "

IMPORTING
E_TITLE = "Title of the dialog box when displaying
TFLAG = "Text flag

TABLES
TEXT_TAB = "Displayed text table (mode 'D')
.



IMPORTING Parameters details for CHARACTERISTIC_COMMENTARY

APPLCLASS - Application class

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

FIENM - Field name

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

I_RKB1X -

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

KEYID - Characteristic

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

LINE - Line in which the cursor is placed

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

MODE - Mode

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

TABNAME - Table name

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

TXT_M - Text for the characteristic

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

CHTAB -

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

EXPORTING Parameters details for CHARACTERISTIC_COMMENTARY

E_TITLE - Title of the dialog box when displaying

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

TFLAG - Text flag

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

TABLES Parameters details for CHARACTERISTIC_COMMENTARY

TEXT_TAB - Displayed text table (mode 'D')

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

Copy and paste ABAP code example for CHARACTERISTIC_COMMENTARY 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_e_title  TYPE C, "   
lt_text_tab  TYPE STANDARD TABLE OF TLINE, "   
lv_applclass  TYPE TKEB1-APPLCLASS, "   
lv_fienm  TYPE CDIFIE-FIENM, "   
lv_tflag  TYPE T242B-TFLAG, "   
lv_i_rkb1x  TYPE RKB1X, "   
lv_keyid  TYPE CFBSE01-LOW, "   
lv_line  TYPE SY-CUROW, "   
lv_mode  TYPE C, "   
lv_tabname  TYPE RKB1D-TABNAME, "   
lv_txt_m  TYPE CDIFIE-TXT_M, "   SPACE
lv_chtab  TYPE CDIFIE-CHTAB. "   

  CALL FUNCTION 'CHARACTERISTIC_COMMENTARY'  "
    EXPORTING
         APPLCLASS = lv_applclass
         FIENM = lv_fienm
         I_RKB1X = lv_i_rkb1x
         KEYID = lv_keyid
         LINE = lv_line
         MODE = lv_mode
         TABNAME = lv_tabname
         TXT_M = lv_txt_m
         CHTAB = lv_chtab
    IMPORTING
         E_TITLE = lv_e_title
         TFLAG = lv_tflag
    TABLES
         TEXT_TAB = lt_text_tab
. " CHARACTERISTIC_COMMENTARY




ABAP code using 7.40 inline data declarations to call FM CHARACTERISTIC_COMMENTARY

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 APPLCLASS FROM TKEB1 INTO @DATA(ld_applclass).
 
"SELECT single FIENM FROM CDIFIE INTO @DATA(ld_fienm).
 
"SELECT single TFLAG FROM T242B INTO @DATA(ld_tflag).
 
 
"SELECT single LOW FROM CFBSE01 INTO @DATA(ld_keyid).
 
"SELECT single CUROW FROM SY INTO @DATA(ld_line).
 
 
"SELECT single TABNAME FROM RKB1D INTO @DATA(ld_tabname).
 
"SELECT single TXT_M FROM CDIFIE INTO @DATA(ld_txt_m).
DATA(ld_txt_m) = ' '.
 
"SELECT single CHTAB FROM CDIFIE INTO @DATA(ld_chtab).
 


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!