SAP CONTRACT_CUSTOMER_CHECK Function Module for NOTRANSL: Dialogpruefung, ob Vertrag existent
CONTRACT_CUSTOMER_CHECK is a standard contract customer check 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: Dialogpruefung, ob Vertrag existent 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 contract customer check FM, simply by entering the name CONTRACT_CUSTOMER_CHECK into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVZF
Program Name: SAPLFVZF
Main Program: SAPLFVZF
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CONTRACT_CUSTOMER_CHECK 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 'CONTRACT_CUSTOMER_CHECK'"NOTRANSL: Dialogpruefung, ob Vertrag existent.
EXPORTING
I_COMPANY_CODE = "Company code
I_CONTRACT_IDENT = "Contract ID
I_CONTRACT_TYPE = "Contract category
I_CUSTOMER_IDENT = "Customer ID
* I_FLGHDN = ' ' "
EXCEPTIONS
CONTRACT_CUSTOMER_NOT_MATCHED = 1 NOT_FOUND = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFVZF_001 User Exit for Contract-Specific Checks for FB01
IMPORTING Parameters details for CONTRACT_CUSTOMER_CHECK
I_COMPANY_CODE - Company code
Data type: BSEG-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_CONTRACT_IDENT - Contract ID
Data type: BSEG-VERTNOptional: No
Call by Reference: No ( called with pass by value option)
I_CONTRACT_TYPE - Contract category
Data type: BSEG-VERTTOptional: No
Call by Reference: No ( called with pass by value option)
I_CUSTOMER_IDENT - Customer ID
Data type: BSEG-KUNNROptional: No
Call by Reference: No ( called with pass by value option)
I_FLGHDN -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CONTRACT_CUSTOMER_NOT_MATCHED - Contract and customer number do no
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND - Contract not existent
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CONTRACT_CUSTOMER_CHECK 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_company_code | TYPE BSEG-BUKRS, " | |||
| lv_contract_customer_not_matched | TYPE BSEG, " | |||
| lv_not_found | TYPE BSEG, " | |||
| lv_i_contract_ident | TYPE BSEG-VERTN, " | |||
| lv_i_contract_type | TYPE BSEG-VERTT, " | |||
| lv_i_customer_ident | TYPE BSEG-KUNNR, " | |||
| lv_i_flghdn | TYPE BSEG. " SPACE |
|   CALL FUNCTION 'CONTRACT_CUSTOMER_CHECK' "NOTRANSL: Dialogpruefung, ob Vertrag existent |
| EXPORTING | ||
| I_COMPANY_CODE | = lv_i_company_code | |
| I_CONTRACT_IDENT | = lv_i_contract_ident | |
| I_CONTRACT_TYPE | = lv_i_contract_type | |
| I_CUSTOMER_IDENT | = lv_i_customer_ident | |
| I_FLGHDN | = lv_i_flghdn | |
| EXCEPTIONS | ||
| CONTRACT_CUSTOMER_NOT_MATCHED = 1 | ||
| NOT_FOUND = 2 | ||
| . " CONTRACT_CUSTOMER_CHECK | ||
ABAP code using 7.40 inline data declarations to call FM CONTRACT_CUSTOMER_CHECK
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 BUKRS FROM BSEG INTO @DATA(ld_i_company_code). | ||||
| "SELECT single VERTN FROM BSEG INTO @DATA(ld_i_contract_ident). | ||||
| "SELECT single VERTT FROM BSEG INTO @DATA(ld_i_contract_type). | ||||
| "SELECT single KUNNR FROM BSEG INTO @DATA(ld_i_customer_ident). | ||||
| DATA(ld_i_flghdn) | = ' '. | |||
Search for further information about these or an SAP related objects