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

Function ISH_READ_NLEI 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_READ_NLEI'".
EXPORTING
SS_EINRI = "Current Institution
SS_FALNR = "Current Case Number
* SS_ORGID = ' ' "
* SS_AUTH_CHECK = ' ' "
* SS_DB_READ = ' ' "
* SS_SORT_FIELD1 = 'LEIST' "Sort field 1
* SS_SORT_FIELD2 = 'LNRLS' "Sort field 2
* SS_WITH_STORN = ' ' "
IMPORTING
E_MAX_SEQUE = "
TABLES
SS_NLEI = "Data from Database
EXCEPTIONS
NOT_FOUND = 1
IMPORTING Parameters details for ISH_READ_NLEI
SS_EINRI - Current Institution
Data type: TN01-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
SS_FALNR - Current Case Number
Data type: NFAL-FALNROptional: No
Call by Reference: No ( called with pass by value option)
SS_ORGID -
Data type: NLEI-ORGIDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SS_AUTH_CHECK -
Data type: NPDOK-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SS_DB_READ -
Data type: NPDOK-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
SS_SORT_FIELD1 - Sort field 1
Data type: DNTAB-FIELDNAMEDefault: 'LEIST'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SS_SORT_FIELD2 - Sort field 2
Data type: DNTAB-FIELDNAMEDefault: 'LNRLS'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SS_WITH_STORN -
Data type: NPDOK-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_READ_NLEI
E_MAX_SEQUE -
Data type: NLEI-SEQUEOptional: No
Call by Reference: Yes
TABLES Parameters details for ISH_READ_NLEI
SS_NLEI - Data from Database
Data type: NLEIOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_READ_NLEI 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_ss_nlei | TYPE STANDARD TABLE OF NLEI, " | |||
| lv_ss_einri | TYPE TN01-EINRI, " | |||
| lv_not_found | TYPE TN01, " | |||
| lv_e_max_seque | TYPE NLEI-SEQUE, " | |||
| lv_ss_falnr | TYPE NFAL-FALNR, " | |||
| lv_ss_orgid | TYPE NLEI-ORGID, " ' ' | |||
| lv_ss_auth_check | TYPE NPDOK-XFELD, " ' ' | |||
| lv_ss_db_read | TYPE NPDOK-XFELD, " ' ' | |||
| lv_ss_sort_field1 | TYPE DNTAB-FIELDNAME, " 'LEIST' | |||
| lv_ss_sort_field2 | TYPE DNTAB-FIELDNAME, " 'LNRLS' | |||
| lv_ss_with_storn | TYPE NPDOK-XFELD. " ' ' |
|   CALL FUNCTION 'ISH_READ_NLEI' " |
| EXPORTING | ||
| SS_EINRI | = lv_ss_einri | |
| SS_FALNR | = lv_ss_falnr | |
| SS_ORGID | = lv_ss_orgid | |
| SS_AUTH_CHECK | = lv_ss_auth_check | |
| SS_DB_READ | = lv_ss_db_read | |
| SS_SORT_FIELD1 | = lv_ss_sort_field1 | |
| SS_SORT_FIELD2 | = lv_ss_sort_field2 | |
| SS_WITH_STORN | = lv_ss_with_storn | |
| IMPORTING | ||
| E_MAX_SEQUE | = lv_e_max_seque | |
| TABLES | ||
| SS_NLEI | = lt_ss_nlei | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| . " ISH_READ_NLEI | ||
ABAP code using 7.40 inline data declarations to call FM ISH_READ_NLEI
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 TN01 INTO @DATA(ld_ss_einri). | ||||
| "SELECT single SEQUE FROM NLEI INTO @DATA(ld_e_max_seque). | ||||
| "SELECT single FALNR FROM NFAL INTO @DATA(ld_ss_falnr). | ||||
| "SELECT single ORGID FROM NLEI INTO @DATA(ld_ss_orgid). | ||||
| DATA(ld_ss_orgid) | = ' '. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_auth_check). | ||||
| DATA(ld_ss_auth_check) | = ' '. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_db_read). | ||||
| DATA(ld_ss_db_read) | = ' '. | |||
| "SELECT single FIELDNAME FROM DNTAB INTO @DATA(ld_ss_sort_field1). | ||||
| DATA(ld_ss_sort_field1) | = 'LEIST'. | |||
| "SELECT single FIELDNAME FROM DNTAB INTO @DATA(ld_ss_sort_field2). | ||||
| DATA(ld_ss_sort_field2) | = 'LNRLS'. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_with_storn). | ||||
| DATA(ld_ss_with_storn) | = ' '. | |||
Search for further information about these or an SAP related objects