SAP BAPI_PATIENT_GETDETAIL Function Module for IS-H BAPI Patient.GetDetail - Display Patient Details









BAPI_PATIENT_GETDETAIL is a standard bapi patient getdetail 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 Patient.GetDetail - Display Patient Details 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 patient getdetail FM, simply by entering the name BAPI_PATIENT_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.

Function Group: 1084
Program Name: SAPL1084
Main Program: SAPL1084
Appliation area: N
Release date: 18-May-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_PATIENT_GETDETAIL 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_PATIENT_GETDETAIL'"IS-H BAPI Patient.GetDetail - Display Patient Details
EXPORTING
INSTITUTION = "Institution
PATIENTID = "Patient Number

IMPORTING
PATIENT_DATA = "Details on Patient
WORST_RETURNED_MSGTY = "Most Severe Message Type

TABLES
* ADDRESSES = "Addresses
* ADD_PHONES = "Additional Telephone Numbers
* RETURN = "Return Messages
* LEGAL_REP = "IS-H BAPI Legal Representative
.



IMPORTING Parameters details for BAPI_PATIENT_GETDETAIL

INSTITUTION - Institution

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

PATIENTID - Patient Number

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

EXPORTING Parameters details for BAPI_PATIENT_GETDETAIL

PATIENT_DATA - Details on Patient

Data type: BAPI1084OUT
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_PATIENT_GETDETAIL

ADDRESSES - Addresses

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

ADD_PHONES - Additional Telephone Numbers

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

RETURN - Return Messages

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

LEGAL_REP - IS-H BAPI Legal Representative

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

Copy and paste ABAP code example for BAPI_PATIENT_GETDETAIL 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:
lt_addresses  TYPE STANDARD TABLE OF BAPINADDR, "   
lv_institution  TYPE BAPI1084OUT-INSTITUTION, "   
lv_patient_data  TYPE BAPI1084OUT, "   
lv_patientid  TYPE BAPI1084OUT-PATIENTID, "   
lt_add_phones  TYPE STANDARD TABLE OF BAPINADDR2, "   
lv_worst_returned_msgty  TYPE BAPINALL-WORSTRETMSG, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_legal_rep  TYPE STANDARD TABLE OF BAPI1084LEGALREP. "   

  CALL FUNCTION 'BAPI_PATIENT_GETDETAIL'  "IS-H BAPI Patient.GetDetail - Display Patient Details
    EXPORTING
         INSTITUTION = lv_institution
         PATIENTID = lv_patientid
    IMPORTING
         PATIENT_DATA = lv_patient_data
         WORST_RETURNED_MSGTY = lv_worst_returned_msgty
    TABLES
         ADDRESSES = lt_addresses
         ADD_PHONES = lt_add_phones
         RETURN = lt_return
         LEGAL_REP = lt_legal_rep
. " BAPI_PATIENT_GETDETAIL




ABAP code using 7.40 inline data declarations to call FM BAPI_PATIENT_GETDETAIL

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 BAPI1084OUT INTO @DATA(ld_institution).
 
 
"SELECT single PATIENTID FROM BAPI1084OUT INTO @DATA(ld_patientid).
 
 
"SELECT single WORSTRETMSG FROM BAPINALL INTO @DATA(ld_worst_returned_msgty).
 
 
 


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!