SAP CRM_IST_ITEM_SELECT Function Module for IS-T: Selektion von Order- und Kontraktpositionen
CRM_IST_ITEM_SELECT is a standard crm ist item select 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: Selektion von Order- und Kontraktpositionen 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 ist item select FM, simply by entering the name CRM_IST_ITEM_SELECT 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_IST_ITEM_SELECT 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_IST_ITEM_SELECT'"IS-T: Selektion von Order- und Kontraktpositionen.
EXPORTING
* IV_ORDER_ITEMS = "Logical Variable
* IT_SOLD_TO = "Table Category for Category BU_PARTNER
* IV_MAX_HITS = "Max. No. of Hits
* IV_MYSELF = "Logical Variable
* IV_MYSHOP = "Logical Variable
* IV_DIRECT_SELECTION = "Logical Variable
* IV_WHERECONDITION = "Selection Condition
* IT_OBJECT_GUID = "List of Contract/Order GUIDs (Unsorted)
* IV_TR_OBJ_ID = "TC: ID of technical resource
* IV_CONTRACT_ITEMS = "Logical Variable
* IV_EXT_REF_ID = "External Telecommunications Contract Number
* IV_OBJECT_ID = "Business Transaction Number
* IV_NUMBER = "External Telecommunications Contract Number
* IV_ACTIVE_ONLY = "Logical Variable
* IV_DATE_FROM = "DATS Field Type
* IV_DATE_TO = "DATS Field Type
* IT_BUAG_ID = "Table Type for CRMT_BUAG_ID
IMPORTING
ET_RESULT = "Table for the Structure gt_search_result
EV_LIMITED_RESULT = "Logical Variable
EV_NUMBER_IS_EXT_REF = "Logical Variable
ET_BAPIRETURN = "Error messages
ET_RESULT_ORDER = "IS-T: Table Type for Order Selection
ET_RESULT_NEW = "Table for the Structure gt_search_result
ET_RESULT_ORDER_NEW = "Table for the Structure gt_search_result
IMPORTING Parameters details for CRM_IST_ITEM_SELECT
IV_ORDER_ITEMS - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IT_SOLD_TO - Table Category for Category BU_PARTNER
Data type: BU_PARTNER_TOptional: Yes
Call by Reference: Yes
IV_MAX_HITS - Max. No. of Hits
Data type: IOptional: Yes
Call by Reference: Yes
IV_MYSELF - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_MYSHOP - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_DIRECT_SELECTION - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_WHERECONDITION - Selection Condition
Data type: STRINGOptional: Yes
Call by Reference: Yes
IT_OBJECT_GUID - List of Contract/Order GUIDs (Unsorted)
Data type: CRMT_REPORT_GUIDLIST_TAOptional: Yes
Call by Reference: Yes
IV_TR_OBJ_ID - TC: ID of technical resource
Data type: CRMT_TC_TECH_RES_IDOptional: Yes
Call by Reference: Yes
IV_CONTRACT_ITEMS - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_EXT_REF_ID - External Telecommunications Contract Number
Data type: CRMT_IST_TELCO_ORDER_IDOptional: Yes
Call by Reference: Yes
IV_OBJECT_ID - Business Transaction Number
Data type: CRMT_OBJECT_ID_DBOptional: Yes
Call by Reference: Yes
IV_NUMBER - External Telecommunications Contract Number
Data type: CRMT_IST_TELCO_ORDER_IDOptional: Yes
Call by Reference: Yes
IV_ACTIVE_ONLY - Logical Variable
Data type: CRMT_BOOLEANOptional: Yes
Call by Reference: Yes
IV_DATE_FROM - DATS Field Type
Data type: DATSOptional: Yes
Call by Reference: Yes
IV_DATE_TO - DATS Field Type
Data type: DATSOptional: Yes
Call by Reference: Yes
IT_BUAG_ID - Table Type for CRMT_BUAG_ID
Data type: CRMT_BUAG_ID_TOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CRM_IST_ITEM_SELECT
ET_RESULT - Table for the Structure gt_search_result
Data type: CRMT_IST_ORDER_ITEM_TABOptional: No
Call by Reference: Yes
EV_LIMITED_RESULT - Logical Variable
Data type: CRMT_BOOLEANOptional: No
Call by Reference: Yes
EV_NUMBER_IS_EXT_REF - Logical Variable
Data type: CRMT_BOOLEANOptional: No
Call by Reference: Yes
ET_BAPIRETURN - Error messages
Data type: BAPIRET2_TABOptional: No
Call by Reference: Yes
ET_RESULT_ORDER - IS-T: Table Type for Order Selection
Data type: CRMT_IST_ORDER_ITEM_TABOptional: No
Call by Reference: Yes
ET_RESULT_NEW - Table for the Structure gt_search_result
Data type: CRM_PROVIDER_ITEM_TOptional: No
Call by Reference: Yes
ET_RESULT_ORDER_NEW - Table for the Structure gt_search_result
Data type: CRM_PROVIDER_ITEM_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for CRM_IST_ITEM_SELECT 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_et_result | TYPE CRMT_IST_ORDER_ITEM_TAB, " | |||
lv_iv_order_items | TYPE CRMT_BOOLEAN, " | |||
lv_it_sold_to | TYPE BU_PARTNER_T, " | |||
lv_iv_max_hits | TYPE I, " | |||
lv_iv_myself | TYPE CRMT_BOOLEAN, " | |||
lv_iv_myshop | TYPE CRMT_BOOLEAN, " | |||
lv_iv_direct_selection | TYPE CRMT_BOOLEAN, " | |||
lv_iv_wherecondition | TYPE STRING, " | |||
lv_it_object_guid | TYPE CRMT_REPORT_GUIDLIST_TA, " | |||
lv_iv_tr_obj_id | TYPE CRMT_TC_TECH_RES_ID, " | |||
lv_ev_limited_result | TYPE CRMT_BOOLEAN, " | |||
lv_iv_contract_items | TYPE CRMT_BOOLEAN, " | |||
lv_iv_ext_ref_id | TYPE CRMT_IST_TELCO_ORDER_ID, " | |||
lv_ev_number_is_ext_ref | TYPE CRMT_BOOLEAN, " | |||
lv_iv_object_id | TYPE CRMT_OBJECT_ID_DB, " | |||
lv_et_bapireturn | TYPE BAPIRET2_TAB, " | |||
lv_iv_number | TYPE CRMT_IST_TELCO_ORDER_ID, " | |||
lv_et_result_order | TYPE CRMT_IST_ORDER_ITEM_TAB, " | |||
lv_et_result_new | TYPE CRM_PROVIDER_ITEM_T, " | |||
lv_iv_active_only | TYPE CRMT_BOOLEAN, " | |||
lv_iv_date_from | TYPE DATS, " | |||
lv_et_result_order_new | TYPE CRM_PROVIDER_ITEM_T, " | |||
lv_iv_date_to | TYPE DATS, " | |||
lv_it_buag_id | TYPE CRMT_BUAG_ID_T. " |
  CALL FUNCTION 'CRM_IST_ITEM_SELECT' "IS-T: Selektion von Order- und Kontraktpositionen |
EXPORTING | ||
IV_ORDER_ITEMS | = lv_iv_order_items | |
IT_SOLD_TO | = lv_it_sold_to | |
IV_MAX_HITS | = lv_iv_max_hits | |
IV_MYSELF | = lv_iv_myself | |
IV_MYSHOP | = lv_iv_myshop | |
IV_DIRECT_SELECTION | = lv_iv_direct_selection | |
IV_WHERECONDITION | = lv_iv_wherecondition | |
IT_OBJECT_GUID | = lv_it_object_guid | |
IV_TR_OBJ_ID | = lv_iv_tr_obj_id | |
IV_CONTRACT_ITEMS | = lv_iv_contract_items | |
IV_EXT_REF_ID | = lv_iv_ext_ref_id | |
IV_OBJECT_ID | = lv_iv_object_id | |
IV_NUMBER | = lv_iv_number | |
IV_ACTIVE_ONLY | = lv_iv_active_only | |
IV_DATE_FROM | = lv_iv_date_from | |
IV_DATE_TO | = lv_iv_date_to | |
IT_BUAG_ID | = lv_it_buag_id | |
IMPORTING | ||
ET_RESULT | = lv_et_result | |
EV_LIMITED_RESULT | = lv_ev_limited_result | |
EV_NUMBER_IS_EXT_REF | = lv_ev_number_is_ext_ref | |
ET_BAPIRETURN | = lv_et_bapireturn | |
ET_RESULT_ORDER | = lv_et_result_order | |
ET_RESULT_NEW | = lv_et_result_new | |
ET_RESULT_ORDER_NEW | = lv_et_result_order_new | |
. " CRM_IST_ITEM_SELECT |
ABAP code using 7.40 inline data declarations to call FM CRM_IST_ITEM_SELECT
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