SAP ISH_DISTRIBUTE_DOC_CREATE_API Function Module for
ISH_DISTRIBUTE_DOC_CREATE_API is a standard ish distribute doc create api 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 ish distribute doc create api FM, simply by entering the name ISH_DISTRIBUTE_DOC_CREATE_API into the relevant SAP transaction such as SE37 or SE38.
Function Group: NFI2
Program Name: SAPLNFI2
Main Program: SAPLNFI2
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_DISTRIBUTE_DOC_CREATE_API 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 'ISH_DISTRIBUTE_DOC_CREATE_API'".
EXPORTING
I_EINRI = "
* I_TN01 = "
* I_TESTRUN = ' ' "
* I_COMMIT = ' ' "
* I_MESSAGES_COLLECT = "
* EVENT = 'BEL010' "
* I_ACCHD = "
* I_COMMIT_WORK_WAIT = ' ' "
IMPORTING
E_BELEG = "
E_GJAHR = "
E_MAX_MSGTY = "
TABLES
T_ACCIT = "
* T_RETURN = "
T_ACCCR = "
* T_ACCFI = "
* T_ACCIT_WT = "
* T_ACCDA = "
* T_ACCTX = "
* T_ACCTAX = "
* T_ACCIT_PA = "
* T_ACCCR_PA = "
EXCEPTIONS
WRONG_IMPORT_PARAMETER_ACCHD = 1 WRONG_IMPORT_PARAMETER_ACCIT = 2 WRONG_IMPORT_PARAMETER_ACCCR = 3 NO_LOCAL_CURRENCY_FOUND = 4 NO_CONFIGURATION_FOUND = 5
IMPORTING Parameters details for ISH_DISTRIBUTE_DOC_CREATE_API
I_EINRI -
Data type: TN01-EINRIOptional: No
Call by Reference: Yes
I_TN01 -
Data type: TN01Optional: Yes
Call by Reference: Yes
I_TESTRUN -
Data type: ISH_ON_OFFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_COMMIT -
Data type: ISH_ON_OFFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MESSAGES_COLLECT -
Data type: ISH_ON_OFFOptional: Yes
Call by Reference: No ( called with pass by value option)
EVENT -
Data type: TN02E-EVENTDefault: 'BEL010'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ACCHD -
Data type: ACCHDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_COMMIT_WORK_WAIT -
Data type: ISH_ON_OFFDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_DISTRIBUTE_DOC_CREATE_API
E_BELEG -
Data type: BKPF-BELNROptional: No
Call by Reference: No ( called with pass by value option)
E_GJAHR -
Data type: BKPF-GJAHROptional: No
Call by Reference: No ( called with pass by value option)
E_MAX_MSGTY -
Data type: MESG-MSGTYOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_DISTRIBUTE_DOC_CREATE_API
T_ACCIT -
Data type: ACCITOptional: No
Call by Reference: No ( called with pass by value option)
T_RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
T_ACCCR -
Data type: ACCCROptional: No
Call by Reference: No ( called with pass by value option)
T_ACCFI -
Data type: ACCFIOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ACCIT_WT -
Data type: ACCIT_WTOptional: Yes
Call by Reference: Yes
T_ACCDA -
Data type: ACCDAOptional: Yes
Call by Reference: Yes
T_ACCTX -
Data type: ACCBSETOptional: Yes
Call by Reference: Yes
T_ACCTAX -
Data type: ACCTAXOptional: Yes
Call by Reference: Yes
T_ACCIT_PA -
Data type: ACCIT_PAOptional: Yes
Call by Reference: Yes
T_ACCCR_PA -
Data type: ACCCR_PAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
WRONG_IMPORT_PARAMETER_ACCHD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_IMPORT_PARAMETER_ACCIT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_IMPORT_PARAMETER_ACCCR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_LOCAL_CURRENCY_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_CONFIGURATION_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_DISTRIBUTE_DOC_CREATE_API 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_e_beleg | TYPE BKPF-BELNR, " | |||
| lv_i_einri | TYPE TN01-EINRI, " | |||
| lt_t_accit | TYPE STANDARD TABLE OF ACCIT, " | |||
| lv_wrong_import_parameter_acchd | TYPE ACCIT, " | |||
| lt_t_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_tn01 | TYPE TN01, " | |||
| lv_e_gjahr | TYPE BKPF-GJAHR, " | |||
| lt_t_acccr | TYPE STANDARD TABLE OF ACCCR, " | |||
| lv_wrong_import_parameter_accit | TYPE ACCCR, " | |||
| lt_t_accfi | TYPE STANDARD TABLE OF ACCFI, " | |||
| lv_i_testrun | TYPE ISH_ON_OFF, " ' ' | |||
| lv_e_max_msgty | TYPE MESG-MSGTY, " | |||
| lv_wrong_import_parameter_acccr | TYPE MESG, " | |||
| lv_i_commit | TYPE ISH_ON_OFF, " ' ' | |||
| lt_t_accit_wt | TYPE STANDARD TABLE OF ACCIT_WT, " | |||
| lv_no_local_currency_found | TYPE ACCIT_WT, " | |||
| lt_t_accda | TYPE STANDARD TABLE OF ACCDA, " | |||
| lv_i_messages_collect | TYPE ISH_ON_OFF, " | |||
| lv_no_configuration_found | TYPE ISH_ON_OFF, " | |||
| lv_event | TYPE TN02E-EVENT, " 'BEL010' | |||
| lt_t_acctx | TYPE STANDARD TABLE OF ACCBSET, " | |||
| lv_i_acchd | TYPE ACCHD, " | |||
| lt_t_acctax | TYPE STANDARD TABLE OF ACCTAX, " | |||
| lt_t_accit_pa | TYPE STANDARD TABLE OF ACCIT_PA, " | |||
| lv_i_commit_work_wait | TYPE ISH_ON_OFF, " SPACE | |||
| lt_t_acccr_pa | TYPE STANDARD TABLE OF ACCCR_PA. " |
|   CALL FUNCTION 'ISH_DISTRIBUTE_DOC_CREATE_API' " |
| EXPORTING | ||
| I_EINRI | = lv_i_einri | |
| I_TN01 | = lv_i_tn01 | |
| I_TESTRUN | = lv_i_testrun | |
| I_COMMIT | = lv_i_commit | |
| I_MESSAGES_COLLECT | = lv_i_messages_collect | |
| EVENT | = lv_event | |
| I_ACCHD | = lv_i_acchd | |
| I_COMMIT_WORK_WAIT | = lv_i_commit_work_wait | |
| IMPORTING | ||
| E_BELEG | = lv_e_beleg | |
| E_GJAHR | = lv_e_gjahr | |
| E_MAX_MSGTY | = lv_e_max_msgty | |
| TABLES | ||
| T_ACCIT | = lt_t_accit | |
| T_RETURN | = lt_t_return | |
| T_ACCCR | = lt_t_acccr | |
| T_ACCFI | = lt_t_accfi | |
| T_ACCIT_WT | = lt_t_accit_wt | |
| T_ACCDA | = lt_t_accda | |
| T_ACCTX | = lt_t_acctx | |
| T_ACCTAX | = lt_t_acctax | |
| T_ACCIT_PA | = lt_t_accit_pa | |
| T_ACCCR_PA | = lt_t_acccr_pa | |
| EXCEPTIONS | ||
| WRONG_IMPORT_PARAMETER_ACCHD = 1 | ||
| WRONG_IMPORT_PARAMETER_ACCIT = 2 | ||
| WRONG_IMPORT_PARAMETER_ACCCR = 3 | ||
| NO_LOCAL_CURRENCY_FOUND = 4 | ||
| NO_CONFIGURATION_FOUND = 5 | ||
| . " ISH_DISTRIBUTE_DOC_CREATE_API | ||
ABAP code using 7.40 inline data declarations to call FM ISH_DISTRIBUTE_DOC_CREATE_API
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 BELNR FROM BKPF INTO @DATA(ld_e_beleg). | ||||
| "SELECT single EINRI FROM TN01 INTO @DATA(ld_i_einri). | ||||
| "SELECT single GJAHR FROM BKPF INTO @DATA(ld_e_gjahr). | ||||
| DATA(ld_i_testrun) | = ' '. | |||
| "SELECT single MSGTY FROM MESG INTO @DATA(ld_e_max_msgty). | ||||
| DATA(ld_i_commit) | = ' '. | |||
| "SELECT single EVENT FROM TN02E INTO @DATA(ld_event). | ||||
| DATA(ld_event) | = 'BEL010'. | |||
| DATA(ld_i_commit_work_wait) | = ' '. | |||
Search for further information about these or an SAP related objects