SAP BAPI_CASEDIAGNOSIS_GETLIST Function Module for IS-H BAPI CaseDiagnosis.GetList - List Diagnoses for Case
BAPI_CASEDIAGNOSIS_GETLIST is a standard bapi casediagnosis getlist 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 BAPI CaseDiagnosis.GetList - List Diagnoses for Case 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 bapi casediagnosis getlist FM, simply by entering the name BAPI_CASEDIAGNOSIS_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: 2098
Program Name: SAPL2098
Main Program: SAPL2098
Appliation area: N
Release date: 11-May-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function BAPI_CASEDIAGNOSIS_GETLIST 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 'BAPI_CASEDIAGNOSIS_GETLIST'"IS-H BAPI CaseDiagnosis.GetList - List Diagnoses for Case.
EXPORTING
INSTITUTION = "Institution
* DRG_DIAG = OFF "Checkbox for DRG Diagnoses Only
* NO_DRGDIAG = OFF "Checkbox for Diagnoses Other than DRG Diagnoses
PATCASEID = "Case Number
* REFERRAL_DIAG = 'X' "Checkbox for Referral Diagnosis
* TREATMENT_DIAG = 'X' "Checkbox for Treatment Diagnosis
* ADMISSION_DIAG = 'X' "Checkbox for Admission Diagnosis
* DISCHARGE_DIAG = 'X' "Checkbox for Discharge Diagnosis
* DEPT_MAIN_DIAG = 'X' "Checkbox for Department Main Diagnosis
* HOSP_MAIN_DIAG = 'X' "Checkbox for Hospital Main Diagnosis
* SURGERY_DIAG = 'X' "Checkbox for Surgery Diagnosis
IMPORTING
WORST_RETURNED_MSGTY = "Most Severe Message Type
TABLES
CASE_DIAGNOSIS = "Diagnosis Data
* RETURN = "Return Messages
* FILTER_DIAG_DATE = "Filter on Diagnosis Date
* FILTER_MOVEMENT_SEQNO = "Filter on Movement Number
* FILTER_EXT_DIAGNO = "Filter on External Diagnosis Number
* FILTER_DIAG_DEPARTMENT = "Filter on Departmental OU of Diagnosis
IMPORTING Parameters details for BAPI_CASEDIAGNOSIS_GETLIST
INSTITUTION - Institution
Data type: BAPI2098DATA-INSTITUTIONOptional: No
Call by Reference: No ( called with pass by value option)
DRG_DIAG - Checkbox for DRG Diagnoses Only
Data type: BAPINALL-XINDDefault: OFF
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_DRGDIAG - Checkbox for Diagnoses Other than DRG Diagnoses
Data type: BAPINALL-XINDDefault: OFF
Optional: Yes
Call by Reference: No ( called with pass by value option)
PATCASEID - Case Number
Data type: BAPI2098DATA-PATCASEIDOptional: No
Call by Reference: No ( called with pass by value option)
REFERRAL_DIAG - Checkbox for Referral Diagnosis
Data type: BAPI2098DATA-REFERRAL_DIADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TREATMENT_DIAG - Checkbox for Treatment Diagnosis
Data type: BAPI2098DATA-TREATMENT_DIADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ADMISSION_DIAG - Checkbox for Admission Diagnosis
Data type: BAPI2098DATA-ADMISSION_DIADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISCHARGE_DIAG - Checkbox for Discharge Diagnosis
Data type: BAPI2098DATA-DISCHARGE_DIADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEPT_MAIN_DIAG - Checkbox for Department Main Diagnosis
Data type: BAPI2098DATA-DEPT_MAIN_DIADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
HOSP_MAIN_DIAG - Checkbox for Hospital Main Diagnosis
Data type: BAPI2098DATA-HOSP_MAIN_DIADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SURGERY_DIAG - Checkbox for Surgery Diagnosis
Data type: BAPI2098DATA-SURGERY_DIADefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_CASEDIAGNOSIS_GETLIST
WORST_RETURNED_MSGTY - Most Severe Message Type
Data type: BAPINALL-WORSTRETMSGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_CASEDIAGNOSIS_GETLIST
CASE_DIAGNOSIS - Diagnosis Data
Data type: BAPI2098DATAOptional: No
Call by Reference: No ( called with pass by value option)
RETURN - Return Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
FILTER_DIAG_DATE - Filter on Diagnosis Date
Data type: BAPINRNGDATEOptional: Yes
Call by Reference: No ( called with pass by value option)
FILTER_MOVEMENT_SEQNO - Filter on Movement Number
Data type: BAPI2097RNGMOVEMNTSEQNOOptional: Yes
Call by Reference: No ( called with pass by value option)
FILTER_EXT_DIAGNO - Filter on External Diagnosis Number
Data type: BAPI2098RNGEXTNOOptional: Yes
Call by Reference: No ( called with pass by value option)
FILTER_DIAG_DEPARTMENT - Filter on Departmental OU of Diagnosis
Data type: BAPINRNGOUOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_CASEDIAGNOSIS_GETLIST 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_institution | TYPE BAPI2098DATA-INSTITUTION, " | |||
lt_case_diagnosis | TYPE STANDARD TABLE OF BAPI2098DATA, " | |||
lv_worst_returned_msgty | TYPE BAPINALL-WORSTRETMSG, " | |||
lv_drg_diag | TYPE BAPINALL-XIND, " OFF | |||
lv_no_drgdiag | TYPE BAPINALL-XIND, " OFF | |||
lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
lv_patcaseid | TYPE BAPI2098DATA-PATCASEID, " | |||
lv_referral_diag | TYPE BAPI2098DATA-REFERRAL_DIA, " 'X' | |||
lt_filter_diag_date | TYPE STANDARD TABLE OF BAPINRNGDATE, " | |||
lv_treatment_diag | TYPE BAPI2098DATA-TREATMENT_DIA, " 'X' | |||
lt_filter_movement_seqno | TYPE STANDARD TABLE OF BAPI2097RNGMOVEMNTSEQNO, " | |||
lv_admission_diag | TYPE BAPI2098DATA-ADMISSION_DIA, " 'X' | |||
lt_filter_ext_diagno | TYPE STANDARD TABLE OF BAPI2098RNGEXTNO, " | |||
lv_discharge_diag | TYPE BAPI2098DATA-DISCHARGE_DIA, " 'X' | |||
lt_filter_diag_department | TYPE STANDARD TABLE OF BAPINRNGOU, " | |||
lv_dept_main_diag | TYPE BAPI2098DATA-DEPT_MAIN_DIA, " 'X' | |||
lv_hosp_main_diag | TYPE BAPI2098DATA-HOSP_MAIN_DIA, " 'X' | |||
lv_surgery_diag | TYPE BAPI2098DATA-SURGERY_DIA. " 'X' |
  CALL FUNCTION 'BAPI_CASEDIAGNOSIS_GETLIST' "IS-H BAPI CaseDiagnosis.GetList - List Diagnoses for Case |
EXPORTING | ||
INSTITUTION | = lv_institution | |
DRG_DIAG | = lv_drg_diag | |
NO_DRGDIAG | = lv_no_drgdiag | |
PATCASEID | = lv_patcaseid | |
REFERRAL_DIAG | = lv_referral_diag | |
TREATMENT_DIAG | = lv_treatment_diag | |
ADMISSION_DIAG | = lv_admission_diag | |
DISCHARGE_DIAG | = lv_discharge_diag | |
DEPT_MAIN_DIAG | = lv_dept_main_diag | |
HOSP_MAIN_DIAG | = lv_hosp_main_diag | |
SURGERY_DIAG | = lv_surgery_diag | |
IMPORTING | ||
WORST_RETURNED_MSGTY | = lv_worst_returned_msgty | |
TABLES | ||
CASE_DIAGNOSIS | = lt_case_diagnosis | |
RETURN | = lt_return | |
FILTER_DIAG_DATE | = lt_filter_diag_date | |
FILTER_MOVEMENT_SEQNO | = lt_filter_movement_seqno | |
FILTER_EXT_DIAGNO | = lt_filter_ext_diagno | |
FILTER_DIAG_DEPARTMENT | = lt_filter_diag_department | |
. " BAPI_CASEDIAGNOSIS_GETLIST |
ABAP code using 7.40 inline data declarations to call FM BAPI_CASEDIAGNOSIS_GETLIST
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 INSTITUTION FROM BAPI2098DATA INTO @DATA(ld_institution). | ||||
"SELECT single WORSTRETMSG FROM BAPINALL INTO @DATA(ld_worst_returned_msgty). | ||||
"SELECT single XIND FROM BAPINALL INTO @DATA(ld_drg_diag). | ||||
DATA(ld_drg_diag) | = OFF. | |||
"SELECT single XIND FROM BAPINALL INTO @DATA(ld_no_drgdiag). | ||||
DATA(ld_no_drgdiag) | = OFF. | |||
"SELECT single PATCASEID FROM BAPI2098DATA INTO @DATA(ld_patcaseid). | ||||
"SELECT single REFERRAL_DIA FROM BAPI2098DATA INTO @DATA(ld_referral_diag). | ||||
DATA(ld_referral_diag) | = 'X'. | |||
"SELECT single TREATMENT_DIA FROM BAPI2098DATA INTO @DATA(ld_treatment_diag). | ||||
DATA(ld_treatment_diag) | = 'X'. | |||
"SELECT single ADMISSION_DIA FROM BAPI2098DATA INTO @DATA(ld_admission_diag). | ||||
DATA(ld_admission_diag) | = 'X'. | |||
"SELECT single DISCHARGE_DIA FROM BAPI2098DATA INTO @DATA(ld_discharge_diag). | ||||
DATA(ld_discharge_diag) | = 'X'. | |||
"SELECT single DEPT_MAIN_DIA FROM BAPI2098DATA INTO @DATA(ld_dept_main_diag). | ||||
DATA(ld_dept_main_diag) | = 'X'. | |||
"SELECT single HOSP_MAIN_DIA FROM BAPI2098DATA INTO @DATA(ld_hosp_main_diag). | ||||
DATA(ld_hosp_main_diag) | = 'X'. | |||
"SELECT single SURGERY_DIA FROM BAPI2098DATA INTO @DATA(ld_surgery_diag). | ||||
DATA(ld_surgery_diag) | = 'X'. | |||
Search for further information about these or an SAP related objects