SAP CKML_F_TCKM2_EXT_FOR_ONE_VA Function Module for
CKML_F_TCKM2_EXT_FOR_ONE_VA is a standard ckml f tckm2 ext for one va 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 ckml f tckm2 ext for one va FM, simply by entering the name CKML_F_TCKM2_EXT_FOR_ONE_VA into the relevant SAP transaction such as SE37 or SE38.
Function Group: CKM2
Program Name: SAPLCKM2
Main Program: SAPLCKM2
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CKML_F_TCKM2_EXT_FOR_ONE_VA 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 'CKML_F_TCKM2_EXT_FOR_ONE_VA'".
EXPORTING
BWKEY = "Valuation Area
* CALL_BY_INIT_PROG = ' ' "
* I_CUSTOMIZING = ' ' "
TABLES
* T_CURTP_FOR_VA = "
* T_TCKM2_EXT = "
EXCEPTIONS
BWKEY_NOT_FOUND = 1 BWKEY_NOT_ACTIVE = 2 MATLED_NOT_FOUND = 3 MORE_THAN_3_CURTP = 4 INTERNAL_ERROR = 5
IMPORTING Parameters details for CKML_F_TCKM2_EXT_FOR_ONE_VA
BWKEY - Valuation Area
Data type: CKMLHD-BWKEYOptional: No
Call by Reference: No ( called with pass by value option)
CALL_BY_INIT_PROG -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CUSTOMIZING -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CKML_F_TCKM2_EXT_FOR_ONE_VA
T_CURTP_FOR_VA -
Data type: CKI_ML_CTYOptional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKM2_EXT -
Data type: CKI_TCKM2EOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BWKEY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BWKEY_NOT_ACTIVE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MATLED_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MORE_THAN_3_CURTP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CKML_F_TCKM2_EXT_FOR_ONE_VA 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_bwkey | TYPE CKMLHD-BWKEY, " | |||
lt_t_curtp_for_va | TYPE STANDARD TABLE OF CKI_ML_CTY, " | |||
lv_bwkey_not_found | TYPE CKI_ML_CTY, " | |||
lt_t_tckm2_ext | TYPE STANDARD TABLE OF CKI_TCKM2E, " | |||
lv_bwkey_not_active | TYPE CKI_TCKM2E, " | |||
lv_call_by_init_prog | TYPE BOOLE-BOOLE, " SPACE | |||
lv_i_customizing | TYPE BOOLE-BOOLE, " SPACE | |||
lv_matled_not_found | TYPE BOOLE, " | |||
lv_more_than_3_curtp | TYPE BOOLE, " | |||
lv_internal_error | TYPE BOOLE. " |
  CALL FUNCTION 'CKML_F_TCKM2_EXT_FOR_ONE_VA' " |
EXPORTING | ||
BWKEY | = lv_bwkey | |
CALL_BY_INIT_PROG | = lv_call_by_init_prog | |
I_CUSTOMIZING | = lv_i_customizing | |
TABLES | ||
T_CURTP_FOR_VA | = lt_t_curtp_for_va | |
T_TCKM2_EXT | = lt_t_tckm2_ext | |
EXCEPTIONS | ||
BWKEY_NOT_FOUND = 1 | ||
BWKEY_NOT_ACTIVE = 2 | ||
MATLED_NOT_FOUND = 3 | ||
MORE_THAN_3_CURTP = 4 | ||
INTERNAL_ERROR = 5 | ||
. " CKML_F_TCKM2_EXT_FOR_ONE_VA |
ABAP code using 7.40 inline data declarations to call FM CKML_F_TCKM2_EXT_FOR_ONE_VA
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 BWKEY FROM CKMLHD INTO @DATA(ld_bwkey). | ||||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_call_by_init_prog). | ||||
DATA(ld_call_by_init_prog) | = ' '. | |||
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_customizing). | ||||
DATA(ld_i_customizing) | = ' '. | |||
Search for further information about these or an SAP related objects