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

Function ISH_N2_ARCHIVE_DOC_READ 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_N2_ARCHIVE_DOC_READ'".
EXPORTING
* I_EINRI = "IS-H: Institution
I_PATNR = "IS-H: Patient Number
* I_FALNR = "IS-H: Case Number
* I_SHOW_CASE_LIST = ' ' "
* I_DB_MODE = 'INS' "
TABLES
* T_NDOC = "IS-H: Assignment of IS-H Objects to Documents in DMS
* T_DRAW = "Document Info Record
* T_DRAT = "Texts for Document Info Records
EXCEPTIONS
NO_DOCUMENT = 1 NO_CASE = 2
IMPORTING Parameters details for ISH_N2_ARCHIVE_DOC_READ
I_EINRI - IS-H: Institution
Data type: NDOC-EINRIOptional: Yes
Call by Reference: Yes
I_PATNR - IS-H: Patient Number
Data type: NDOC-PATNROptional: No
Call by Reference: Yes
I_FALNR - IS-H: Case Number
Data type: NDOC-FALNROptional: Yes
Call by Reference: Yes
I_SHOW_CASE_LIST -
Data type: ISH_ON_OFFDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_DB_MODE -
Data type:Default: 'INS'
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for ISH_N2_ARCHIVE_DOC_READ
T_NDOC - IS-H: Assignment of IS-H Objects to Documents in DMS
Data type: NDOCAOptional: Yes
Call by Reference: Yes
T_DRAW - Document Info Record
Data type: N2DRAWAOptional: Yes
Call by Reference: Yes
T_DRAT - Texts for Document Info Records
Data type: N2DRATAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_DOCUMENT - No documents found
Data type:Optional: No
Call by Reference: Yes
NO_CASE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISH_N2_ARCHIVE_DOC_READ 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_ndoc | TYPE STANDARD TABLE OF NDOCA, " | |||
| lv_i_einri | TYPE NDOC-EINRI, " | |||
| lv_no_document | TYPE NDOC, " | |||
| lt_t_draw | TYPE STANDARD TABLE OF N2DRAWA, " | |||
| lv_i_patnr | TYPE NDOC-PATNR, " | |||
| lv_no_case | TYPE NDOC, " | |||
| lt_t_drat | TYPE STANDARD TABLE OF N2DRATA, " | |||
| lv_i_falnr | TYPE NDOC-FALNR, " | |||
| lv_i_show_case_list | TYPE ISH_ON_OFF, " SPACE | |||
| lv_i_db_mode | TYPE ISH_ON_OFF. " 'INS' |
|   CALL FUNCTION 'ISH_N2_ARCHIVE_DOC_READ' " |
| EXPORTING | ||
| I_EINRI | = lv_i_einri | |
| I_PATNR | = lv_i_patnr | |
| I_FALNR | = lv_i_falnr | |
| I_SHOW_CASE_LIST | = lv_i_show_case_list | |
| I_DB_MODE | = lv_i_db_mode | |
| TABLES | ||
| T_NDOC | = lt_t_ndoc | |
| T_DRAW | = lt_t_draw | |
| T_DRAT | = lt_t_drat | |
| EXCEPTIONS | ||
| NO_DOCUMENT = 1 | ||
| NO_CASE = 2 | ||
| . " ISH_N2_ARCHIVE_DOC_READ | ||
ABAP code using 7.40 inline data declarations to call FM ISH_N2_ARCHIVE_DOC_READ
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 EINRI FROM NDOC INTO @DATA(ld_i_einri). | ||||
| "SELECT single PATNR FROM NDOC INTO @DATA(ld_i_patnr). | ||||
| "SELECT single FALNR FROM NDOC INTO @DATA(ld_i_falnr). | ||||
| DATA(ld_i_show_case_list) | = ' '. | |||
| DATA(ld_i_db_mode) | = 'INS'. | |||
Search for further information about these or an SAP related objects