SAP ISH_DRG_GROUP Function Module for









ISH_DRG_GROUP is a standard ish drg group SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 drg group FM, simply by entering the name ISH_DRG_GROUP into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_DRG_GROUP 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_DRG_GROUP'"
EXPORTING
I_INSTITUTION = "IS-H: Institution
* I_ICP_TAB = "IS-H: Table with Procedures
* I_COLLECT_AND_WAIT = ' ' "IS-H: Flag Indicating Whether Further Cases to Come
* I_ALLOW_ASYNC_ANYWAY = ' ' "
* I_APXNR = "IS-H: Appendix Number
I_CASENUMBER = "IS-H: Case Number
I_CALLP = "IS-H: DRG Grouper Callpoint
* I_PATIENT_DATA = "IS-H: Patient Master Data (General)
* I_CASE_DATA = "IS-H: Cases
* I_BIRTH_DATA = "IS-H: Birth Data of Newborns
* I_ADMIN_DATA = "IS-H: Administration Data for DRG Grouper Interface
* I_MOVEMENT_TAB = "
* I_DIA_TAB = "IS-H: Table with Diagnoses

IMPORTING
E_DRG_TAB = "
E_DIA_TAB = "
E_ICP_TAB = "
E_LEI_TAB = "
E_SYNCHRON = "

CHANGING
* C_RETURN_TAB = "IS-H: Table Type for Structure BAPIRET2

EXCEPTIONS
ERROR_OCCURED = 1
.



IMPORTING Parameters details for ISH_DRG_GROUP

I_INSTITUTION - IS-H: Institution

Data type: NFAL-EINRI
Optional: No
Call by Reference: Yes

I_ICP_TAB - IS-H: Table with Procedures

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

I_COLLECT_AND_WAIT - IS-H: Flag Indicating Whether Further Cases to Come

Data type: ISH_ON_OFF
Default: ' '
Optional: Yes
Call by Reference: Yes

I_ALLOW_ASYNC_ANYWAY -

Data type: ISH_ON_OFF
Default: ' '
Optional: Yes
Call by Reference: Yes

I_APXNR - IS-H: Appendix Number

Data type: NAPX-APXNR
Optional: Yes
Call by Reference: Yes

I_CASENUMBER - IS-H: Case Number

Data type: NFAL-FALNR
Optional: No
Call by Reference: Yes

I_CALLP - IS-H: DRG Grouper Callpoint

Data type: TNGRP1-CALLP
Optional: No
Call by Reference: Yes

I_PATIENT_DATA - IS-H: Patient Master Data (General)

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

I_CASE_DATA - IS-H: Cases

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

I_BIRTH_DATA - IS-H: Birth Data of Newborns

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

I_ADMIN_DATA - IS-H: Administration Data for DRG Grouper Interface

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

I_MOVEMENT_TAB -

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

I_DIA_TAB - IS-H: Table with Diagnoses

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

EXPORTING Parameters details for ISH_DRG_GROUP

E_DRG_TAB -

Data type: ISH_T_NDRG
Optional: No
Call by Reference: Yes

E_DIA_TAB -

Data type: ISH_NDIA_TAB
Optional: No
Call by Reference: Yes

E_ICP_TAB -

Data type: ISH_NICP_TAB
Optional: No
Call by Reference: Yes

E_LEI_TAB -

Data type: ISH_T_VNLEI
Optional: No
Call by Reference: Yes

E_SYNCHRON -

Data type: ISH_ON_OFF
Optional: No
Call by Reference: Yes

CHANGING Parameters details for ISH_DRG_GROUP

C_RETURN_TAB - IS-H: Table Type for Structure BAPIRET2

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

EXCEPTIONS details

ERROR_OCCURED - An error has occurred

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_DRG_GROUP 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_e_drg_tab  TYPE ISH_T_NDRG, "   
lv_c_return_tab  TYPE ISH_BAPIRET2_TAB_TYPE, "   
lv_error_occured  TYPE ISH_BAPIRET2_TAB_TYPE, "   
lv_i_institution  TYPE NFAL-EINRI, "   
lv_i_icp_tab  TYPE ISH_NICP_TAB, "   
lv_i_collect_and_wait  TYPE ISH_ON_OFF, "   ' '
lv_i_allow_async_anyway  TYPE ISH_ON_OFF, "   ' '
lv_i_apxnr  TYPE NAPX-APXNR, "   
lv_e_dia_tab  TYPE ISH_NDIA_TAB, "   
lv_i_casenumber  TYPE NFAL-FALNR, "   
lv_i_callp  TYPE TNGRP1-CALLP, "   
lv_e_icp_tab  TYPE ISH_NICP_TAB, "   
lv_e_lei_tab  TYPE ISH_T_VNLEI, "   
lv_i_patient_data  TYPE NPAT, "   
lv_e_synchron  TYPE ISH_ON_OFF, "   
lv_i_case_data  TYPE NFAL, "   
lv_i_birth_data  TYPE NGEB, "   
lv_i_admin_data  TYPE ISH_DRG_ADMIN_DATA, "   
lv_i_movement_tab  TYPE NBEWTAB, "   
lv_i_dia_tab  TYPE ISH_NDIA_TAB. "   

  CALL FUNCTION 'ISH_DRG_GROUP'  "
    EXPORTING
         I_INSTITUTION = lv_i_institution
         I_ICP_TAB = lv_i_icp_tab
         I_COLLECT_AND_WAIT = lv_i_collect_and_wait
         I_ALLOW_ASYNC_ANYWAY = lv_i_allow_async_anyway
         I_APXNR = lv_i_apxnr
         I_CASENUMBER = lv_i_casenumber
         I_CALLP = lv_i_callp
         I_PATIENT_DATA = lv_i_patient_data
         I_CASE_DATA = lv_i_case_data
         I_BIRTH_DATA = lv_i_birth_data
         I_ADMIN_DATA = lv_i_admin_data
         I_MOVEMENT_TAB = lv_i_movement_tab
         I_DIA_TAB = lv_i_dia_tab
    IMPORTING
         E_DRG_TAB = lv_e_drg_tab
         E_DIA_TAB = lv_e_dia_tab
         E_ICP_TAB = lv_e_icp_tab
         E_LEI_TAB = lv_e_lei_tab
         E_SYNCHRON = lv_e_synchron
    CHANGING
         C_RETURN_TAB = lv_c_return_tab
    EXCEPTIONS
        ERROR_OCCURED = 1
. " ISH_DRG_GROUP




ABAP code using 7.40 inline data declarations to call FM ISH_DRG_GROUP

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 NFAL INTO @DATA(ld_i_institution).
 
 
DATA(ld_i_collect_and_wait) = ' '.
 
DATA(ld_i_allow_async_anyway) = ' '.
 
"SELECT single APXNR FROM NAPX INTO @DATA(ld_i_apxnr).
 
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_i_casenumber).
 
"SELECT single CALLP FROM TNGRP1 INTO @DATA(ld_i_callp).
 
 
 
 
 
 
 
 
 
 


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!