SAP ISH_DRG_DATA_INIT Function Module for









ISH_DRG_DATA_INIT is a standard ish drg data init 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 data init FM, simply by entering the name ISH_DRG_DATA_INIT into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_DRG_DATA_INIT 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_DATA_INIT'"
EXPORTING
SS_INSTITUTION = "Institution
SS_PATIENTNUMBER = "Patient Number
* SS_CASENUMBER = ' ' "Case Number
* SS_MOVEMENTNUMBER = '00000' "
* SS_TCODE = ' ' "Transaction Code
SS_VCODE = "Processing mode
* SS_PROGRAM = SY-REPID "
* SS_CALL_SCREEN = 'X' "
SS_CALLP = "IS-H: DRG Grouper Callpoint

IMPORTING
SS_OK_CODE = "

EXCEPTIONS
CASE_NOT_FOUND = 1 NO_AUTHORITY_CASE = 2 PAT_NOT_FOUND = 3 NO_AUTHORITY_PAT = 4 NO_INPATIENT_CASE = 5 NO_DRG_AUTHORITY = 6 MISSING_CUSTOMIZING = 7 NO_AUTHORITY_OU = 8 PSYATRIC_CASE = 9
.



IMPORTING Parameters details for ISH_DRG_DATA_INIT

SS_INSTITUTION - Institution

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

SS_PATIENTNUMBER - Patient Number

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

SS_CASENUMBER - Case Number

Data type: NFAL-FALNR
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_MOVEMENTNUMBER -

Data type: NBEW-LFDNR
Default: '00000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_TCODE - Transaction Code

Data type: SY-TCODE
Default: ' '
Optional: No
Call by Reference: No ( called with pass by value option)

SS_VCODE - Processing mode

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

SS_PROGRAM -

Data type: SY-REPID
Default: SY-REPID
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_CALL_SCREEN -

Data type: NPDOK-XFELD
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SS_CALLP - IS-H: DRG Grouper Callpoint

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

EXPORTING Parameters details for ISH_DRG_DATA_INIT

SS_OK_CODE -

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

EXCEPTIONS details

CASE_NOT_FOUND - Case Does not Exist

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

NO_AUTHORITY_CASE -

Data type:
Optional: No
Call by Reference: Yes

PAT_NOT_FOUND - Patient Does not Exist

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY_PAT -

Data type:
Optional: No
Call by Reference: Yes

NO_INPATIENT_CASE -

Data type:
Optional: No
Call by Reference: Yes

NO_DRG_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

MISSING_CUSTOMIZING - Customizing Settings Missing

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY_OU -

Data type:
Optional: No
Call by Reference: Yes

PSYATRIC_CASE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_DRG_DATA_INIT 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_ss_ok_code  TYPE SY-UCOMM, "   
lv_case_not_found  TYPE SY, "   
lv_ss_institution  TYPE RNPA1-EINRI, "   
lv_ss_patientnumber  TYPE NPAT-PATNR, "   
lv_no_authority_case  TYPE NPAT, "   
lv_pat_not_found  TYPE NPAT, "   
lv_ss_casenumber  TYPE NFAL-FALNR, "   ' '
lv_no_authority_pat  TYPE NFAL, "   
lv_ss_movementnumber  TYPE NBEW-LFDNR, "   '00000'
lv_ss_tcode  TYPE SY-TCODE, "   ' '
lv_no_inpatient_case  TYPE SY, "   
lv_ss_vcode  TYPE TNDYM-VCODE, "   
lv_no_drg_authority  TYPE TNDYM, "   
lv_ss_program  TYPE SY-REPID, "   SY-REPID
lv_missing_customizing  TYPE SY, "   
lv_ss_call_screen  TYPE NPDOK-XFELD, "   'X'
lv_no_authority_ou  TYPE NPDOK, "   
lv_ss_callp  TYPE TNGRP1-CALLP, "   
lv_psyatric_case  TYPE TNGRP1. "   

  CALL FUNCTION 'ISH_DRG_DATA_INIT'  "
    EXPORTING
         SS_INSTITUTION = lv_ss_institution
         SS_PATIENTNUMBER = lv_ss_patientnumber
         SS_CASENUMBER = lv_ss_casenumber
         SS_MOVEMENTNUMBER = lv_ss_movementnumber
         SS_TCODE = lv_ss_tcode
         SS_VCODE = lv_ss_vcode
         SS_PROGRAM = lv_ss_program
         SS_CALL_SCREEN = lv_ss_call_screen
         SS_CALLP = lv_ss_callp
    IMPORTING
         SS_OK_CODE = lv_ss_ok_code
    EXCEPTIONS
        CASE_NOT_FOUND = 1
        NO_AUTHORITY_CASE = 2
        PAT_NOT_FOUND = 3
        NO_AUTHORITY_PAT = 4
        NO_INPATIENT_CASE = 5
        NO_DRG_AUTHORITY = 6
        MISSING_CUSTOMIZING = 7
        NO_AUTHORITY_OU = 8
        PSYATRIC_CASE = 9
. " ISH_DRG_DATA_INIT




ABAP code using 7.40 inline data declarations to call FM ISH_DRG_DATA_INIT

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 UCOMM FROM SY INTO @DATA(ld_ss_ok_code).
 
 
"SELECT single EINRI FROM RNPA1 INTO @DATA(ld_ss_institution).
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_ss_patientnumber).
 
 
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_ss_casenumber).
DATA(ld_ss_casenumber) = ' '.
 
 
"SELECT single LFDNR FROM NBEW INTO @DATA(ld_ss_movementnumber).
DATA(ld_ss_movementnumber) = '00000'.
 
"SELECT single TCODE FROM SY INTO @DATA(ld_ss_tcode).
DATA(ld_ss_tcode) = ' '.
 
 
"SELECT single VCODE FROM TNDYM INTO @DATA(ld_ss_vcode).
 
 
"SELECT single REPID FROM SY INTO @DATA(ld_ss_program).
DATA(ld_ss_program) = SY-REPID.
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_ss_call_screen).
DATA(ld_ss_call_screen) = 'X'.
 
 
"SELECT single CALLP FROM TNGRP1 INTO @DATA(ld_ss_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!