SAP ISH_INQUIRY_CASELIST Function Module for









ISH_INQUIRY_CASELIST is a standard ish inquiry caselist 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 inquiry caselist FM, simply by entering the name ISH_INQUIRY_CASELIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: NINQ
Program Name: SAPLNINQ
Main Program: SAPLNINQ
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ISH_INQUIRY_CASELIST 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_INQUIRY_CASELIST'"
EXPORTING
HOSP = "Institution
* PATNO = "Patient number
* CASENO = "Case number, if already known
* MOVEMENT_INFO = ' ' "Movements should be included in selection
* READ_DB = ' ' "Flag that DB read each time
* APPEND_MODE = ' ' "ON: append found records to transfer tables

TABLES
E_NFAL = "Table with case specifications
* E_VNBEW = "Table with movements
* E_NORG = "Table with OUs
* E_NBAU = "Table with building units

EXCEPTIONS
NO_RECORD_FOUND = 1 NO_AUTHORITY = 2 PARAMETER_ERROR = 3 INVALID_INST = 4
.



IMPORTING Parameters details for ISH_INQUIRY_CASELIST

HOSP - Institution

Data type: NFAL-EINRI
Optional: No
Call by Reference: No ( called with pass by value option)

PATNO - Patient number

Data type: NPAT-PATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

CASENO - Case number, if already known

Data type: NFAL-FALNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

MOVEMENT_INFO - Movements should be included in selection

Data type: RNCOM-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

READ_DB - Flag that DB read each time

Data type: RNCOM-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

APPEND_MODE - ON: append found records to transfer tables

Data type: RNCOM-XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISH_INQUIRY_CASELIST

E_NFAL - Table with case specifications

Data type: NFAL
Optional: No
Call by Reference: No ( called with pass by value option)

E_VNBEW - Table with movements

Data type: VNBEW
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_NORG - Table with OUs

Data type: NORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_NBAU - Table with building units

Data type: NBAU
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_RECORD_FOUND - No records found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY - Missing authorization

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PARAMETER_ERROR - Missing parameters

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_INST - Invalid institution

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISH_INQUIRY_CASELIST 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_hosp  TYPE NFAL-EINRI, "   
lt_e_nfal  TYPE STANDARD TABLE OF NFAL, "   
lv_no_record_found  TYPE NFAL, "   
lv_patno  TYPE NPAT-PATNR, "   
lt_e_vnbew  TYPE STANDARD TABLE OF VNBEW, "   
lv_no_authority  TYPE VNBEW, "   
lv_caseno  TYPE NFAL-FALNR, "   
lt_e_norg  TYPE STANDARD TABLE OF NORG, "   
lv_parameter_error  TYPE NORG, "   
lt_e_nbau  TYPE STANDARD TABLE OF NBAU, "   
lv_invalid_inst  TYPE NBAU, "   
lv_movement_info  TYPE RNCOM-XFELD, "   SPACE
lv_read_db  TYPE RNCOM-XFELD, "   SPACE
lv_append_mode  TYPE RNCOM-XFELD. "   SPACE

  CALL FUNCTION 'ISH_INQUIRY_CASELIST'  "
    EXPORTING
         HOSP = lv_hosp
         PATNO = lv_patno
         CASENO = lv_caseno
         MOVEMENT_INFO = lv_movement_info
         READ_DB = lv_read_db
         APPEND_MODE = lv_append_mode
    TABLES
         E_NFAL = lt_e_nfal
         E_VNBEW = lt_e_vnbew
         E_NORG = lt_e_norg
         E_NBAU = lt_e_nbau
    EXCEPTIONS
        NO_RECORD_FOUND = 1
        NO_AUTHORITY = 2
        PARAMETER_ERROR = 3
        INVALID_INST = 4
. " ISH_INQUIRY_CASELIST




ABAP code using 7.40 inline data declarations to call FM ISH_INQUIRY_CASELIST

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 NFAL INTO @DATA(ld_hosp).
 
 
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_patno).
 
 
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_caseno).
 
 
 
 
 
"SELECT single XFELD FROM RNCOM INTO @DATA(ld_movement_info).
DATA(ld_movement_info) = ' '.
 
"SELECT single XFELD FROM RNCOM INTO @DATA(ld_read_db).
DATA(ld_read_db) = ' '.
 
"SELECT single XFELD FROM RNCOM INTO @DATA(ld_append_mode).
DATA(ld_append_mode) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!