SAP CKML_F_SET_ACTIVITY Function Module for
CKML_F_SET_ACTIVITY is a standard ckml f set activity 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 set activity FM, simply by entering the name CKML_F_SET_ACTIVITY into the relevant SAP transaction such as SE37 or SE38.
Function Group: CKMB
Program Name: SAPLCKMB
Main Program: SAPLCKMB
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CKML_F_SET_ACTIVITY 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_SET_ACTIVITY'".
EXPORTING
LSTAR = "
LFGJA = "
PRCTR = "
PPRCTR = "
SPART = "
GSBER = "
* BUKRS = ' ' "Company Code
KOSTL = "
PRZNR = "
KOKRS = "
BWKEY = "
BKLAS = "
VMBKL = "
VJBKL = "
LFMON = "
IMPORTING Parameters details for CKML_F_SET_ACTIVITY
LSTAR -
Data type: ACCIT-LSTAROptional: No
Call by Reference: Yes
LFGJA -
Data type: MBEW-LFGJAOptional: No
Call by Reference: Yes
PRCTR -
Data type: ACCIT-PRCTROptional: No
Call by Reference: Yes
PPRCTR -
Data type: ACCIT-PPRCTROptional: No
Call by Reference: Yes
SPART -
Data type: ACCIT-SPARTOptional: No
Call by Reference: Yes
GSBER -
Data type: ACCIT-GSBEROptional: No
Call by Reference: Yes
BUKRS - Company Code
Data type: ACCIT-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: Yes
KOSTL -
Data type: ACCIT-KOSTLOptional: No
Call by Reference: Yes
PRZNR -
Data type: ACCIT-PRZNROptional: No
Call by Reference: Yes
KOKRS -
Data type: ACCIT-KOKRSOptional: No
Call by Reference: Yes
BWKEY -
Data type: MBEW-BWKEYOptional: No
Call by Reference: Yes
BKLAS -
Data type: MBEW-BKLASOptional: No
Call by Reference: Yes
VMBKL -
Data type: MBEW-VMBKLOptional: No
Call by Reference: Yes
VJBKL -
Data type: MBEW-VJBKLOptional: No
Call by Reference: Yes
LFMON -
Data type: MBEW-LFMONOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CKML_F_SET_ACTIVITY 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_lstar | TYPE ACCIT-LSTAR, " | |||
| lv_lfgja | TYPE MBEW-LFGJA, " | |||
| lv_prctr | TYPE ACCIT-PRCTR, " | |||
| lv_pprctr | TYPE ACCIT-PPRCTR, " | |||
| lv_spart | TYPE ACCIT-SPART, " | |||
| lv_gsber | TYPE ACCIT-GSBER, " | |||
| lv_bukrs | TYPE ACCIT-BUKRS, " SPACE | |||
| lv_kostl | TYPE ACCIT-KOSTL, " | |||
| lv_prznr | TYPE ACCIT-PRZNR, " | |||
| lv_kokrs | TYPE ACCIT-KOKRS, " | |||
| lv_bwkey | TYPE MBEW-BWKEY, " | |||
| lv_bklas | TYPE MBEW-BKLAS, " | |||
| lv_vmbkl | TYPE MBEW-VMBKL, " | |||
| lv_vjbkl | TYPE MBEW-VJBKL, " | |||
| lv_lfmon | TYPE MBEW-LFMON. " |
|   CALL FUNCTION 'CKML_F_SET_ACTIVITY' " |
| EXPORTING | ||
| LSTAR | = lv_lstar | |
| LFGJA | = lv_lfgja | |
| PRCTR | = lv_prctr | |
| PPRCTR | = lv_pprctr | |
| SPART | = lv_spart | |
| GSBER | = lv_gsber | |
| BUKRS | = lv_bukrs | |
| KOSTL | = lv_kostl | |
| PRZNR | = lv_prznr | |
| KOKRS | = lv_kokrs | |
| BWKEY | = lv_bwkey | |
| BKLAS | = lv_bklas | |
| VMBKL | = lv_vmbkl | |
| VJBKL | = lv_vjbkl | |
| LFMON | = lv_lfmon | |
| . " CKML_F_SET_ACTIVITY | ||
ABAP code using 7.40 inline data declarations to call FM CKML_F_SET_ACTIVITY
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 LSTAR FROM ACCIT INTO @DATA(ld_lstar). | ||||
| "SELECT single LFGJA FROM MBEW INTO @DATA(ld_lfgja). | ||||
| "SELECT single PRCTR FROM ACCIT INTO @DATA(ld_prctr). | ||||
| "SELECT single PPRCTR FROM ACCIT INTO @DATA(ld_pprctr). | ||||
| "SELECT single SPART FROM ACCIT INTO @DATA(ld_spart). | ||||
| "SELECT single GSBER FROM ACCIT INTO @DATA(ld_gsber). | ||||
| "SELECT single BUKRS FROM ACCIT INTO @DATA(ld_bukrs). | ||||
| DATA(ld_bukrs) | = ' '. | |||
| "SELECT single KOSTL FROM ACCIT INTO @DATA(ld_kostl). | ||||
| "SELECT single PRZNR FROM ACCIT INTO @DATA(ld_prznr). | ||||
| "SELECT single KOKRS FROM ACCIT INTO @DATA(ld_kokrs). | ||||
| "SELECT single BWKEY FROM MBEW INTO @DATA(ld_bwkey). | ||||
| "SELECT single BKLAS FROM MBEW INTO @DATA(ld_bklas). | ||||
| "SELECT single VMBKL FROM MBEW INTO @DATA(ld_vmbkl). | ||||
| "SELECT single VJBKL FROM MBEW INTO @DATA(ld_vjbkl). | ||||
| "SELECT single LFMON FROM MBEW INTO @DATA(ld_lfmon). | ||||
Search for further information about these or an SAP related objects