SAP IDOC_MANUAL_INPUT Function Module for
IDOC_MANUAL_INPUT is a standard idoc manual input SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 manual input FM, simply by entering the name IDOC_MANUAL_INPUT into the relevant SAP transaction such as SE37 or SE38.
Function Group: BD20
Program Name: SAPLBD20
Main Program: SAPLBD20
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IDOC_MANUAL_INPUT 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_MANUAL_INPUT'".
EXPORTING
IDOC_NUMBER = "IDoc number
INPUT_EXCEPTION = "With exception of 'input' method
* NO_DIALOG = C_FALSE "Flag: Input without dialog
* PI_PARTNER_OPTION = "
IMPORTING
DISPLAY_ACTION = "
PE_IDOC_RESTART = "
EXCEPTIONS
IDOC_NOT_IN_DATABASE = 1 NO_INPUT_FUNCTION_FOUND = 2 NO_FUNCTION_PARAMETERS_FOUND = 3 NO_STATUS_RECORD_FOUND = 4 NO_AUTHORIZATION = 5
IMPORTING Parameters details for IDOC_MANUAL_INPUT
IDOC_NUMBER - IDoc number
Data type: EDIDC-DOCNUMOptional: No
Call by Reference: No ( called with pass by value option)
INPUT_EXCEPTION - With exception of 'input' method
Data type: BDWF_PARAM-EXCEPTIONOptional: No
Call by Reference: No ( called with pass by value option)
NO_DIALOG - Flag: Input without dialog
Data type: BDAPPLIDOC-NO_DIALOGDefault: C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_PARTNER_OPTION -
Data type: EDI_PARTNER_INBOUND_OPTIONOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IDOC_MANUAL_INPUT
DISPLAY_ACTION -
Data type: SY-UCOMMOptional: No
Call by Reference: Yes
PE_IDOC_RESTART -
Data type: EDI_RETRY_TOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
IDOC_NOT_IN_DATABASE - IDoc specified not in database
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_INPUT_FUNCTION_FOUND - No inbound function module found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FUNCTION_PARAMETERS_FOUND - No function parameters found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_STATUS_RECORD_FOUND - IDoc has no status records
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_AUTHORIZATION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IDOC_MANUAL_INPUT 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_idoc_number | TYPE EDIDC-DOCNUM, " | |||
| lv_display_action | TYPE SY-UCOMM, " | |||
| lv_idoc_not_in_database | TYPE SY, " | |||
| lv_input_exception | TYPE BDWF_PARAM-EXCEPTION, " | |||
| lv_pe_idoc_restart | TYPE EDI_RETRY_T, " | |||
| lv_no_input_function_found | TYPE EDI_RETRY_T, " | |||
| lv_no_dialog | TYPE BDAPPLIDOC-NO_DIALOG, " C_FALSE | |||
| lv_no_function_parameters_found | TYPE BDAPPLIDOC, " | |||
| lv_pi_partner_option | TYPE EDI_PARTNER_INBOUND_OPTION, " | |||
| lv_no_status_record_found | TYPE EDI_PARTNER_INBOUND_OPTION, " | |||
| lv_no_authorization | TYPE EDI_PARTNER_INBOUND_OPTION. " |
|   CALL FUNCTION 'IDOC_MANUAL_INPUT' " |
| EXPORTING | ||
| IDOC_NUMBER | = lv_idoc_number | |
| INPUT_EXCEPTION | = lv_input_exception | |
| NO_DIALOG | = lv_no_dialog | |
| PI_PARTNER_OPTION | = lv_pi_partner_option | |
| IMPORTING | ||
| DISPLAY_ACTION | = lv_display_action | |
| PE_IDOC_RESTART | = lv_pe_idoc_restart | |
| EXCEPTIONS | ||
| IDOC_NOT_IN_DATABASE = 1 | ||
| NO_INPUT_FUNCTION_FOUND = 2 | ||
| NO_FUNCTION_PARAMETERS_FOUND = 3 | ||
| NO_STATUS_RECORD_FOUND = 4 | ||
| NO_AUTHORIZATION = 5 | ||
| . " IDOC_MANUAL_INPUT | ||
ABAP code using 7.40 inline data declarations to call FM IDOC_MANUAL_INPUT
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 DOCNUM FROM EDIDC INTO @DATA(ld_idoc_number). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_display_action). | ||||
| "SELECT single EXCEPTION FROM BDWF_PARAM INTO @DATA(ld_input_exception). | ||||
| "SELECT single NO_DIALOG FROM BDAPPLIDOC INTO @DATA(ld_no_dialog). | ||||
| DATA(ld_no_dialog) | = C_FALSE. | |||
Search for further information about these or an SAP related objects