SAP CKML_SCHEDMAN_RECORD_CLOSE Function Module for









CKML_SCHEDMAN_RECORD_CLOSE is a standard ckml schedman record close 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 schedman record close FM, simply by entering the name CKML_SCHEDMAN_RECORD_CLOSE into the relevant SAP transaction such as SE37 or SE38.

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



Function CKML_SCHEDMAN_RECORD_CLOSE 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_SCHEDMAN_RECORD_CLOSE'"
EXPORTING
* I_OBJECTS = "
* I_APLICATION_STATUS = "
* I_PROT_NUMBER = "
* I_APLID = ' ' "
* I_OBJID = ' ' "
* I_SCMA_EVENT = "

EXCEPTIONS
NO_OPEN_RECORD_FOUND = 1
.



IMPORTING Parameters details for CKML_SCHEDMAN_RECORD_CLOSE

I_OBJECTS -

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

I_APLICATION_STATUS -

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

I_PROT_NUMBER -

Data type: CMFP-NR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_APLID -

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

I_OBJID -

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

I_SCMA_EVENT -

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

EXCEPTIONS details

NO_OPEN_RECORD_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CKML_SCHEDMAN_RECORD_CLOSE 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_i_objects  TYPE OBJNMBR, "   
lv_no_open_record_found  TYPE OBJNMBR, "   
lv_i_aplication_status  TYPE SCHEDMAN_JOB_STATI, "   
lv_i_prot_number  TYPE CMFP-NR, "   
lv_i_aplid  TYPE TCMF6-APLID, "   SPACE
lv_i_objid  TYPE TCMF6-OBJID, "   SPACE
lv_i_scma_event  TYPE SCMA_EVENT. "   

  CALL FUNCTION 'CKML_SCHEDMAN_RECORD_CLOSE'  "
    EXPORTING
         I_OBJECTS = lv_i_objects
         I_APLICATION_STATUS = lv_i_aplication_status
         I_PROT_NUMBER = lv_i_prot_number
         I_APLID = lv_i_aplid
         I_OBJID = lv_i_objid
         I_SCMA_EVENT = lv_i_scma_event
    EXCEPTIONS
        NO_OPEN_RECORD_FOUND = 1
. " CKML_SCHEDMAN_RECORD_CLOSE




ABAP code using 7.40 inline data declarations to call FM CKML_SCHEDMAN_RECORD_CLOSE

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 NR FROM CMFP INTO @DATA(ld_i_prot_number).
 
"SELECT single APLID FROM TCMF6 INTO @DATA(ld_i_aplid).
DATA(ld_i_aplid) = ' '.
 
"SELECT single OBJID FROM TCMF6 INTO @DATA(ld_i_objid).
DATA(ld_i_objid) = ' '.
 
 


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!