SAP COM_DIFF_KEY_REP_DEFAULTS Function Module for
COM_DIFF_KEY_REP_DEFAULTS is a standard com diff key rep defaults 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 com diff key rep defaults FM, simply by entering the name COM_DIFF_KEY_REP_DEFAULTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: COM_DIFF_KEY_LH_REP_GEN
Program Name: SAPLCOM_DIFF_KEY_LH_REP_GEN
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COM_DIFF_KEY_REP_DEFAULTS 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 'COM_DIFF_KEY_REP_DEFAULTS'".
EXPORTING
IS_LH_OBJ_KEY = "
IMPORTING
ES_LH_OBJ_KEYD = "
ES_DIFF_BSPD = "
ES_PR_ORGD = "
ES_PR_ORG_RELD = "
ES_PR_ORG_KEYSD = "
ES_PR_ORG_RELGD = "
ET_PR_COMP_ORGD = "
EXCEPTIONS
WRONG_CALL = 1 NOT_FOUND = 2
IMPORTING Parameters details for COM_DIFF_KEY_REP_DEFAULTS
IS_LH_OBJ_KEY -
Data type: COMT_LH_OBJ_KEYOptional: No
Call by Reference: Yes
EXPORTING Parameters details for COM_DIFF_KEY_REP_DEFAULTS
ES_LH_OBJ_KEYD -
Data type: COMT_LH_OBJ_KEY_MAINTAINOptional: No
Call by Reference: Yes
ES_DIFF_BSPD -
Data type: COMT_DIFF_BSP_MAINTAINOptional: No
Call by Reference: Yes
ES_PR_ORGD -
Data type: COMT_PR_ORG_T_MAINTAINOptional: No
Call by Reference: Yes
ES_PR_ORG_RELD -
Data type: COMT_PR_ORG_REL_MAINTAINOptional: No
Call by Reference: Yes
ES_PR_ORG_KEYSD -
Data type: COMT_PR_ORG_KEYS_MAINTAINOptional: No
Call by Reference: Yes
ES_PR_ORG_RELGD -
Data type: COMT_PR_ORG_RELG_MAINTAINOptional: No
Call by Reference: Yes
ET_PR_COMP_ORGD -
Data type: COMT_PR_COMP_ORG_MAINTAIN_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_CALL -
Data type:Optional: No
Call by Reference: Yes
NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for COM_DIFF_KEY_REP_DEFAULTS 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_wrong_call | TYPE STRING, " | |||
| lv_is_lh_obj_key | TYPE COMT_LH_OBJ_KEY, " | |||
| lv_es_lh_obj_keyd | TYPE COMT_LH_OBJ_KEY_MAINTAIN, " | |||
| lv_not_found | TYPE COMT_LH_OBJ_KEY_MAINTAIN, " | |||
| lv_es_diff_bspd | TYPE COMT_DIFF_BSP_MAINTAIN, " | |||
| lv_es_pr_orgd | TYPE COMT_PR_ORG_T_MAINTAIN, " | |||
| lv_es_pr_org_reld | TYPE COMT_PR_ORG_REL_MAINTAIN, " | |||
| lv_es_pr_org_keysd | TYPE COMT_PR_ORG_KEYS_MAINTAIN, " | |||
| lv_es_pr_org_relgd | TYPE COMT_PR_ORG_RELG_MAINTAIN, " | |||
| lv_et_pr_comp_orgd | TYPE COMT_PR_COMP_ORG_MAINTAIN_TAB. " |
|   CALL FUNCTION 'COM_DIFF_KEY_REP_DEFAULTS' " |
| EXPORTING | ||
| IS_LH_OBJ_KEY | = lv_is_lh_obj_key | |
| IMPORTING | ||
| ES_LH_OBJ_KEYD | = lv_es_lh_obj_keyd | |
| ES_DIFF_BSPD | = lv_es_diff_bspd | |
| ES_PR_ORGD | = lv_es_pr_orgd | |
| ES_PR_ORG_RELD | = lv_es_pr_org_reld | |
| ES_PR_ORG_KEYSD | = lv_es_pr_org_keysd | |
| ES_PR_ORG_RELGD | = lv_es_pr_org_relgd | |
| ET_PR_COMP_ORGD | = lv_et_pr_comp_orgd | |
| EXCEPTIONS | ||
| WRONG_CALL = 1 | ||
| NOT_FOUND = 2 | ||
| . " COM_DIFF_KEY_REP_DEFAULTS | ||
ABAP code using 7.40 inline data declarations to call FM COM_DIFF_KEY_REP_DEFAULTS
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