SAP Reports / Programs

RN2DGAI2 SAP ABAP Report - Anesthesia Quality Assurance (DGAI)







RN2DGAI2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is relevant for the country version Germany only...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RN2DGAI2 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RN2DGAI2. "Basic submit
SUBMIT RN2DGAI2 AND RETURN. "Return to original report after report execution complete
SUBMIT RN2DGAI2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: TEST = Test Mode
Selection Text: SE_EINRI = Institution
Selection Text: SE_DKTYP = Document Category
Selection Text: SE_DKSTA = Document Status
Selection Text: FILENAME = Path and Name of File
Selection Text: AUSENDDT = Evaluation Period End
Selection Text: AUSBEGDT = Evaluation Period Start
Selection Text: ALVDVAR = Layout
Title: Anesthesia Quality Assurance (DGAI)
Text Symbol: A58 = Note
Text Symbol: A59 = Note on File Creation
Text Symbol: A60 = Value
Text Symbol: A61 = Value for Note Field
Text Symbol: A64 = Test Run
Text Symbol: A65 = All Stats
Text Symbol: S01 = Institution
Text Symbol: S02 = Evaluation Period
Text Symbol: S03 = Further Data
Text Symbol: S04 = To
Text Symbol: S05 = Path and Name of Output File
Text Symbol: S06 = Output Control
Text Symbol: S08 = Document Ctgry
Text Symbol: S09 = Status
Text Symbol: S13 = Alternative Selection using Doc. Categ
Text Symbol: A57 = No. of Incorrect Core Datasets
Text Symbol: A01 = Display Errors
Text Symbol: A02 = Error
Text Symbol: A03 = Select.
Text Symbol: A04 = Select.
Text Symbol: A07 = Status
Text Symbol: A08 = Check Status Acc. to DGAI Specif.
Text Symbol: A09 = Degr. Err.
Text Symbol: A10 = Highest Degree of Error (Several Errors)
Text Symbol: A11 = No. of Errors
Text Symbol: A12 = Number of Notes / Error Messages
Text Symbol: A13 = CDS Rec.
Text Symbol: A14 = Anesthesia Core Dataset
Text Symbol: A17 = Err. No.





Text Symbol: A18 = Error Number
Text Symbol: A19 = Error Message
Text Symbol: A20 = Note / Error Message
Text Symbol: A21 = ErrorType
Text Symbol: A22 = Error Class
Text Symbol: A50 = File Creation Log
Text Symbol: A51 = Institution
Text Symbol: A52 = DGAI Hospital Identification Number
Text Symbol: A53 = No. of Reported Core Datasets
Text Symbol: A54 = Data Rec.Version
Text Symbol: A56 = End of Creation Log


INCLUDES used within this REPORT RN2DGAI2

INCLUDE RN2DGTOP.
INCLUDE MNCOLOUR.
INCLUDE RNSSIEIN.
INCLUDE RNSSSPBO.
INCLUDE RNSSSEIN.
INCLUDE RNSSSAUS.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ISH_N2_GET_DGAI_VERSION CALL FUNCTION 'ISH_N2_GET_DGAI_VERSION' IMPORTING ss_i_qssst = l_dgsst EXCEPTIONS empty = 1 OTHERS = 2.

ISH_QUARTER_GET CALL FUNCTION 'ISH_QUARTER_GET' EXPORTING ss_date = l_datum IMPORTING ss_begin = ausbegdt ss_end = ausenddt EXCEPTIONS error = 1 wrong_date = 2 OTHERS = 3.

ISH_QUARTER_GET CALL FUNCTION 'ISH_QUARTER_GET' EXPORTING ss_date = l_datum IMPORTING ss_begin = ausbegdt ss_end = ausenddt EXCEPTIONS error = 1 wrong_date = 2 OTHERS = 3.

WS_FILENAME_GET ** CALL FUNCTION 'WS_FILENAME_GET' entfernt 29.10.2002

ISH_CALL_LIST_HEAD CALL FUNCTION 'ISH_CALL_LIST_HEAD' EXPORTING einri = se_einri ausbegdt = s_rnstat-ausbegdt ausenddt = s_rnstat-ausenddt title_lin1 = s_rnstat-title_lin1 title_lin2 = s_rnstat-title_lin2 line_size = s_rnstat-line_size repid = s_rnstat-repid uline = on.

GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' IMPORTING out_parameters = l_print_parm *** VALID = EXCEPTIONS archive_info_not_found = 1 OTHERS = 2.

ISH_N2_GET_DGAI_BASIC_DATA CALL FUNCTION 'ISH_N2_GET_DGAI_BASIC_DATA' EXPORTING ss_e_einri = se_einri " Einrichtung ss_e_qssst = l_dgsst " Schnittstelle ss_e_ftest = on " Formaltest ss_e_rtest = on " Referenztest ss_e_dokerm = on " Dokumente prüfen ss_e_merror = on " alle Fehler ermitteln IMPORTING ss_e_ftest_ok = l_ftest_ok ss_e_rtest_ok = l_rtest_ok ss_e_dokerm_ok = l_dokerm_ok TABLES ss_t_n2dgaist = idb_dgaist " Steuerungstabelle ss_t_stfehl = it_fehler ss_t_stdoku = it_dokref EXCEPTIONS no_data = 2.

ISH_N2_SELECT_DGAI_DATA CALL FUNCTION 'ISH_N2_SELECT_DGAI_DATA' EXPORTING ss_e_einri = se_einri ss_e_datum_von = ausbegdt ss_e_datum_bis = ausenddt ss_e_anker = l_knz_anker_op TABLES ss_t_v_nlem = idb_nlem EXCEPTIONS empty = 1.

ISH_N2_SELECT_DGAI_DATA_DOKTYP CALL FUNCTION 'ISH_N2_SELECT_DGAI_DATA_DOKTYP' EXPORTING ss_e_einri = se_einri ss_e_datum_von = ausbegdt ss_e_datum_bis = ausenddt ss_e_anker = l_knz_anker_op ss_e_doktyp = se_dktyp ss_e_dokstatus = se_dksta TABLES ss_t_v_nlem = idb_nlem EXCEPTIONS empty = 1.

ISH_N2_GET_DGAI_VALUE CALL FUNCTION 'ISH_N2_GET_DGAI_VALUE' EXPORTING ss_s_v_nlem = sdb_nlem TABLES ss_t_n2dgaist = idb_dgaist ss_t_dokref = it_dokref ss_t_fehl = it_fehler ss_t_werte = it_dgaiw CHANGING ss_s_rn2dgairec = s_dgai_rec EXCEPTIONS error = 2.






ISH_N2_CHECK_DGAI_RECORD CALL FUNCTION 'ISH_N2_CHECK_DGAI_RECORD' EXPORTING ss_s_rn2dgairec = s_dgai_rec ss_e_alle = on TABLES ss_t_n2dgaist = idb_dgaist ss_t_stfehl = it_fehler EXCEPTIONS with_errors = 2.

ISH_N2_GET_DGAI_DATA_PAT_FALL CALL FUNCTION 'ISH_N2_GET_DGAI_DATA_PAT_FALL' EXPORTING ss_e_einri = se_einri ss_e_falnr = sdb_nlem-falnr ss_e_patnr = sdb_nlem-patnr ss_e_lfdnr = sdb_nlem-lfdbew CHANGING ss_s_rn2dgairec = s_dgai_rec EXCEPTIONS missing_parameter = 1 pat_not_found = 2 fall_not_found = 3.

ISH_N2_GET_DGAI_DATA_OP_DIAG CALL FUNCTION 'ISH_N2_GET_DGAI_DATA_OP_DIAG' EXPORTING ss_s_v_nlem = sdb_nlem CHANGING ss_s_rn2dgairec = s_dgai_rec EXCEPTIONS missing_parameter = 1 not_found = 2.

ISH_N2_GET_DGAI_DATA_OP_ZEITEN CALL FUNCTION 'ISH_N2_GET_DGAI_DATA_OP_ZEITEN' EXPORTING ss_e_einri = se_einri ss_s_v_nlem = sdb_nlem CHANGING ss_s_rn2dgairec = s_dgai_rec EXCEPTIONS no_data = 2.

ISH_N2_GET_DGAI_DATA_DEPARTMEN CALL FUNCTION 'ISH_N2_GET_DGAI_DATA_DEPARTMEN' EXPORTING ss_e_einri = se_einri ss_e_orgid = sdb_nlem-erboe ss_e_stichtag = ausbegdt CHANGING ss_s_rn2dgairec = s_dgai_rec EXCEPTIONS not_found = 2.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' entfernt 29.10.2002

ISH_N2_READ_NBEW CALL FUNCTION 'ISH_N2_READ_NBEW' EXPORTING ss_einri = s_dgaik-einri ss_falnr = s_dgaik-falnr ss_lfdnr = s_dgaik-lfdbew IMPORTING ss_nbew = sdb_nbew EXCEPTIONS not_found = 1.

ISHMED_OP_MONITOR * CALL FUNCTION 'ISHMED_OP_MONITOR' * EXPORTING * I_NBEW = sdb_nbew.

ISH_N2_SHOW_DOKTYPEN CALL FUNCTION 'ISH_N2_SHOW_DOKTYPEN' EXPORTING ss_einri = se_einri ss_loekz = on CHANGING ss_dtid = l_dtid ss_dtart = l_medok EXCEPTIONS not_found = 1 OTHERS = 2.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = l_hlpvar i_save = 'A' IMPORTING e_exit = l_gs_exit es_variant = gs_variant EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 3.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING client = sy-mandt logical_filename = l_locfilename parameter_1 = 'DGAI_' parameter_2 = 'txt' parameter_3 = '' use_presentation_server = '' with_file_extension = ' ' IMPORTING file_name = l_filename EXCEPTIONS file_not_found = 1 OTHERS = 2.

ISH_GET_PARAMETER_ID * CALL FUNCTION 'ISH_GET_PARAMETER_ID' * EXPORTING * i_parameter_id = 'N1OPDWS' * IMPORTING * e_parameter_value = l_opdws.

ISHMED_OP_MONITOR * CALL FUNCTION 'ISHMED_OP_MONITOR' * EXPORTING * i_nbew = p_nbew * EXCEPTIONS * OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RN2DGAI2 or its description.