SAP Reports / Programs | Patient Management | SAP Healthcare - Industry-Specific Components for Hospitals | Patient Management(IS-H-PM) SAP IS

RNABSGEN SAP ABAP Report - IS-H: Generate Absences by Calendar







RNABSGEN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use the RNABSGEN program to have the system automatically generate absences for patients who interrupt their hospital stay on non-working days...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 RNABSGEN 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

NP94 - IS-H: Generate leave of absence


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 RNABSGEN. "Basic submit
SUBMIT RNABSGEN AND RETURN. "Return to original report after report execution complete
SUBMIT RNABSGEN 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: VERL = Error if Transfer in Abs. Per.
Selection Text: TXTEINRI = Institution Short Text
Selection Text: TESTM = Test Mode
Selection Text: TEILSTAT = Day Patient
Selection Text: STAT = Inpatient
Selection Text: SE_EINRI = Institution
Selection Text: RORGID = Organizational Units
Selection Text: RFALNR = Cases
Selection Text: ENTLAS = Discharged Cases Only
Selection Text: DATU = Keep 24:00
Selection Text: AUSENDDT = Evaluation Period End
Selection Text: AUSBEGDT = Evaluation Period Start
Selection Text: ABWENDZT = End Time
Selection Text: ABWENDGR = Return Reason
Selection Text: ABWBEGZT = Start Time
Selection Text: ABWBEGGR = Absence Reason
Title: IS-H: Generate Absences by Calendar
Text Symbol: S11 = Start Time
Text Symbol: S10 = Keep 24:00 as Start Time
Text Symbol: S09 = Error if transfer within absence period
Text Symbol: S08 = Settings
Text Symbol: S07 = Test Mode
Text Symbol: S06 = Absence
Text Symbol: S05 = Discharged Cases Only
Text Symbol: S04 = To
Text Symbol: S03 = CaseTypes
Text Symbol: S02 = Period
Text Symbol: S01 = Institution
Text Symbol: FEH = Error Msgs Issued by Absence Gen. Prog
Text Symbol: FE2 = (See Messages)
Text Symbol: FE1 = Number of Error Messages:
Text Symbol: 055 = No data found for your selection criteria
Text Symbol: 016 = Input Help: Org. Units
Text Symbol: 005 = Message
Text Symbol: 004 = Transfer takes place within the absence period: & &
Text Symbol: 003 = Absence exists already
Text Symbol: 002 = Case
Text Symbol: 001 = Absence from & & to & &





INCLUDES used within this REPORT RNABSGEN

INCLUDE RNSSTABL.
INCLUDE RNSDAT00.
INCLUDE RNSSEINR.
INCLUDE RNSSINIT.
INCLUDE RNSSSPBO.


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_AUTH_CHECK_REPORT_EINRI CALL FUNCTION 'ISH_AUTH_CHECK_REPORT_EINRI' EXPORTING repid = repid einri = se_einri no_message = off messagetype = 'E'.

ISH_HELP_REQUEST CALL FUNCTION 'ISH_HELP_REQUEST' EXPORTING ss_object = 'ISH_RNABSGEN_ABWBEGZT' ss_popup = on EXCEPTIONS OTHERS = 0.

ISH_HELP_REQUEST CALL FUNCTION 'ISH_HELP_REQUEST' EXPORTING ss_object = 'ISH_RNABSGEN_ABWENDZT' ss_popup = on EXCEPTIONS OTHERS = 0.

ISH_CASE_VALUE_REQUEST CALL FUNCTION 'ISH_CASE_VALUE_REQUEST' EXPORTING ss_einri = se_einri ss_vcode = 'UPD' IMPORTING ss_falnr = rfalnr-low.

ISH_CASE_VALUE_REQUEST CALL FUNCTION 'ISH_CASE_VALUE_REQUEST' EXPORTING ss_einri = se_einri ss_vcode = 'UPD' IMPORTING ss_falnr = rfalnr-high.

ISH_PRINT_PROTOCOL * CALL FUNCTION 'ISH_PRINT_PROTOCOL' * EXPORTING * line_size = rnstat-line_size * minutes_title = text-feh * repid = rnstat-repid.

ISH_GET_MOVEMENTS CALL FUNCTION 'ISH_GET_MOVEMENTS' EXPORTING ss_einri = se_einri ss_beginn = ausbegdt ss_ende = ausenddt ss_stat = stat ss_tstat = teilstat ss_ambu = off ss_ambu_bes = off ss_plan = on ss_buffer = off TABLES ss_falnr = rfalnr ss_vnbew = iv_nbew ss_fieldcat = fieldcat EXCEPTIONS OTHERS = 1.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING date = begdt factory_calendar_id = tag_tab-calen IMPORTING date = arbeitstag EXCEPTIONS OTHERS = 1.

ISH_ABSENCE_GENERATOR CALL FUNCTION 'ISH_ABSENCE_GENERATOR' EXPORTING i_einri = p_einri it_absences = lt_absence IMPORTING et_return = lt_return e_worst_msgty = l_retmaxtype.

ISH_CALL_LIST_HEAD * CALL FUNCTION 'ISH_CALL_LIST_HEAD' * EXPORTING * AUSBEGDT = RNSTAT-AUSBEGDT * AUSENDDT = RNSTAT-AUSENDDT * EINRI = SE_EINRI * LINE_SIZE = RNSTAT-LINE_SIZE * REPID = RNSTAT-REPID * ULINE = OFF * EXCEPTIONS * OTHERS = 1.

ISH_NPAT_CONCATENATE CALL FUNCTION 'ISH_NPAT_CONCATENATE' EXPORTING ss_einri = se_einri ss_patnr = conc_npat-patnr ss_npat = conc_npat ss_npat_complete = off IMPORTING ss_pname = pname.

MESSAGES_COUNT CALL FUNCTION 'MESSAGES_COUNT' IMPORTING count = tab_index.

ISH_PRINT_PROTOCOL_BATCH CALL FUNCTION 'ISH_PRINT_PROTOCOL_BATCH' EXPORTING line_size = rnstat-line_size minutes_title = text-feh repid = rnstat-repid new_section = on EXCEPTIONS OTHERS = 0.

ISH_GRAPHIC_ORGID_SELECT CALL FUNCTION 'ISH_GRAPHIC_ORGID_SELECT' EXPORTING einri = se_einri fazuw = off freig = on graph_title = 'Eingabehilfe: OrgEinheiten'(016) loekz = off no_bauid = off sperr = off IMPORTING nothing_selected = no_selected selected_orgid = pf4_value EXCEPTIONS OTHERS = 01.

ISH_CALL_LIST_HEAD CALL FUNCTION 'ISH_CALL_LIST_HEAD' EXPORTING ausbegdt = rnstat-ausbegdt ausenddt = rnstat-ausenddt einri = se_einri line_size = rnstat-line_size repid = rnstat-repid uline = off EXCEPTIONS OTHERS = 0.

ISH_PRINT_PROTOCOL CALL FUNCTION 'ISH_PRINT_PROTOCOL' EXPORTING line_size = rnstat-line_size minutes_title = text-feh repid = rnstat-repid.








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