SAP IDOC_OUTPUT_INOTIF Function Module for Create INOTIF01 outbound IDOC (from notification data)
IDOC_OUTPUT_INOTIF is a standard idoc output inotif SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create INOTIF01 outbound IDOC (from notification data) 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 idoc output inotif FM, simply by entering the name IDOC_OUTPUT_INOTIF 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 IDOC_OUTPUT_INOTIF 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 'IDOC_OUTPUT_INOTIF'"Create INOTIF01 outbound IDOC (from notification data).
EXPORTING
TARGET_SYS = "Target logical system
NOTIF_HEADER = "Notification header structure
DEPT_RESP = "Department responsible
DEPT_RESP_DESCR = "Department responsible description
TECHOBJ = "Technical object structure
TABLES
PARTNERS = "Partners table
ITEMS = "Items table
ITEM_TASKS = "Items tasks table
TASKS = "Tasks table
EXCEPTIONS
IDOC_NOT_CREATED = 1
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 IDOC_OUTPUT_INOTIF
TARGET_SYS - Target logical system
Data type: TBD03-SNDSYSTEMOptional: No
Call by Reference: No ( called with pass by value option)
NOTIF_HEADER - Notification header structure
Data type: DIQMELOptional: No
Call by Reference: No ( called with pass by value option)
DEPT_RESP - Department responsible
Data type: E1NTHDR-DEPTRESPOptional: No
Call by Reference: No ( called with pass by value option)
DEPT_RESP_DESCR - Department responsible description
Data type: E1NTHDR-DEPTDESCROptional: No
Call by Reference: No ( called with pass by value option)
TECHOBJ - Technical object structure
Data type: ISMPM_TECHOBJOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IDOC_OUTPUT_INOTIF
PARTNERS - Partners table
Data type: ISMPM_PARTNER_S2Optional: No
Call by Reference: No ( called with pass by value option)
ITEMS - Items table
Data type: INOTIF_ITEMOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_TASKS - Items tasks table
Data type: INOTIF_TASKOptional: No
Call by Reference: No ( called with pass by value option)
TASKS - Tasks table
Data type: INOTIF_TASKOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
IDOC_NOT_CREATED - Error IDoc could not be created
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IDOC_OUTPUT_INOTIF 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_partners | TYPE STANDARD TABLE OF ISMPM_PARTNER_S2, " | |||
| lv_target_sys | TYPE TBD03-SNDSYSTEM, " | |||
| lv_idoc_not_created | TYPE TBD03, " | |||
| lt_items | TYPE STANDARD TABLE OF INOTIF_ITEM, " | |||
| lv_notif_header | TYPE DIQMEL, " | |||
| lv_dept_resp | TYPE E1NTHDR-DEPTRESP, " | |||
| lt_item_tasks | TYPE STANDARD TABLE OF INOTIF_TASK, " | |||
| lt_tasks | TYPE STANDARD TABLE OF INOTIF_TASK, " | |||
| lv_dept_resp_descr | TYPE E1NTHDR-DEPTDESCR, " | |||
| lv_techobj | TYPE ISMPM_TECHOBJ. " |
|   CALL FUNCTION 'IDOC_OUTPUT_INOTIF' "Create INOTIF01 outbound IDOC (from notification data) |
| EXPORTING | ||
| TARGET_SYS | = lv_target_sys | |
| NOTIF_HEADER | = lv_notif_header | |
| DEPT_RESP | = lv_dept_resp | |
| DEPT_RESP_DESCR | = lv_dept_resp_descr | |
| TECHOBJ | = lv_techobj | |
| TABLES | ||
| PARTNERS | = lt_partners | |
| ITEMS | = lt_items | |
| ITEM_TASKS | = lt_item_tasks | |
| TASKS | = lt_tasks | |
| EXCEPTIONS | ||
| IDOC_NOT_CREATED = 1 | ||
| . " IDOC_OUTPUT_INOTIF | ||
ABAP code using 7.40 inline data declarations to call FM IDOC_OUTPUT_INOTIF
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 SNDSYSTEM FROM TBD03 INTO @DATA(ld_target_sys). | ||||
| "SELECT single DEPTRESP FROM E1NTHDR INTO @DATA(ld_dept_resp). | ||||
| "SELECT single DEPTDESCR FROM E1NTHDR INTO @DATA(ld_dept_resp_descr). | ||||
Search for further information about these or an SAP related objects