SAP CRM_ISUT_READ_CONTRACT Function Module for IS-T: Lesen der Kundenverträge über Serviceobjekt
CRM_ISUT_READ_CONTRACT is a standard crm isut read contract SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-T: Lesen der Kundenverträge über Serviceobjekt 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 crm isut read contract FM, simply by entering the name CRM_ISUT_READ_CONTRACT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRM_IST_ORDER_SEARCH
Program Name: SAPLCRM_IST_ORDER_SEARCH
Main Program: SAPLCRM_IST_ORDER_SEARCH
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CRM_ISUT_READ_CONTRACT 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 'CRM_ISUT_READ_CONTRACT'"IS-T: Lesen der Kundenverträge über Serviceobjekt.
EXPORTING
* IV_BUPA_NUMBER = "Partner Number
* IV_PORTAL_QUERRY = "General Flag
* IV_TRANS_TYPE = "Area Not Defined More Closely, Possibly Used for Patchlevels
* IV_GET_ALL = "General Flag
* IV_MAXHITS = "Grenzwert für Suche
* IV_CHECK_AUTHORITY = 'I' "Berechtigungsprüfung CRM-Order durchführen (Performance!)
* IV_ACTIVE_ONLY = "General Flag
* IV_STATUS = "Individual Object Status
* IV_BUPA_GUID = "GUID of a CRM Order Object
* IV_CA_NUMBER = "Number of the Contract Account
* IV_PRODUCT_NUMBER = "Product ID
* IV_CONTRACT_NUMBER = "Business Transaction Number
* IV_DIVISION_NUMBER = "Division
* IV_ISU_CONTRACT_NR = "Business Transaction Number
* IV_DATE_AB = "Valid-From Date
* IV_DATE_BIS = "Valid-To Date
TABLES
ET_ISU_NAV_COMPLETE = "Structure for IS-U Navigator Search (Display)
EXCEPTIONS
CONTRACT_NOT_FOUND = 1 NO_AUTHORITY = 2
IMPORTING Parameters details for CRM_ISUT_READ_CONTRACT
IV_BUPA_NUMBER - Partner Number
Data type: BU_PARTNEROptional: Yes
Call by Reference: Yes
IV_PORTAL_QUERRY - General Flag
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_TRANS_TYPE - Area Not Defined More Closely, Possibly Used for Patchlevels
Data type: CHAR4Optional: Yes
Call by Reference: Yes
IV_GET_ALL - General Flag
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_MAXHITS - Grenzwert für Suche
Data type: INT4Optional: Yes
Call by Reference: Yes
IV_CHECK_AUTHORITY - Berechtigungsprüfung CRM-Order durchführen (Performance!)
Data type: ECRM_ISU_AUT_CHECKDefault: 'I'
Optional: Yes
Call by Reference: Yes
IV_ACTIVE_ONLY - General Flag
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_STATUS - Individual Object Status
Data type: CRM_J_STATUSOptional: Yes
Call by Reference: Yes
IV_BUPA_GUID - GUID of a CRM Order Object
Data type: CRMT_OBJECT_GUIDOptional: Yes
Call by Reference: Yes
IV_CA_NUMBER - Number of the Contract Account
Data type: CRMT_BUAG_IDOptional: Yes
Call by Reference: Yes
IV_PRODUCT_NUMBER - Product ID
Data type: COMT_PRODUCT_IDOptional: Yes
Call by Reference: Yes
IV_CONTRACT_NUMBER - Business Transaction Number
Data type: CRMT_OBJECT_IDOptional: Yes
Call by Reference: Yes
IV_DIVISION_NUMBER - Division
Data type: EUI_SPARTE_UIOptional: Yes
Call by Reference: Yes
IV_ISU_CONTRACT_NR - Business Transaction Number
Data type: CRMT_OBJECT_IDOptional: Yes
Call by Reference: Yes
IV_DATE_AB - Valid-From Date
Data type: DATABOptional: Yes
Call by Reference: Yes
IV_DATE_BIS - Valid-To Date
Data type: DATBIOptional: Yes
Call by Reference: Yes
TABLES Parameters details for CRM_ISUT_READ_CONTRACT
ET_ISU_NAV_COMPLETE - Structure for IS-U Navigator Search (Display)
Data type: ECRM_ISU_NAV_COMPLETEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CONTRACT_NOT_FOUND - The contract that you searched for could'nt be found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORITY - Keine Berechtigung für die selektierten Belege
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CRM_ISUT_READ_CONTRACT 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_iv_bupa_number | TYPE BU_PARTNER, " | |||
lv_contract_not_found | TYPE BU_PARTNER, " | |||
lt_et_isu_nav_complete | TYPE STANDARD TABLE OF ECRM_ISU_NAV_COMPLETE, " | |||
lv_iv_portal_querry | TYPE FLAG, " | |||
lv_iv_trans_type | TYPE CHAR4, " | |||
lv_iv_get_all | TYPE FLAG, " | |||
lv_iv_maxhits | TYPE INT4, " | |||
lv_iv_check_authority | TYPE ECRM_ISU_AUT_CHECK, " 'I' | |||
lv_iv_active_only | TYPE FLAG, " | |||
lv_iv_status | TYPE CRM_J_STATUS, " | |||
lv_iv_bupa_guid | TYPE CRMT_OBJECT_GUID, " | |||
lv_no_authority | TYPE CRMT_OBJECT_GUID, " | |||
lv_iv_ca_number | TYPE CRMT_BUAG_ID, " | |||
lv_iv_product_number | TYPE COMT_PRODUCT_ID, " | |||
lv_iv_contract_number | TYPE CRMT_OBJECT_ID, " | |||
lv_iv_division_number | TYPE EUI_SPARTE_UI, " | |||
lv_iv_isu_contract_nr | TYPE CRMT_OBJECT_ID, " | |||
lv_iv_date_ab | TYPE DATAB, " | |||
lv_iv_date_bis | TYPE DATBI. " |
  CALL FUNCTION 'CRM_ISUT_READ_CONTRACT' "IS-T: Lesen der Kundenverträge über Serviceobjekt |
EXPORTING | ||
IV_BUPA_NUMBER | = lv_iv_bupa_number | |
IV_PORTAL_QUERRY | = lv_iv_portal_querry | |
IV_TRANS_TYPE | = lv_iv_trans_type | |
IV_GET_ALL | = lv_iv_get_all | |
IV_MAXHITS | = lv_iv_maxhits | |
IV_CHECK_AUTHORITY | = lv_iv_check_authority | |
IV_ACTIVE_ONLY | = lv_iv_active_only | |
IV_STATUS | = lv_iv_status | |
IV_BUPA_GUID | = lv_iv_bupa_guid | |
IV_CA_NUMBER | = lv_iv_ca_number | |
IV_PRODUCT_NUMBER | = lv_iv_product_number | |
IV_CONTRACT_NUMBER | = lv_iv_contract_number | |
IV_DIVISION_NUMBER | = lv_iv_division_number | |
IV_ISU_CONTRACT_NR | = lv_iv_isu_contract_nr | |
IV_DATE_AB | = lv_iv_date_ab | |
IV_DATE_BIS | = lv_iv_date_bis | |
TABLES | ||
ET_ISU_NAV_COMPLETE | = lt_et_isu_nav_complete | |
EXCEPTIONS | ||
CONTRACT_NOT_FOUND = 1 | ||
NO_AUTHORITY = 2 | ||
. " CRM_ISUT_READ_CONTRACT |
ABAP code using 7.40 inline data declarations to call FM CRM_ISUT_READ_CONTRACT
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_iv_check_authority) | = 'I'. | |||
Search for further information about these or an SAP related objects