SAP /SCMTMS/TM_CRM_READ_DATA Function Module for Read TM data for CRM
/SCMTMS/TM_CRM_READ_DATA is a standard /scmtms/tm crm read data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read TM data for CRM 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 /scmtms/tm crm read data FM, simply by entering the name /SCMTMS/TM_CRM_READ_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SCMTMS/TM_CRM_ADAPTER
Program Name: /SCMTMS/SAPLTM_CRM_ADAPTER
Main Program: /SCMTMS/SAPLTM_CRM_ADAPTER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SCMTMS/TM_CRM_READ_DATA 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 '/SCMTMS/TM_CRM_READ_DATA'"Read TM data for CRM.
EXPORTING
* IV_GET_DESCRIPTION = ABAP_FALSE "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_USAGE = "Char 20
* IV_ERP_LOGSYS = "Logical system
* IV_MAX_HITS = "Maximum Hits
IMPORTING
ET_FWAG_RFQ_TYPE = "Forwarding Agreement TFQ Type for CRM
ET_FWAG_ITEM_TYPE = "Forwarding Agreement Item Type for CRM
ET_FWAG_RFQ = "Forwarding Agreement Request for Quotation
ET_FWAG = "Forwarding Agreement
ET_FWO = "Forwarding Order
ET_FWQ = "Forwarding Quotation
ET_FWSD = "Forwarding Settlement Document
TABLES
T_SELPARAM = "Dynamic Selection Parameters
IMPORTING Parameters details for /SCMTMS/TM_CRM_READ_DATA
IV_GET_DESCRIPTION - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DDefault: ABAP_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_USAGE - Char 20
Data type: CHAR20Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_ERP_LOGSYS - Logical system
Data type: LOGSYSOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_MAX_HITS - Maximum Hits
Data type: INT4Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for /SCMTMS/TM_CRM_READ_DATA
ET_FWAG_RFQ_TYPE - Forwarding Agreement TFQ Type for CRM
Data type: /SCMTMS/T_TM_CRM_FWARFQ_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
ET_FWAG_ITEM_TYPE - Forwarding Agreement Item Type for CRM
Data type: /SCMTMS/T_TM_CRM_FWA_IT_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
ET_FWAG_RFQ - Forwarding Agreement Request for Quotation
Data type: /SCMTMS/T_TM_CRM_FWARFQOptional: No
Call by Reference: No ( called with pass by value option)
ET_FWAG - Forwarding Agreement
Data type: /SCMTMS/T_TM_CRM_FWAGOptional: No
Call by Reference: No ( called with pass by value option)
ET_FWO - Forwarding Order
Data type: /SCMTMS/T_TM_CRM_FWOOptional: No
Call by Reference: No ( called with pass by value option)
ET_FWQ - Forwarding Quotation
Data type: /SCMTMS/T_TM_CRM_FWQOptional: No
Call by Reference: No ( called with pass by value option)
ET_FWSD - Forwarding Settlement Document
Data type: /SCMTMS/T_TM_CRM_FWSDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /SCMTMS/TM_CRM_READ_DATA
T_SELPARAM - Dynamic Selection Parameters
Data type: CRMSELSTROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SCMTMS/TM_CRM_READ_DATA 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: | ||||
| lt_t_selparam | TYPE STANDARD TABLE OF CRMSELSTR, " | |||
| lv_et_fwag_rfq_type | TYPE /SCMTMS/T_TM_CRM_FWARFQ_TYPE, " | |||
| lv_iv_get_description | TYPE BOOLE_D, " ABAP_FALSE | |||
| lv_iv_usage | TYPE CHAR20, " | |||
| lv_et_fwag_item_type | TYPE /SCMTMS/T_TM_CRM_FWA_IT_TYPE, " | |||
| lv_et_fwag_rfq | TYPE /SCMTMS/T_TM_CRM_FWARFQ, " | |||
| lv_iv_erp_logsys | TYPE LOGSYS, " | |||
| lv_et_fwag | TYPE /SCMTMS/T_TM_CRM_FWAG, " | |||
| lv_iv_max_hits | TYPE INT4, " | |||
| lv_et_fwo | TYPE /SCMTMS/T_TM_CRM_FWO, " | |||
| lv_et_fwq | TYPE /SCMTMS/T_TM_CRM_FWQ, " | |||
| lv_et_fwsd | TYPE /SCMTMS/T_TM_CRM_FWSD. " |
|   CALL FUNCTION '/SCMTMS/TM_CRM_READ_DATA' "Read TM data for CRM |
| EXPORTING | ||
| IV_GET_DESCRIPTION | = lv_iv_get_description | |
| IV_USAGE | = lv_iv_usage | |
| IV_ERP_LOGSYS | = lv_iv_erp_logsys | |
| IV_MAX_HITS | = lv_iv_max_hits | |
| IMPORTING | ||
| ET_FWAG_RFQ_TYPE | = lv_et_fwag_rfq_type | |
| ET_FWAG_ITEM_TYPE | = lv_et_fwag_item_type | |
| ET_FWAG_RFQ | = lv_et_fwag_rfq | |
| ET_FWAG | = lv_et_fwag | |
| ET_FWO | = lv_et_fwo | |
| ET_FWQ | = lv_et_fwq | |
| ET_FWSD | = lv_et_fwsd | |
| TABLES | ||
| T_SELPARAM | = lt_t_selparam | |
| . " /SCMTMS/TM_CRM_READ_DATA | ||
ABAP code using 7.40 inline data declarations to call FM /SCMTMS/TM_CRM_READ_DATA
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_get_description) | = ABAP_FALSE. | |||
Search for further information about these or an SAP related objects