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

Function ISH_GET_DATA_FOR_CASES 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_GET_DATA_FOR_CASES'".
EXPORTING
* NEW_READ = 'X' "
* READ_ALL = 'X' "
* TARID = ' ' "
* ABRKZ = ' ' "
* HCOKZ = ' ' "
CHANGING
* EINRI = "
* PERBEGIN = "
* PEREND = "
TABLES
* I_FALNR = "
* I_NVVF = "
* I_NBEW = "
* I_NLEI = "
* I_NDIA = "
* I_NICP = "
* I_NLICZ = "
* R_LEIST = "
EXCEPTIONS
NO_CASES_FOUND = 1 NO_DATA_FOUND = 2 PARAMETERS_NOT_FOUND = 3
IMPORTING Parameters details for ISH_GET_DATA_FOR_CASES
NEW_READ -
Data type: NPDOK-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_ALL -
Data type: NPDOK-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TARID -
Data type: TARIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ABRKZ -
Data type: ABRKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
HCOKZ -
Data type: ISH_HCOKZDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for ISH_GET_DATA_FOR_CASES
EINRI -
Data type: TN01-EINRIOptional: Yes
Call by Reference: No ( called with pass by value option)
PERBEGIN -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
PEREND -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_GET_DATA_FOR_CASES
I_FALNR -
Data type: NEIS_TABLE_FALNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_NVVF -
Data type: NEIS_TABLE_NVVFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NBEW -
Data type: NEIS_TABLE_NBEWOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NLEI -
Data type: NEIS_TABLE_NLEIOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NDIA -
Data type: NEIS_TABLE_NDIAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NICP -
Data type: NEIS_TABLE_NICPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NLICZ -
Data type: NEIS_TABLE_NLICZOptional: Yes
Call by Reference: No ( called with pass by value option)
R_LEIST -
Data type: RNSLEISTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_CASES_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATA_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETERS_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISH_GET_DATA_FOR_CASES 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_einri | TYPE TN01-EINRI, " | |||
| lt_i_falnr | TYPE STANDARD TABLE OF NEIS_TABLE_FALNR, " | |||
| lv_new_read | TYPE NPDOK-XFELD, " 'X' | |||
| lv_no_cases_found | TYPE NPDOK, " | |||
| lt_i_nvvf | TYPE STANDARD TABLE OF NEIS_TABLE_NVVF, " | |||
| lv_perbegin | TYPE SY-DATUM, " | |||
| lv_read_all | TYPE NPDOK-XFELD, " 'X' | |||
| lv_no_data_found | TYPE NPDOK, " | |||
| lv_tarid | TYPE TARID, " SPACE | |||
| lt_i_nbew | TYPE STANDARD TABLE OF NEIS_TABLE_NBEW, " | |||
| lv_perend | TYPE SY-DATUM, " | |||
| lv_parameters_not_found | TYPE SY, " | |||
| lv_abrkz | TYPE ABRKZ, " SPACE | |||
| lt_i_nlei | TYPE STANDARD TABLE OF NEIS_TABLE_NLEI, " | |||
| lv_hcokz | TYPE ISH_HCOKZ, " SPACE | |||
| lt_i_ndia | TYPE STANDARD TABLE OF NEIS_TABLE_NDIA, " | |||
| lt_i_nicp | TYPE STANDARD TABLE OF NEIS_TABLE_NICP, " | |||
| lt_i_nlicz | TYPE STANDARD TABLE OF NEIS_TABLE_NLICZ, " | |||
| lt_r_leist | TYPE STANDARD TABLE OF RNSLEIST. " |
|   CALL FUNCTION 'ISH_GET_DATA_FOR_CASES' " |
| EXPORTING | ||
| NEW_READ | = lv_new_read | |
| READ_ALL | = lv_read_all | |
| TARID | = lv_tarid | |
| ABRKZ | = lv_abrkz | |
| HCOKZ | = lv_hcokz | |
| CHANGING | ||
| EINRI | = lv_einri | |
| PERBEGIN | = lv_perbegin | |
| PEREND | = lv_perend | |
| TABLES | ||
| I_FALNR | = lt_i_falnr | |
| I_NVVF | = lt_i_nvvf | |
| I_NBEW | = lt_i_nbew | |
| I_NLEI | = lt_i_nlei | |
| I_NDIA | = lt_i_ndia | |
| I_NICP | = lt_i_nicp | |
| I_NLICZ | = lt_i_nlicz | |
| R_LEIST | = lt_r_leist | |
| EXCEPTIONS | ||
| NO_CASES_FOUND = 1 | ||
| NO_DATA_FOUND = 2 | ||
| PARAMETERS_NOT_FOUND = 3 | ||
| . " ISH_GET_DATA_FOR_CASES | ||
ABAP code using 7.40 inline data declarations to call FM ISH_GET_DATA_FOR_CASES
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_einri). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_new_read). | ||||
| DATA(ld_new_read) | = 'X'. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_perbegin). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_read_all). | ||||
| DATA(ld_read_all) | = 'X'. | |||
| DATA(ld_tarid) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_perend). | ||||
| DATA(ld_abrkz) | = ' '. | |||
| DATA(ld_hcokz) | = ' '. | |||
Search for further information about these or an SAP related objects