RN2LOP05 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Utilization statistics provide an overview of surgery durations in relation to the opening times of the operating rooms or the shifts of the personnel...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 RN2LOP05 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_BAUTY = Op. Room Building Category
Selection Text: P_CAL = Include Plant Calendar
Selection Text: P_DURAT = Total Duration
Selection Text: P_EINRI = Institution
Selection Text: P_FRI = Friday
Selection Text: P_LATE = Late Shift
Selection Text: P_MON = Monday
Selection Text: P_NORM = Normal Time
Selection Text: P_OE = Department
Selection Text: P_OP = Operating Room
Selection Text: P_RBROOM = Opening Hours
Selection Text: P_REG = Regular Shift
Selection Text: P_REST = Remaining Time
Selection Text: P_SAT = Saturday
Selection Text: P_SHIFT = Personnel Shift Times
Selection Text: P_STAND = On-Call
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: SO_ZMRK = Time Stamp for Surg.
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_DAT = Evaluation Period
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
Selection Text: P_T_THU = Late Shift Until
Selection Text: P_T_SUN = Late Shift Until
Selection Text: P_T_SAT = Late Shift Until
INCLUDE RN2LOP_DATA.
No SAP DATABASE tables are accessed within this REPORT code!
ISH_N2_READ_NBEW CALL FUNCTION 'ISH_N2_READ_NBEW' EXPORTING ss_einri = gs_posshift-einri ss_falnr = gs_posshift-falnr ss_lfdnr = gs_posshift-movenum IMPORTING ss_nbew = s_nbew EXCEPTIONS not_found = 1.
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 =
-DATUM 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.
ISHMED_SELECT_OE_WITH_PARAM CALL FUNCTION 'ISHMED_SELECT_OE_WITH_PARAM' EXPORTING i_einri = p_einri i_msg = '' "RDuerr, MED-40019 I_SPERR_CHECK = ' ' i_popup = off TABLES e_norg = gt_r_norg i_n1orgpar = gt_n1orgpar EXCEPTIONS "#EC * cancel = 01 not_found = 02.
ISHMED_PLANDISP_OBJEKTE CALL FUNCTION 'ISHMED_PLANDISP_OBJEKTE' EXPORTING i_einri = p_einri i_orgid =
-orgid i_datvo = gs_so_dat-low i_datbi = gs_so_dat-high i_bau_valid_interval = off TABLES ta_n1pob = gt_sn1pob ta_n1vfz = gt_sn1vfz EXCEPTIONS OTHERS = 1.
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 ** DDIC_STRUCTURE = ' ' * retfield = 'BAUTY' ** PVALKEY = ' ' * dynpprog = 'Z_GS_AUSLAST' ** 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-014 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-014 value_org = 'S' TABLES value_tab = lt_nbau 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 retfield = 'ZPID' * dynpprog = 'RN2LOP03' 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.
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.
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_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.
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 RN2LOP05 or its description.