SAP CLM_FUNC_DIFFERENCES_SHOW Function Module for Customer Enhancement: Format Change Log
CLM_FUNC_DIFFERENCES_SHOW is a standard clm func differences show SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Customer Enhancement: Format Change Log processing and below is the pattern details for this FM, 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 clm func differences show FM, simply by entering the name CLM_FUNC_DIFFERENCES_SHOW into the relevant SAP transaction such as SE37 or SE38.
Function Group: SEMO
Program Name: SAPLSEMO
Main Program: SAPLSEMO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CLM_FUNC_DIFFERENCES_SHOW 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 'CLM_FUNC_DIFFERENCES_SHOW'"Customer Enhancement: Format Change Log.
EXPORTING
OBJECT = "
* SUPPRESS_LIST = ' ' "
* OTFTIT = "
* INTERNAL = ' ' "
* P_TOOL_LOG = "SMODILOG Interface for Tools
* STATE = "ABAP: Program Status (Active, Saved, Transported...)
IMPORTING
SEL_NODE = "
TABLES
* DIFFERENCES_LIST = "
* DTABLES = "
* DEXCEPT = "
* REPS_SMODILOG = "
* OIMPORT = "
* OEXPORT = "
* OCHANGE = "
* OTABLES = "
* OEXCEPT = "
* DIMPORT = "
* DEXPORT = "
* DCHANGE = "
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for CLM_FUNC_DIFFERENCES_SHOW
OBJECT -
Data type: SMODI_LOG_KEYOptional: No
Call by Reference: No ( called with pass by value option)
SUPPRESS_LIST -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
OTFTIT -
Data type: TFTITOptional: Yes
Call by Reference: No ( called with pass by value option)
INTERNAL -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_TOOL_LOG - SMODILOG Interface for Tools
Data type: CL_CLM_TOOL_LOGOptional: Yes
Call by Reference: Yes
STATE - ABAP: Program Status (Active, Saved, Transported...)
Data type: HEADER_FB-STATEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CLM_FUNC_DIFFERENCES_SHOW
SEL_NODE -
Data type: SNODETEXTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CLM_FUNC_DIFFERENCES_SHOW
DIFFERENCES_LIST -
Data type: SNODETEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
DTABLES -
Data type: RSTBLOptional: Yes
Call by Reference: No ( called with pass by value option)
DEXCEPT -
Data type: RSEXCOptional: Yes
Call by Reference: No ( called with pass by value option)
REPS_SMODILOG -
Data type: SMODILOGOptional: Yes
Call by Reference: No ( called with pass by value option)
OIMPORT -
Data type: RSIMPOptional: Yes
Call by Reference: No ( called with pass by value option)
OEXPORT -
Data type: RSEXPOptional: Yes
Call by Reference: No ( called with pass by value option)
OCHANGE -
Data type: RSCHAOptional: Yes
Call by Reference: No ( called with pass by value option)
OTABLES -
Data type: RSTBLOptional: Yes
Call by Reference: No ( called with pass by value option)
OEXCEPT -
Data type: RSEXCOptional: Yes
Call by Reference: No ( called with pass by value option)
DIMPORT -
Data type: RSIMPOptional: Yes
Call by Reference: No ( called with pass by value option)
DEXPORT -
Data type: RSEXPOptional: Yes
Call by Reference: No ( called with pass by value option)
DCHANGE -
Data type: RSCHAOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CLM_FUNC_DIFFERENCES_SHOW 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_object | TYPE SMODI_LOG_KEY, " | |||
| lv_sel_node | TYPE SNODETEXT, " | |||
| lv_not_found | TYPE SNODETEXT, " | |||
| lt_differences_list | TYPE STANDARD TABLE OF SNODETEXT, " | |||
| lt_dtables | TYPE STANDARD TABLE OF RSTBL, " | |||
| lt_dexcept | TYPE STANDARD TABLE OF RSEXC, " | |||
| lt_reps_smodilog | TYPE STANDARD TABLE OF SMODILOG, " | |||
| lt_oimport | TYPE STANDARD TABLE OF RSIMP, " | |||
| lv_suppress_list | TYPE RSIMP, " SPACE | |||
| lv_otftit | TYPE TFTIT, " | |||
| lt_oexport | TYPE STANDARD TABLE OF RSEXP, " | |||
| lt_ochange | TYPE STANDARD TABLE OF RSCHA, " | |||
| lv_internal | TYPE RSCHA, " SPACE | |||
| lt_otables | TYPE STANDARD TABLE OF RSTBL, " | |||
| lv_p_tool_log | TYPE CL_CLM_TOOL_LOG, " | |||
| lv_state | TYPE HEADER_FB-STATE, " | |||
| lt_oexcept | TYPE STANDARD TABLE OF RSEXC, " | |||
| lt_dimport | TYPE STANDARD TABLE OF RSIMP, " | |||
| lt_dexport | TYPE STANDARD TABLE OF RSEXP, " | |||
| lt_dchange | TYPE STANDARD TABLE OF RSCHA. " |
|   CALL FUNCTION 'CLM_FUNC_DIFFERENCES_SHOW' "Customer Enhancement: Format Change Log |
| EXPORTING | ||
| OBJECT | = lv_object | |
| SUPPRESS_LIST | = lv_suppress_list | |
| OTFTIT | = lv_otftit | |
| INTERNAL | = lv_internal | |
| P_TOOL_LOG | = lv_p_tool_log | |
| STATE | = lv_state | |
| IMPORTING | ||
| SEL_NODE | = lv_sel_node | |
| TABLES | ||
| DIFFERENCES_LIST | = lt_differences_list | |
| DTABLES | = lt_dtables | |
| DEXCEPT | = lt_dexcept | |
| REPS_SMODILOG | = lt_reps_smodilog | |
| OIMPORT | = lt_oimport | |
| OEXPORT | = lt_oexport | |
| OCHANGE | = lt_ochange | |
| OTABLES | = lt_otables | |
| OEXCEPT | = lt_oexcept | |
| DIMPORT | = lt_dimport | |
| DEXPORT | = lt_dexport | |
| DCHANGE | = lt_dchange | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " CLM_FUNC_DIFFERENCES_SHOW | ||
ABAP code using 7.40 inline data declarations to call FM CLM_FUNC_DIFFERENCES_SHOW
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.| DATA(ld_suppress_list) | = ' '. | |||
| DATA(ld_internal) | = ' '. | |||
| "SELECT single STATE FROM HEADER_FB INTO @DATA(ld_state). | ||||
Search for further information about these or an SAP related objects