SAP ISH_PATIENT_APPOINTMENT_LIST Function Module for IS-H: List with All Scheduled Appointments of a Patient









ISH_PATIENT_APPOINTMENT_LIST is a standard ish patient appointment list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-H: List with All Scheduled Appointments of a Patient processing and below is the pattern details for this FM, 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 patient appointment list FM, simply by entering the name ISH_PATIENT_APPOINTMENT_LIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: NAMB
Program Name: SAPLNAMB
Main Program: SAPLNAMB
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISH_PATIENT_APPOINTMENT_LIST 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_PATIENT_APPOINTMENT_LIST'"IS-H: List with All Scheduled Appointments of a Patient
EXPORTING
SS_EINRI = "Insitution ID
* SS_SELDT = "Select All Appointments After this Date
* SS_PATNR = "Patient ID
* SS_PAPID = "ID of Provisional Patient
* SS_COL_POPUP = 05 "Location of Upper Left Column of List
* SS_ROW_POPUP = 02 "Location of Upper Left Row of List
* SS_FIRST_TIME = '1' "
* IR_ENV = "Class for Collecting All Objects in Memory

IMPORTING
SE_PATNR = "New Patient ID for a Former Provisional Patient

TABLES
* SI_EXCL_FUNC = "Exclude GUI Functions

EXCEPTIONS
NO_AUTHORITY = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLNAMB_001 IS-H: PAI Exit at Creation/Change of Appointment in Visit Scheduling
EXIT_SAPLNAMB_002 IS-H: PBO Exit At Create/Change Appointment in Visit Scheduling
EXIT_SAPLNAMB_003 IS-H: Create Calendar Entry for Output in Visit Scheduling

IMPORTING Parameters details for ISH_PATIENT_APPOINTMENT_LIST

SS_EINRI - Insitution ID

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

SS_SELDT - Select All Appointments After this Date

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

SS_PATNR - Patient ID

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

SS_PAPID - ID of Provisional Patient

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

SS_COL_POPUP - Location of Upper Left Column of List

Data type: SY-CUCOL
Default: 05
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_ROW_POPUP - Location of Upper Left Row of List

Data type: SY-CUROW
Default: 02
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_FIRST_TIME -

Data type: ISH_TRUE_FALSE
Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)

IR_ENV - Class for Collecting All Objects in Memory

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

EXPORTING Parameters details for ISH_PATIENT_APPOINTMENT_LIST

SE_PATNR - New Patient ID for a Former Provisional Patient

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

TABLES Parameters details for ISH_PATIENT_APPOINTMENT_LIST

SI_EXCL_FUNC - Exclude GUI Functions

Data type: ISH_T_EXCL_FUNC
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_AUTHORITY - No Authorization to Display Appointments

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

Copy and paste ABAP code example for ISH_PATIENT_APPOINTMENT_LIST 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_se_patnr  TYPE PATNR, "   
lv_ss_einri  TYPE RNPB2-EINRI, "   
lv_no_authority  TYPE RNPB2, "   
lt_si_excl_func  TYPE STANDARD TABLE OF ISH_T_EXCL_FUNC, "   
lv_ss_seldt  TYPE RNPB2-SELDT, "   
lv_ss_patnr  TYPE PATNR, "   
lv_ss_papid  TYPE ISH_PAPID, "   
lv_ss_col_popup  TYPE SY-CUCOL, "   05
lv_ss_row_popup  TYPE SY-CUROW, "   02
lv_ss_first_time  TYPE ISH_TRUE_FALSE, "   '1'
lv_ir_env  TYPE CL_ISH_ENVIRONMENT. "   

  CALL FUNCTION 'ISH_PATIENT_APPOINTMENT_LIST'  "IS-H: List with All Scheduled Appointments of a Patient
    EXPORTING
         SS_EINRI = lv_ss_einri
         SS_SELDT = lv_ss_seldt
         SS_PATNR = lv_ss_patnr
         SS_PAPID = lv_ss_papid
         SS_COL_POPUP = lv_ss_col_popup
         SS_ROW_POPUP = lv_ss_row_popup
         SS_FIRST_TIME = lv_ss_first_time
         IR_ENV = lv_ir_env
    IMPORTING
         SE_PATNR = lv_se_patnr
    TABLES
         SI_EXCL_FUNC = lt_si_excl_func
    EXCEPTIONS
        NO_AUTHORITY = 1
. " ISH_PATIENT_APPOINTMENT_LIST




ABAP code using 7.40 inline data declarations to call FM ISH_PATIENT_APPOINTMENT_LIST

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 RNPB2 INTO @DATA(ld_ss_einri).
 
 
 
"SELECT single SELDT FROM RNPB2 INTO @DATA(ld_ss_seldt).
 
 
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_ss_col_popup).
DATA(ld_ss_col_popup) = 05.
 
"SELECT single CUROW FROM SY INTO @DATA(ld_ss_row_popup).
DATA(ld_ss_row_popup) = 02.
 
DATA(ld_ss_first_time) = '1'.
 
 


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!