SAP CHECK_OBJECT_REFERENCES Function Module for NOTRANSL: SFA: Checks fo rreferences from CUSTOMERCRM to CUSTOMER (OLTP)
CHECK_OBJECT_REFERENCES is a standard check object references SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: SFA: Checks fo rreferences from CUSTOMERCRM to CUSTOMER (OLTP) 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 check object references FM, simply by entering the name CHECK_OBJECT_REFERENCES into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM3
Program Name: SAPLCRM3
Main Program: SAPLCRM3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CHECK_OBJECT_REFERENCES 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 'CHECK_OBJECT_REFERENCES'"NOTRANSL: SFA: Checks fo rreferences from CUSTOMERCRM to CUSTOMER (OLTP).
EXPORTING
I_SFA_KEY_CUST = "
* I_KUNNR = "
* I_SFA_KEY_CONT = "
I_CONTEXT = "
IMPORTING
E_KUNNR = "
E_PARNR = "
E_MESSAGE = "
CHANGING
E_KEY_INFO = "
EXCEPTIONS
NO_CUSTOMER_EXISTING = 1 R3KEY_NOT_FOUND = 2 DOUBLE_ENTRY = 3
IMPORTING Parameters details for CHECK_OBJECT_REFERENCES
I_SFA_KEY_CUST -
Data type: BAPICRMSFK-SFA_KEYOptional: No
Call by Reference: No ( called with pass by value option)
I_KUNNR -
Data type: KNA1-KUNNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_SFA_KEY_CONT -
Data type: BAPICRMSFK-SFA_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CONTEXT -
Data type: BAPICRMKEY-CHANGE_IDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CHECK_OBJECT_REFERENCES
E_KUNNR -
Data type: KNA1-KUNNROptional: No
Call by Reference: No ( called with pass by value option)
E_PARNR -
Data type: KNVK-PARNROptional: No
Call by Reference: No ( called with pass by value option)
E_MESSAGE -
Data type: BAPICRMMSGOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for CHECK_OBJECT_REFERENCES
E_KEY_INFO -
Data type: BAPICRMKEYOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_CUSTOMER_EXISTING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
R3KEY_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DOUBLE_ENTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CHECK_OBJECT_REFERENCES 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_e_kunnr | TYPE KNA1-KUNNR, " | |||
| lv_e_key_info | TYPE BAPICRMKEY, " | |||
| lv_i_sfa_key_cust | TYPE BAPICRMSFK-SFA_KEY, " | |||
| lv_no_customer_existing | TYPE BAPICRMSFK, " | |||
| lv_e_parnr | TYPE KNVK-PARNR, " | |||
| lv_i_kunnr | TYPE KNA1-KUNNR, " | |||
| lv_r3key_not_found | TYPE KNA1, " | |||
| lv_e_message | TYPE BAPICRMMSG, " | |||
| lv_double_entry | TYPE BAPICRMMSG, " | |||
| lv_i_sfa_key_cont | TYPE BAPICRMSFK-SFA_KEY, " | |||
| lv_i_context | TYPE BAPICRMKEY-CHANGE_ID. " |
|   CALL FUNCTION 'CHECK_OBJECT_REFERENCES' "NOTRANSL: SFA: Checks fo rreferences from CUSTOMERCRM to CUSTOMER (OLTP) |
| EXPORTING | ||
| I_SFA_KEY_CUST | = lv_i_sfa_key_cust | |
| I_KUNNR | = lv_i_kunnr | |
| I_SFA_KEY_CONT | = lv_i_sfa_key_cont | |
| I_CONTEXT | = lv_i_context | |
| IMPORTING | ||
| E_KUNNR | = lv_e_kunnr | |
| E_PARNR | = lv_e_parnr | |
| E_MESSAGE | = lv_e_message | |
| CHANGING | ||
| E_KEY_INFO | = lv_e_key_info | |
| EXCEPTIONS | ||
| NO_CUSTOMER_EXISTING = 1 | ||
| R3KEY_NOT_FOUND = 2 | ||
| DOUBLE_ENTRY = 3 | ||
| . " CHECK_OBJECT_REFERENCES | ||
ABAP code using 7.40 inline data declarations to call FM CHECK_OBJECT_REFERENCES
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 KUNNR FROM KNA1 INTO @DATA(ld_e_kunnr). | ||||
| "SELECT single SFA_KEY FROM BAPICRMSFK INTO @DATA(ld_i_sfa_key_cust). | ||||
| "SELECT single PARNR FROM KNVK INTO @DATA(ld_e_parnr). | ||||
| "SELECT single KUNNR FROM KNA1 INTO @DATA(ld_i_kunnr). | ||||
| "SELECT single SFA_KEY FROM BAPICRMSFK INTO @DATA(ld_i_sfa_key_cont). | ||||
| "SELECT single CHANGE_ID FROM BAPICRMKEY INTO @DATA(ld_i_context). | ||||
Search for further information about these or an SAP related objects