SAP I_SMPM_DEPTRESP_GET Function Module for Get department responsible data for a notification
I_SMPM_DEPTRESP_GET is a standard i smpm deptresp get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get department responsible data for a notification 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 i smpm deptresp get FM, simply by entering the name I_SMPM_DEPTRESP_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: ISMPM_IDOCS
Program Name: SAPLISMPM_IDOCS
Main Program: SAPLISMPM_IDOCS
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function I_SMPM_DEPTRESP_GET 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 'I_SMPM_DEPTRESP_GET'"Get department responsible data for a notification.
EXPORTING
OBJNR = "Notification object number
IMPORTING
DEPT_RESP = "Department responsible
DEPT_DESCR = "Department description
SELECTED = "Department OK for select option
TABLES
* DEPTRESP_RANGE = "Select-option for Department responsible
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_SAPLISMPM_IDOCS_001 Create additional IDoc data segments in IORDER01 or INOTIF01 IDoc
IMPORTING Parameters details for I_SMPM_DEPTRESP_GET
OBJNR - Notification object number
Data type: QMEL-OBJNROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for I_SMPM_DEPTRESP_GET
DEPT_RESP - Department responsible
Data type: E1NTHDR-DEPTRESPOptional: No
Call by Reference: No ( called with pass by value option)
DEPT_DESCR - Department description
Data type: E1NTHDR-DEPTDESCROptional: No
Call by Reference: No ( called with pass by value option)
SELECTED - Department OK for select option
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for I_SMPM_DEPTRESP_GET
DEPTRESP_RANGE - Select-option for Department responsible
Data type: IDEPT_RESP_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for I_SMPM_DEPTRESP_GET 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_objnr | TYPE QMEL-OBJNR, " | |||
| lv_dept_resp | TYPE E1NTHDR-DEPTRESP, " | |||
| lt_deptresp_range | TYPE STANDARD TABLE OF IDEPT_RESP_RANGE, " | |||
| lv_dept_descr | TYPE E1NTHDR-DEPTDESCR, " | |||
| lv_selected | TYPE E1NTHDR. " |
|   CALL FUNCTION 'I_SMPM_DEPTRESP_GET' "Get department responsible data for a notification |
| EXPORTING | ||
| OBJNR | = lv_objnr | |
| IMPORTING | ||
| DEPT_RESP | = lv_dept_resp | |
| DEPT_DESCR | = lv_dept_descr | |
| SELECTED | = lv_selected | |
| TABLES | ||
| DEPTRESP_RANGE | = lt_deptresp_range | |
| . " I_SMPM_DEPTRESP_GET | ||
ABAP code using 7.40 inline data declarations to call FM I_SMPM_DEPTRESP_GET
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 OBJNR FROM QMEL INTO @DATA(ld_objnr). | ||||
| "SELECT single DEPTRESP FROM E1NTHDR INTO @DATA(ld_dept_resp). | ||||
| "SELECT single DEPTDESCR FROM E1NTHDR INTO @DATA(ld_dept_descr). | ||||
Search for further information about these or an SAP related objects