SAP Reports / Programs

RN2LOP02 SAP ABAP Report - Surgery Time Stamp Statistics







RN2LOP02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Time stamp statistics allow a detailed evaluation of surgery-relevant durations and the display of the results according to different criteria ...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 RN2LOP02 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 RN2LOP02. "Basic submit
SUBMIT RN2LOP02 AND RETURN. "Return to original report after report execution complete
SUBMIT RN2LOP02 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: P_BAUTY = Op. Room Building Category
Selection Text: P_CAL = Plant Calendar
Selection Text: P_DATE = Date
Selection Text: P_EINRI = Institution
Selection Text: P_FRI = Friday
Selection Text: P_LSTG = Procedure
Selection Text: P_MON = Monday
Selection Text: P_OU = Organizational Unit
Selection Text: P_PROC = Only Main Procedures
Selection Text: P_ROOM = Operating Room
Selection Text: P_SAT = Saturday
Selection Text: P_SOP = With Secondary Surgeries
Selection Text: P_SUN = Sunday
Selection Text: P_THU = Thursday
Selection Text: P_TUE = Tuesday
Selection Text: P_T_FRI = Late Shift Until
Selection Text: P_T_MON = Late Shift Until
Selection Text: P_T_SAT = Late Shift Until
Selection Text: P_T_SUN = Late Shift Until
Selection Text: P_T_THU = Late Shift Until
Selection Text: SO_ZMRK = Time Stamp
Selection Text: SO_T_WED = Regular Shift From
Selection Text: SO_T_TUE = Regular Shift From
Selection Text: SO_T_THU = Regular Shift From
Selection Text: SO_T_SUN = Regular Shift From
Selection Text: SO_T_SAT = Regular Shift From
Selection Text: SO_T_MON = Regular Shift From
Selection Text: SO_T_FRI = Regular Shift From
Selection Text: SO_OU = Perf. OU
Selection Text: SO_OPROM = Operating Room
Selection Text: SO_LSTG = Surg. Procedures
Selection Text: SO_ICDCO = Diagnosis (ICD)
Selection Text: SO_DRG = Diagnoses (DRG)
Selection Text: SO_DAT = Analysis Date
Selection Text: SO_CASET = Case Type
Selection Text: P_ZMRK = Time Stamp
Selection Text: P_WED = Wednesday
Selection Text: P_T_WED = Late Shift Until





Selection Text: P_T_TUE = Late Shift Until
Title: Surgery Time Stamp Statistics
Text Symbol: 126 = TS End
Text Symbol: 127 = Operating Room
Text Symbol: 128 = Only Main Procedures
Text Symbol: 129 = Secondary Surgeries
Text Symbol: 130 = Diagnosis (ICD)
Text Symbol: 131 = Date
Text Symbol: 132 = Weekday
Text Symbol: 134 = W/o Shift
Text Symbol: 135 = DiagText
Text Symbol: 136 = Diagnosis Text
Text Symbol: 137 = DRG_Text
Text Symbol: 138 = DRG
Text Symbol: 139 = DRG_Code
Text Symbol: 210 = Inpatient
Text Symbol: 211 = Day Patient
Text Symbol: 212 = Outpatient
Text Symbol: 214 = BU Ctgry
Text Symbol: 215 = Diagnosis (DRG)
Text Symbol: 086 = Late Shift
Text Symbol: 084 = Regular Shift
Text Symbol: 083 = Reg. Shift
Text Symbol: 065 = Time Stamp End Date
Text Symbol: 064 = End Date
Text Symbol: 063 = Time Stamp Start Date
Text Symbol: 062 = Start Date
Text Symbol: 061 = Patient Name
Text Symbol: 060 = PatName
Text Symbol: 056 = Procedure Text
Text Symbol: 055 = Procedure Text
Text Symbol: 054 = Procedure Text
Text Symbol: 053 = Procedure
Text Symbol: 052 = Op.Room
Text Symbol: 051 = End of Time Stamps
Text Symbol: 050 = Start of Time Stamps
Text Symbol: 047 = Without Shift Times
Text Symbol: 028 = Time Stamp End Time
Text Symbol: 027 = End Time





Text Symbol: 026 = Time Stamp Start Time
Text Symbol: 025 = Start Time
Text Symbol: 023 = Evaluation Variants
Text Symbol: 022 = Group By
Text Symbol: 021 = Selection Options
Text Symbol: 020 = Personnel Shift Times
Text Symbol: 015 = Procedure
Text Symbol: 014 = Org. Unit
Text Symbol: 012 = Group By
Text Symbol: 003 = Time Stamp
Text Symbol: 125 = TS Start
Text Symbol: 124 = Public Holiday
Text Symbol: 123 = F
Text Symbol: 122 = without
Text Symbol: 121 = No Shift Times Defined
Text Symbol: 120 = Not Included
Text Symbol: 119 = Included
Text Symbol: 118 = Plant Calendar
Text Symbol: 117 = Shift Type
Text Symbol: 116 = Procedure
Text Symbol: 115 = Case Type
Text Symbol: 114 = All
Text Symbol: 113 = Sunday
Text Symbol: 112 = Saturday
Text Symbol: 111 = Friday
Text Symbol: 110 = Thursday
Text Symbol: 109 = Wednesday
Text Symbol: 108 = Tuesday
Text Symbol: 107 = Monday
Text Symbol: 106 = )
Text Symbol: 105 = (
Text Symbol: 104 = Evaluation Period
Text Symbol: 096 = Surgeries Mean Value
Text Symbol: 095 = Surgery Mean Value
Text Symbol: 094 = Mean Value
Text Symbol: 092 = Number Sg
Text Symbol: 091 = On-Call
Text Symbol: 089 = On-Call
Text Symbol: 087 = Late Shift



INCLUDES used within this REPORT RN2LOP02

INCLUDE RN2LOP_DATA.


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_READ_NBEW CALL FUNCTION 'ISH_N2_READ_NBEW' EXPORTING ss_einri = gs_pos-einri ss_falnr = gs_pos-falnr ss_lfdnr = gs_pos-movenum IMPORTING ss_nbew = s_nbew EXCEPTIONS not_found = 1.

ISHMED_OP_MONITOR * CALL FUNCTION 'ISHMED_OP_MONITOR' * EXPORTING * i_nbew = s_nbew.

ISH_AUTH_CHECK_REPORT_GROUP CALL FUNCTION 'ISH_AUTH_CHECK_REPORT_GROUP' EXPORTING repid = sy-repid repgroup = 'N_2_OP' no_message = off IMPORTING rc = rc EXCEPTIONS OTHERS = 1.

ISH_EINRI_CHECK CALL FUNCTION 'ISH_EINRI_CHECK' EXPORTING ss_einri = p_einri IMPORTING ss_tn01 = tn01 EXCEPTIONS OTHERS = 1.

ISHMED_SELECT_OE_WITH_PARAM CALL FUNCTION 'ISHMED_SELECT_OE_WITH_PARAM' EXPORTING i_einri = p_einri i_msg = '' "RDuerr, MED-40019 i_datum = so_dat-low "Ba OP383/1 6.04/7

ISH_READ_NBAU CALL FUNCTION 'ISH_READ_NBAU' EXPORTING SS_BAUID = gs_so_oprom-low IMPORTING SS_NBAU = gs_nbau * SS_BKURZ = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

ISH_READ_NBAU CALL FUNCTION 'ISH_READ_NBAU' EXPORTING SS_BAUID = gs_so_oprom-high IMPORTING SS_NBAU = gs_nbau * SS_BKURZ = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

ISH_EINRI_CHECK CALL FUNCTION 'ISH_EINRI_CHECK' EXPORTING ss_einri = p_einri IMPORTING ss_tn01 = tn01 EXCEPTIONS OTHERS = 1.

ISHMED_CHECK_N_EINR_REP CALL FUNCTION 'ISHMED_CHECK_N_EINR_REP' EXPORTING repid = sy-repid einri = p_einri no_message = ' ' messagetype = 'S' auto_leave = ' ' IMPORTING rc = return_code.

ISH_GET_DAY_OF_WEEK CALL FUNCTION 'ISH_GET_DAY_OF_WEEK' EXPORTING date = -bwidt IMPORTING day = l_day.

ISH_N2_READ_OPZEITEN CALL FUNCTION 'ISH_N2_READ_OPZEITEN' EXPORTING ss_ankerleistung = -lnrls TABLES ss_zeiten = gt_n2zeiten EXCEPTIONS no_ankerleistung = 1 no_zeitpunkt = 2 zeitpunkt_not_defined = 3 OTHERS = 4.

ISH_READ_NORG CALL FUNCTION 'ISH_READ_NORG' EXPORTING EINRI = p_einri orgid = -ou IMPORTING NORG_E = gs_r_norg * ORGKB_E = EXCEPTIONS "Ba OP453 MISSING_ORGID = 1 OTHERS = 2.

ISH_NPAT_CONCATENATE CALL FUNCTION 'ISH_NPAT_CONCATENATE' EXPORTING ss_einri = -einri ss_patnr = -patnr ss_read_npat = on IMPORTING ss_pname = pname.

ISH_NPAT_CONCATENATE CALL FUNCTION 'ISH_NPAT_CONCATENATE' EXPORTING ss_einri = -einri ss_patnr = -patnr ss_read_npat = on IMPORTING ss_pname = pname.

ISH_DYNP_VALUES_READ CALL FUNCTION 'ISH_DYNP_VALUES_READ' EXPORTING dyname = l_repid dynumb = l_dynnr TABLES dynpfields = gt_dynpfields.

CONVERT_DATE_TO_INTERNAL call function 'CONVERT_DATE_TO_INTERNAL' exporting date_external = gs_dynpfields-fieldvalue accept_initial_date = on importing date_internal = gs_so_dat-low exceptions date_external_is_invalid = 1 others = 2.

CONVERT_DATE_TO_INTERNAL call function 'CONVERT_DATE_TO_INTERNAL' exporting date_external = gs_dynpfields-fieldvalue accept_initial_date = on importing date_internal = gs_so_dat-high exceptions date_external_is_invalid = 1 others = 2.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = p_einri IMPORTING OUTPUT = p_einri.

ISHMED_SELECT_OE_WITH_PARAM CALL FUNCTION 'ISHMED_SELECT_OE_WITH_PARAM' EXPORTING i_einri = p_einri i_msg = '' "RDuerr, MED-40019 i_datum = so_dat-low "Ba OP383/1 6.04/7

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'ZPID' * dynpprog = 'RN2LOP02' dynpprog = sy-repid window_title = text-003 value_org = 'S' TABLES value_tab = lt_in2ztpdef return_tab = lt_return EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING * DDIC_STRUCTURE = ' ' retfield = 'BAUTY' * PVALKEY = ' ' dynpprog = 'RN2LOP03 ' * DYNPNR = ' ' * DYNPROFIELD = ' ' * STEPL = 0 * WINDOW_TITLE = * VALUE = ' ' value_org = 'S' * MULTIPLE_CHOICE = ' ' * DISPLAY = ' ' * CALLBACK_PROGRAM = ' ' * CALLBACK_FORM = ' ' * MARK_TAB = * IMPORTING * USER_RESET = TABLES value_tab = lt_tn11c * FIELD_TAB = return_tab = lt_return * DYNPFLD_MAPPING = EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3 .

ISH_SAP_OM_CHECK_ACTIVE CALL FUNCTION 'ISH_SAP_OM_CHECK_ACTIVE' IMPORTING e_status = l_status EXCEPTIONS not_active = 1 OTHERS = 2.

ISH_GRAPHIC_ORGID_SELECT CALL FUNCTION 'ISH_GRAPHIC_ORGID_SELECT' EXPORTING EINRI = P_einri GRAPH_TITLE = text-052 LOEKZ = ' ' NO_BAUID = ' ' IMPORTING SELECTED_BAUID = p_oproom EXCEPTIONS BAUID_NOT_IN_NBAU = 1 EINRI_NOT_IN_TN01 = 2 NO_HIERARCHY = 3 ORGID_NOT_IN_NORG = 4 OTHERS = 5.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'BAUID' dynpprog = 'RN2LOP03' window_title = text-052 value_org = 'S' TABLES value_tab = lt_nbau return_tab = lt_return EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

ISH_SHOW_DIAGNOSEN CALL FUNCTION 'ISH_SHOW_DIAGNOSEN' EXPORTING * SS_COL = '10' * SS_DKAT = ' ' SS_EINRI = p_einri * SS_ORGID = ' ' * SS_ROW = '5' * SS_EWDIA = ' ' * SS_SELMOD = 'UPD' * SS_FALNR = IMPORTING * SS_SEL_DKAT = SS_SEL_DKEY = p_so_icdco * SS_SEL_NKDI = .

HOLIDAY_GET CALL FUNCTION 'HOLIDAY_GET' EXPORTING holiday_calendar = l_hol_cal factory_calendar = l_kh_cal date_from = l_date_b date_to = l_date_e IMPORTING year_of_valid_from = l_valid_yearb year_of_valid_to = l_valid_yeare TABLES holidays = lt_holiday EXCEPTIONS factory_calendar_not_found = 1 holiday_calendar_not_found = 2 date_has_invalid_format = 3 date_inconsistency = 4 OTHERS = 5.

ISH_CALL_LIST_HEAD CALL FUNCTION 'ISH_CALL_LIST_HEAD' EXPORTING einri = l_einri line_size = 5 repid = l_repid uline = off display = off IMPORTING r_form = p_rcl_form.

ISHMED_RANGE_TO_STRING_DATUM CALL FUNCTION 'ISHMED_RANGE_TO_STRING_DATUM' EXPORTING i_length = 60 TABLES ranges_tab = so_dat CHANGING c_string = p_datastring EXCEPTIONS ex_invalid_range = 1 OTHERS = 2.

ISHMED_RANGE_TO_STRING CALL FUNCTION 'ISHMED_RANGE_TO_STRING' EXPORTING i_length = 60 TABLES ranges_tab = so_zmrk CHANGING c_string = p_zmrkstring EXCEPTIONS ex_invalid_range = 1 OTHERS = 2.

ISHMED_RANGE_TO_STRING CALL FUNCTION 'ISHMED_RANGE_TO_STRING' EXPORTING i_length = 60 TABLES ranges_tab = so_ou CHANGING c_string = p_oustring EXCEPTIONS ex_invalid_range = 1 OTHERS = 2.

ISHMED_RANGE_TO_STRING CALL FUNCTION 'ISHMED_RANGE_TO_STRING' EXPORTING i_length = 60 TABLES ranges_tab = so_oprom CHANGING c_string = p_oproomstring EXCEPTIONS ex_invalid_range = 1 OTHERS = 2.

ISHMED_RANGE_TO_STRING CALL FUNCTION 'ISHMED_RANGE_TO_STRING' EXPORTING i_length = 60 TABLES ranges_tab = so_caset CHANGING c_string = p_falastring EXCEPTIONS ex_invalid_range = 1 OTHERS = 2.

ISHMED_RANGE_TO_STRING CALL FUNCTION 'ISHMED_RANGE_TO_STRING' EXPORTING i_length = 60 TABLES ranges_tab = so_lstg CHANGING c_string = p_procstring EXCEPTIONS ex_invalid_range = 1 OTHERS = 2.

ISHMED_RANGE_TO_STRING CALL FUNCTION 'ISHMED_RANGE_TO_STRING' EXPORTING i_length = 60 TABLES ranges_tab = so_icdco CHANGING c_string = p_icdstring EXCEPTIONS ex_invalid_range = 1 OTHERS = 2.

ISHMED_RANGE_TO_STRING CALL FUNCTION 'ISHMED_RANGE_TO_STRING' EXPORTING i_length = 60 TABLES ranges_tab = so_drg CHANGING c_string = p_drgstring EXCEPTIONS ex_invalid_range = 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 RN2LOP02 or its description.