SAP BAPI_CASEPROCEDURE_GETDETAIL Function Module for IS-H BAPI CaseProcedure.GetDetail - Display Details of Case-Rel.Procedures
BAPI_CASEPROCEDURE_GETDETAIL is a standard bapi caseprocedure 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 CaseProcedure.GetDetail - Display Details of Case-Rel.Procedures 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 caseprocedure getdetail FM, simply by entering the name BAPI_CASEPROCEDURE_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1303
Program Name: SAPL1303
Main Program: SAPL1303
Appliation area:
Release date: 28-Jul-2005
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_CASEPROCEDURE_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_CASEPROCEDURE_GETDETAIL'"IS-H BAPI CaseProcedure.GetDetail - Display Details of Case-Rel.Procedures.
EXPORTING
INSTITUTION = "Institution
PATCASEID = "Case Number
SURPROC_SEQNO = "Sequence Number of Procedure
* COMPLETE_SURGERY_DATA = ' ' "Add Missing Procedure Data
IMPORTING
CASEPROCEDURE_DATA = "Detailed Data for Exactly one Procedure
WORST_RETURNED_MSGTY = "Most Severe Message Type
TABLES
* ASS_SERVICES = "Case-Related Services Assigned to Procedure
* ASS_DIAGNOSES = "Diagnoses Assigned to Procedure
* RETURN = "Return Messages
IMPORTING Parameters details for BAPI_CASEPROCEDURE_GETDETAIL
INSTITUTION - Institution
Data type: BAPI1303DATA-INSTITUTIONOptional: No
Call by Reference: No ( called with pass by value option)
PATCASEID - Case Number
Data type: BAPI1303DATA-PATCASEIDOptional: No
Call by Reference: No ( called with pass by value option)
SURPROC_SEQNO - Sequence Number of Procedure
Data type: BAPI1303DATA-SURPROC_SEQNOOptional: No
Call by Reference: No ( called with pass by value option)
COMPLETE_SURGERY_DATA - Add Missing Procedure Data
Data type: BAPINALL-XINDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_CASEPROCEDURE_GETDETAIL
CASEPROCEDURE_DATA - Detailed Data for Exactly one Procedure
Data type: BAPI1303DATAOptional: No
Call by Reference: No ( called with pass by value option)
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_CASEPROCEDURE_GETDETAIL
ASS_SERVICES - Case-Related Services Assigned to Procedure
Data type: BAPI1303ASSSRVOptional: Yes
Call by Reference: Yes
ASS_DIAGNOSES - Diagnoses Assigned to Procedure
Data type: BAPI1303ASSDIAOptional: Yes
Call by Reference: Yes
RETURN - Return Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_CASEPROCEDURE_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: | ||||
| lv_institution | TYPE BAPI1303DATA-INSTITUTION, " | |||
| lt_ass_services | TYPE STANDARD TABLE OF BAPI1303ASSSRV, " | |||
| lv_caseprocedure_data | TYPE BAPI1303DATA, " | |||
| lv_patcaseid | TYPE BAPI1303DATA-PATCASEID, " | |||
| lt_ass_diagnoses | TYPE STANDARD TABLE OF BAPI1303ASSDIA, " | |||
| lv_worst_returned_msgty | TYPE BAPINALL-WORSTRETMSG, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_surproc_seqno | TYPE BAPI1303DATA-SURPROC_SEQNO, " | |||
| lv_complete_surgery_data | TYPE BAPINALL-XIND. " SPACE |
|   CALL FUNCTION 'BAPI_CASEPROCEDURE_GETDETAIL' "IS-H BAPI CaseProcedure.GetDetail - Display Details of Case-Rel.Procedures |
| EXPORTING | ||
| INSTITUTION | = lv_institution | |
| PATCASEID | = lv_patcaseid | |
| SURPROC_SEQNO | = lv_surproc_seqno | |
| COMPLETE_SURGERY_DATA | = lv_complete_surgery_data | |
| IMPORTING | ||
| CASEPROCEDURE_DATA | = lv_caseprocedure_data | |
| WORST_RETURNED_MSGTY | = lv_worst_returned_msgty | |
| TABLES | ||
| ASS_SERVICES | = lt_ass_services | |
| ASS_DIAGNOSES | = lt_ass_diagnoses | |
| RETURN | = lt_return | |
| . " BAPI_CASEPROCEDURE_GETDETAIL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_CASEPROCEDURE_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 BAPI1303DATA INTO @DATA(ld_institution). | ||||
| "SELECT single PATCASEID FROM BAPI1303DATA INTO @DATA(ld_patcaseid). | ||||
| "SELECT single WORSTRETMSG FROM BAPINALL INTO @DATA(ld_worst_returned_msgty). | ||||
| "SELECT single SURPROC_SEQNO FROM BAPI1303DATA INTO @DATA(ld_surproc_seqno). | ||||
| "SELECT single XIND FROM BAPINALL INTO @DATA(ld_complete_surgery_data). | ||||
| DATA(ld_complete_surgery_data) | = ' '. | |||
Search for further information about these or an SAP related objects