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

Function CKML_F_DOCUMENT_SORT 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_DOCUMENT_SORT'".
TABLES
* T_MLHD = "
* T_MLPRKEPH = "
T_MLIT = "
T_MLPP = "
T_MLPPF = "
T_MLCR = "
T_MLCRF = "
T_MLCRP = ")
T_MLKEPH = "
* T_MLPRKEKO = "
TABLES Parameters details for CKML_F_DOCUMENT_SORT
T_MLHD -
Data type: MLHDOptional: Yes
Call by Reference: No ( called with pass by value option)
T_MLPRKEPH -
Data type: MLPRKEPHOptional: Yes
Call by Reference: Yes
T_MLIT -
Data type: MLITOptional: No
Call by Reference: No ( called with pass by value option)
T_MLPP -
Data type: MLPPOptional: No
Call by Reference: No ( called with pass by value option)
T_MLPPF -
Data type: MLPPFOptional: No
Call by Reference: No ( called with pass by value option)
T_MLCR -
Data type: MLCROptional: No
Call by Reference: No ( called with pass by value option)
T_MLCRF -
Data type: MLCRFOptional: No
Call by Reference: No ( called with pass by value option)
T_MLCRP - )
Data type: MLCRPOptional: No
Call by Reference: Yes
T_MLKEPH -
Data type: MLKEPHOptional: No
Call by Reference: Yes
T_MLPRKEKO -
Data type: MLPRKEKOOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CKML_F_DOCUMENT_SORT 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: | ||||
| lt_t_mlhd | TYPE STANDARD TABLE OF MLHD, " | |||
| lt_t_mlprkeph | TYPE STANDARD TABLE OF MLPRKEPH, " | |||
| lt_t_mlit | TYPE STANDARD TABLE OF MLIT, " | |||
| lt_t_mlpp | TYPE STANDARD TABLE OF MLPP, " | |||
| lt_t_mlppf | TYPE STANDARD TABLE OF MLPPF, " | |||
| lt_t_mlcr | TYPE STANDARD TABLE OF MLCR, " | |||
| lt_t_mlcrf | TYPE STANDARD TABLE OF MLCRF, " | |||
| lt_t_mlcrp | TYPE STANDARD TABLE OF MLCRP, " | |||
| lt_t_mlkeph | TYPE STANDARD TABLE OF MLKEPH, " | |||
| lt_t_mlprkeko | TYPE STANDARD TABLE OF MLPRKEKO. " |
|   CALL FUNCTION 'CKML_F_DOCUMENT_SORT' " |
| TABLES | ||
| T_MLHD | = lt_t_mlhd | |
| T_MLPRKEPH | = lt_t_mlprkeph | |
| T_MLIT | = lt_t_mlit | |
| T_MLPP | = lt_t_mlpp | |
| T_MLPPF | = lt_t_mlppf | |
| T_MLCR | = lt_t_mlcr | |
| T_MLCRF | = lt_t_mlcrf | |
| T_MLCRP | = lt_t_mlcrp | |
| T_MLKEPH | = lt_t_mlkeph | |
| T_MLPRKEKO | = lt_t_mlprkeko | |
| . " CKML_F_DOCUMENT_SORT | ||
ABAP code using 7.40 inline data declarations to call FM CKML_F_DOCUMENT_SORT
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.Search for further information about these or an SAP related objects