SAP K_DESCRIPTION_MAINTAIN Function Module for
K_DESCRIPTION_MAINTAIN is a standard k description maintain 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 k description maintain FM, simply by entering the name K_DESCRIPTION_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: KAMM
Program Name: SAPLKAMM
Main Program: SAPLKAMM
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_DESCRIPTION_MAINTAIN 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 'K_DESCRIPTION_MAINTAIN'".
EXPORTING
* KDM_FLG_ONLY_CHECK = ' ' "Test Only? X = Test Only
* KDM_MODUS = 'A' "Mode A = Display; H = Insert; V = Update
* KDM_TABLE_NAME = 'CSKS' "Master Data Table Name
* KDM_TEXT_ID = 'LTXT' "Any ID
* KDM_TEXT_NAME = '00010000000001' "Object Description, Such as CO Area + Object
* KDM_TEXT_NAME_REF = ' ' "Reference Object if Copies are Made
IMPORTING
KDM_FLG_TEXT_EXISTS = "' ' = No Long Text; 'X' = Long Text Exists
KDM_FLG_TXT_FUNCTION = "
IMPORTING Parameters details for K_DESCRIPTION_MAINTAIN
KDM_FLG_ONLY_CHECK - Test Only? X = Test Only
Data type: RKSB1-XJADefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
KDM_MODUS - Mode A = Display; H = Insert; V = Update
Data type: RKHLP-MODUSDefault: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KDM_TABLE_NAME - Master Data Table Name
Data type: THEAD-TDOBJECTDefault: 'CSKS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KDM_TEXT_ID - Any ID
Data type: THEAD-TDIDDefault: 'LTXT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KDM_TEXT_NAME - Object Description, Such as CO Area + Object
Data type: THEAD-TDNAMEDefault: '00010000000001'
Optional: Yes
Call by Reference: No ( called with pass by value option)
KDM_TEXT_NAME_REF - Reference Object if Copies are Made
Data type: THEAD-TDNAMEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for K_DESCRIPTION_MAINTAIN
KDM_FLG_TEXT_EXISTS - ' ' = No Long Text; 'X' = Long Text Exists
Data type: RKSB1-XJAOptional: No
Call by Reference: No ( called with pass by value option)
KDM_FLG_TXT_FUNCTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_DESCRIPTION_MAINTAIN 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_kdm_flg_only_check | TYPE RKSB1-XJA, " ' ' | |||
| lv_kdm_flg_text_exists | TYPE RKSB1-XJA, " | |||
| lv_kdm_modus | TYPE RKHLP-MODUS, " 'A' | |||
| lv_kdm_flg_txt_function | TYPE RKHLP, " | |||
| lv_kdm_table_name | TYPE THEAD-TDOBJECT, " 'CSKS' | |||
| lv_kdm_text_id | TYPE THEAD-TDID, " 'LTXT' | |||
| lv_kdm_text_name | TYPE THEAD-TDNAME, " '00010000000001' | |||
| lv_kdm_text_name_ref | TYPE THEAD-TDNAME. " ' ' |
|   CALL FUNCTION 'K_DESCRIPTION_MAINTAIN' " |
| EXPORTING | ||
| KDM_FLG_ONLY_CHECK | = lv_kdm_flg_only_check | |
| KDM_MODUS | = lv_kdm_modus | |
| KDM_TABLE_NAME | = lv_kdm_table_name | |
| KDM_TEXT_ID | = lv_kdm_text_id | |
| KDM_TEXT_NAME | = lv_kdm_text_name | |
| KDM_TEXT_NAME_REF | = lv_kdm_text_name_ref | |
| IMPORTING | ||
| KDM_FLG_TEXT_EXISTS | = lv_kdm_flg_text_exists | |
| KDM_FLG_TXT_FUNCTION | = lv_kdm_flg_txt_function | |
| . " K_DESCRIPTION_MAINTAIN | ||
ABAP code using 7.40 inline data declarations to call FM K_DESCRIPTION_MAINTAIN
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 XJA FROM RKSB1 INTO @DATA(ld_kdm_flg_only_check). | ||||
| DATA(ld_kdm_flg_only_check) | = ' '. | |||
| "SELECT single XJA FROM RKSB1 INTO @DATA(ld_kdm_flg_text_exists). | ||||
| "SELECT single MODUS FROM RKHLP INTO @DATA(ld_kdm_modus). | ||||
| DATA(ld_kdm_modus) | = 'A'. | |||
| "SELECT single TDOBJECT FROM THEAD INTO @DATA(ld_kdm_table_name). | ||||
| DATA(ld_kdm_table_name) | = 'CSKS'. | |||
| "SELECT single TDID FROM THEAD INTO @DATA(ld_kdm_text_id). | ||||
| DATA(ld_kdm_text_id) | = 'LTXT'. | |||
| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_kdm_text_name). | ||||
| DATA(ld_kdm_text_name) | = '00010000000001'. | |||
| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_kdm_text_name_ref). | ||||
| DATA(ld_kdm_text_name_ref) | = ' '. | |||
Search for further information about these or an SAP related objects