SAP BAPI_PATCASE_GETCLAIM Function Module for IS-H BAPI PatientCase.GetClaim - Display Invoice Data









BAPI_PATCASE_GETCLAIM is a standard bapi patcase getclaim 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 PatientCase.GetClaim - Display Invoice Data 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 patcase getclaim FM, simply by entering the name BAPI_PATCASE_GETCLAIM into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_PATCASE_GETCLAIM 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_PATCASE_GETCLAIM'"IS-H BAPI PatientCase.GetClaim - Display Invoice Data
EXPORTING
INSTITUTION = "Institution
PATCASEID = "Case Number
* INSURANCE_PROVIDER = "IS-H: Insurance provider
* INS_PROVIDER_TYPE = "IS-H: Internal Insurance Provider Category
* TESTRUN = ' ' "IS-H: Test Run Without Database Changes (Checkbox)

IMPORTING
PATIENT_DATA = "IS-H BAPI Patient Return Data
ADMISSION_DATA = "IS-H BAPI Case Inpatient Admission Return Data
REF_HOSPITAL_DATA = "IS-H BAPI Business Partner - Hospital Data
WORST_RETURNED_MSGTY = "Most Severe Message Type

TABLES
* PAT_ADDRESS_TABLE = "IS-H: Addresses (Central Address Structure)
* CASE_DIAGNOSIS_DATA = "IS-H BAPI Case Diagnosis Data
* CASE_PROCEDURE_DATA = "IS-H: BAPI Case-Procedure Data
* RETURN = "Return Messages
* PAT_PHONE_TABLE = "IS-H BAPI Additional Telephone Numbers
* INSURANCE_REL_DATA = "IS-H: BAPI for Case-Related Insurance Relationship
* BILL_HEADER_DATA = "IS-H: BAPI Billing Document: Header Data
* BILL_ITEM_DATA = "IS-H: Billing Document Item Data
* CASE_SERVICE_DATA = "IS-H BAPI Case-Based Service Data
* BPART_SRV_LINK_DATA = "IS-H: Business Partner <-> Service Assignment (NNLZ)
* PHYSICIAN_DATA = "IS-H BAPI Business Partner - Person Data
* PHYS_SPECIAL_DATA = "IS-H BAPI Person-to-Specialty Assignment
.



IMPORTING Parameters details for BAPI_PATCASE_GETCLAIM

INSTITUTION - Institution

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

PATCASEID - Case Number

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

INSURANCE_PROVIDER - IS-H: Insurance provider

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

INS_PROVIDER_TYPE - IS-H: Internal Insurance Provider Category

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

TESTRUN - IS-H: Test Run Without Database Changes (Checkbox)

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

EXPORTING Parameters details for BAPI_PATCASE_GETCLAIM

PATIENT_DATA - IS-H BAPI Patient Return Data

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

ADMISSION_DATA - IS-H BAPI Case Inpatient Admission Return Data

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

REF_HOSPITAL_DATA - IS-H BAPI Business Partner - Hospital Data

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

WORST_RETURNED_MSGTY - Most Severe Message Type

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

TABLES Parameters details for BAPI_PATCASE_GETCLAIM

PAT_ADDRESS_TABLE - IS-H: Addresses (Central Address Structure)

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

CASE_DIAGNOSIS_DATA - IS-H BAPI Case Diagnosis Data

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

CASE_PROCEDURE_DATA - IS-H: BAPI Case-Procedure Data

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

RETURN - Return Messages

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

PAT_PHONE_TABLE - IS-H BAPI Additional Telephone Numbers

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

INSURANCE_REL_DATA - IS-H: BAPI for Case-Related Insurance Relationship

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

BILL_HEADER_DATA - IS-H: BAPI Billing Document: Header Data

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

BILL_ITEM_DATA - IS-H: Billing Document Item Data

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

CASE_SERVICE_DATA - IS-H BAPI Case-Based Service Data

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

BPART_SRV_LINK_DATA - IS-H: Business Partner <-> Service Assignment (NNLZ)

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

PHYSICIAN_DATA - IS-H BAPI Business Partner - Person Data

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

PHYS_SPECIAL_DATA - IS-H BAPI Person-to-Specialty Assignment

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

Copy and paste ABAP code example for BAPI_PATCASE_GETCLAIM 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 BAPINALL-INSTITUTION, "   
lv_patient_data  TYPE BAPI1084OUT, "   
lt_pat_address_table  TYPE STANDARD TABLE OF BAPINADDR, "   
lt_case_diagnosis_data  TYPE STANDARD TABLE OF BAPI2098DATA, "   
lt_case_procedure_data  TYPE STANDARD TABLE OF BAPI1303DATA, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_patcaseid  TYPE BAPINALL-PATCASEID, "   
lv_admission_data  TYPE BAPI2097IAOUT, "   
lt_pat_phone_table  TYPE STANDARD TABLE OF BAPINADDR2, "   
lv_ref_hospital_data  TYPE BAPI1309BPARTNER, "   
lv_insurance_provider  TYPE BAPI1309INS_PROVIDER-INS_PROVIDER, "   
lt_insurance_rel_data  TYPE STANDARD TABLE OF BAPI2097INSURREL, "   
lt_bill_header_data  TYPE STANDARD TABLE OF BAPI1307HEADER, "   
lv_ins_provider_type  TYPE BAPI1309INS_PROVIDER_TYPE-IP_CATEGORY, "   
lv_worst_returned_msgty  TYPE BAPINALL-WORSTRETMSG, "   
lv_testrun  TYPE BAPINALL-TESTRUN, "   SPACE
lt_bill_item_data  TYPE STANDARD TABLE OF BAPI1307ITEM, "   
lt_case_service_data  TYPE STANDARD TABLE OF BAPI2099DATA, "   
lt_bpart_srv_link_data  TYPE STANDARD TABLE OF BAPI1309SERVICELINK, "   
lt_physician_data  TYPE STANDARD TABLE OF BAPI1309PERSON, "   
lt_phys_special_data  TYPE STANDARD TABLE OF BAPI1309PERSPEC. "   

  CALL FUNCTION 'BAPI_PATCASE_GETCLAIM'  "IS-H BAPI PatientCase.GetClaim - Display Invoice Data
    EXPORTING
         INSTITUTION = lv_institution
         PATCASEID = lv_patcaseid
         INSURANCE_PROVIDER = lv_insurance_provider
         INS_PROVIDER_TYPE = lv_ins_provider_type
         TESTRUN = lv_testrun
    IMPORTING
         PATIENT_DATA = lv_patient_data
         ADMISSION_DATA = lv_admission_data
         REF_HOSPITAL_DATA = lv_ref_hospital_data
         WORST_RETURNED_MSGTY = lv_worst_returned_msgty
    TABLES
         PAT_ADDRESS_TABLE = lt_pat_address_table
         CASE_DIAGNOSIS_DATA = lt_case_diagnosis_data
         CASE_PROCEDURE_DATA = lt_case_procedure_data
         RETURN = lt_return
         PAT_PHONE_TABLE = lt_pat_phone_table
         INSURANCE_REL_DATA = lt_insurance_rel_data
         BILL_HEADER_DATA = lt_bill_header_data
         BILL_ITEM_DATA = lt_bill_item_data
         CASE_SERVICE_DATA = lt_case_service_data
         BPART_SRV_LINK_DATA = lt_bpart_srv_link_data
         PHYSICIAN_DATA = lt_physician_data
         PHYS_SPECIAL_DATA = lt_phys_special_data
. " BAPI_PATCASE_GETCLAIM




ABAP code using 7.40 inline data declarations to call FM BAPI_PATCASE_GETCLAIM

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 BAPINALL INTO @DATA(ld_institution).
 
 
 
 
 
 
"SELECT single PATCASEID FROM BAPINALL INTO @DATA(ld_patcaseid).
 
 
 
 
"SELECT single INS_PROVIDER FROM BAPI1309INS_PROVIDER INTO @DATA(ld_insurance_provider).
 
 
 
"SELECT single IP_CATEGORY FROM BAPI1309INS_PROVIDER_TYPE INTO @DATA(ld_ins_provider_type).
 
"SELECT single WORSTRETMSG FROM BAPINALL INTO @DATA(ld_worst_returned_msgty).
 
"SELECT single TESTRUN FROM BAPINALL INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
 
 
 
 
 


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!