SAP Reports / Programs

RNHCO013 SAP ABAP Report - HCO: Statistical Key Figures for Case-Based Orders







RNHCO013 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 used to calculate statistical key figures for case-based orders and to transfer these values to Controlling...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 RNHCO013 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

NCON - HCO: Stat. Key Figs (Case-Bsd Ord.)


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 RNHCO013. "Basic submit
SUBMIT RNHCO013 AND RETURN. "Return to original report after report execution complete
SUBMIT RNHCO013 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: R_FALNR = Case
Selection Text: PERIOD = Period
Selection Text: KZRANGE = Statistical Key Figure
Selection Text: JAHR = Fiscal Year
Title: HCO: Statistical Key Figures for Case-Based Orders
Text Symbol: U08 = First Visit Date
Text Symbol: U07 = Include Canceled Cases and Movements
Text Symbol: U06 = Discharged Cases Only
Text Symbol: U05 = Discharge Date
Text Symbol: U04 = Admission Date
Text Symbol: U03 = Selection by Case
Text Symbol: U02 = for Case-Based Orders
Text Symbol: U01 = Statistical Key Figures
Text Symbol: S05 = Test Mode
Text Symbol: S04 = To
Text Symbol: S03 = Comparison Period
Text Symbol: S02 = Evaluation Period
Text Symbol: S01 = Institution
Text Symbol: F01 = Error Log
Text Symbol: E02 = No cases match selection criteria.
Text Symbol: E01 = Cannot determine key figures to be calculated:
Text Symbol: B03 = Additional Selection Criteria
Text Symbol: B02 = Outpatient Cases
Text Symbol: B01 = Inpatient Cases
Text Symbol: 001 = Test Mode


INCLUDES used within this REPORT RNHCO013

INCLUDE RNSSTABL.
INCLUDE RNHCOT01.
INCLUDE RNLALV01.
INCLUDE RNSSEINR.
INCLUDE RNSSIEIN.
INCLUDE RNSSSPBO.
INCLUDE RNSSSEIN.


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_OUTPATIENT_ACTIVE CALL FUNCTION 'ISH_OUTPATIENT_ACTIVE' IMPORTING e_active = l_outpatient_active.

ISH_COUNTRY_VERSION_GET CALL FUNCTION 'ISH_COUNTRY_VERSION_GET' IMPORTING ss_cvers = cvers EXCEPTIONS OTHERS = 1.

ISH_GET_DATE_OF_PERIOD CALL FUNCTION 'ISH_GET_DATE_OF_PERIOD' EXPORTING einri = se_einri gjahr = jahr period = period IMPORTING kokrs = kokrs begdt = ausbegdt enddt = ausenddt EXCEPTIONS no_bukrs_found = 01 no_gvar_found = 02 no_tka02_found = 03 no_tn01_found = 04.

CO_PERIOD_BLOCKING_CHECK CALL FUNCTION 'CO_PERIOD_BLOCKING_CHECK' EXPORTING gjahr = jahr kokrs = kokrs perab = old_perio perbi = old_perio versn = versn vrgng = vrgng EXCEPTIONS vrgng_blocked = 01.

ISH_CASE_VALUE_REQUEST CALL FUNCTION 'ISH_CASE_VALUE_REQUEST' EXPORTING ss_einri = se_einri ss_vcode = update IMPORTING ss_falnr = r_falnr-low.

ISH_CASE_VALUE_REQUEST CALL FUNCTION 'ISH_CASE_VALUE_REQUEST' EXPORTING ss_einri = se_einri ss_vcode = update IMPORTING ss_falnr = r_falnr-high.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = rnstat-repid i_callback_pf_status_set = 'PF_STATUS' i_callback_user_command = 'USER_COMMAND' * I_STRUCTURE_NAME = is_layout = gs_layout it_fieldcat = xfield * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' is_variant = gs_variant it_events = gt_events[] * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = liste EXCEPTIONS program_error = 1 OTHERS = 2.

ISH_CALL_LIST_HEAD CALL FUNCTION 'ISH_CALL_LIST_HEAD' EXPORTING einri = se_einri ausbegdt = rnstat-ausbegdt ausenddt = rnstat-ausenddt verbegdt = rnstat-verbegdt verenddt = rnstat-verenddt title_lin1 = rnstat-title_lin1 title_lin2 = rnstat-title_lin2 line_size = rnstat-line_size repid = rnstat-repid uline = off EXCEPTIONS OTHERS = 1.

ISH_DISTRIBUTE_STATISTICAL_RAT CALL FUNCTION 'ISH_DISTRIBUTE_STATISTICAL_RAT' EXPORTING auftraege = on * BELEGDATUM = SY-DATUM buchungsdatum = $enddt einri = $einri event = event geschaeftsjahr = $jahr periode = $perio * TMODE = 'E' * TUPDATE = 'A' TABLES sktab = $sktab EXCEPTIONS no_bukrs_found = 1 no_configuration_found = 2 no_tka02_found = 3 no_tn01_found = 4 external_error = 5 OTHERS = 6.

ISH_PRINT_PROTOCOL_BATCH CALL FUNCTION 'ISH_PRINT_PROTOCOL_BATCH' EXPORTING line_size = lsize minutes_title = 'Fehlerprotokoll'(f01) repid = repid new_section = on EXCEPTIONS no_messages = 01.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING object = 'Fehlerprotokoll'(f01) show_linno = ' ' EXCEPTIONS inconsistent_range = 01 no_messages = 02.

MESSAGES_INITIALIZE * call function 'MESSAGES_INITIALIZE'.



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 RNHCO013 or its description.