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

RNOCCUPANCY_SAVE SAP ABAP Report - IS-H: Save Occupancy Data of Institution as Extract







RNOCCUPANCY_SAVE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Save Occupancy Data of Institution as Extract...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 RNOCCUPANCY_SAVE 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 RNOCCUPANCY_SAVE. "Basic submit
SUBMIT RNOCCUPANCY_SAVE AND RETURN. "Return to original report after report execution complete
SUBMIT RNOCCUPANCY_SAVE 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: XUPDATE = Upate occupancy
Selection Text: XREBUILD = Re-determine occupancy
Selection Text: SE_EINRI = D Institution
Title: IS-H: Save Occupancy Data of Institution as Extract
Text Symbol: S01 = Institution
Text Symbol: 000 = Cannot determine occupancy.


INCLUDES used within this REPORT RNOCCUPANCY_SAVE

INCLUDE MNDATA_BOOL.
INCLUDE RNEXTRACT_DATA .
INCLUDE RNSSEINR.


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_SAP_OM_CHECK_ACTIVE CALL FUNCTION 'ISH_SAP_OM_CHECK_ACTIVE' EXCEPTIONS not_active = 1.

ISH_OM_OU_GET CALL FUNCTION 'ISH_OM_OU_GET' EXPORTING i_instn = se_einri i_add_cond_ou = ls_addcond_ou i_req_infty = ls_reqinfty IMPORTING et_norg = lt_norg EXCEPTIONS nothing_found = 0 internal_error = 0 OTHERS = 0.

ISH_OM_OU_GET CALL FUNCTION 'ISH_OM_OU_GET' EXPORTING i_instn = se_einri i_add_cond_ou = ls_addcond_ou i_req_infty = ls_reqinfty IMPORTING et_norg = lt_norg2 EXCEPTIONS nothing_found = 0 internal_error = 0 OTHERS = 0.

REUSE_ALV_EXTRACT_SAVE CALL FUNCTION 'REUSE_ALV_EXTRACT_SAVE' EXPORTING is_extract = gs_extract1 i_exp01 = no_lines_text i_exp02 = sy-datum i_exp03 = sy-uzeit TABLES it_exp01 = pt_occ_extract * EXCEPTIONS * WRONG_RELID = 1 * NO_REPORT = 2 * NO_EXNAME = 3 * NO_EXTRACT_CREATED = 4 * OTHERS = 5 .

REUSE_ALV_EXTRACT_AT_INIT *CALL FUNCTION 'REUSE_ALV_EXTRACT_AT_INIT' * EXPORTING * I_REPORT = 'OCCUPANCY' ** I_HANDLE = ** I_LOG_GROUP = ** I_USERNAME = * CHANGING * cs_extract1 = gs_extract1 * cs_extract2 = gs_extract2.

ISH_OCCUPYING_DATA_GET CALL FUNCTION 'ISH_OCCUPYING_DATA_GET' EXPORTING is_einri = se_einri is_date_from = p_start is_date_to = sy-datum TABLES et_occupying_data = pt_occ EXCEPTIONS ou_not_exist = 1 OTHERS = 2.

REUSE_ALV_EXTRACT_EXISTENCE CALL FUNCTION 'REUSE_ALV_EXTRACT_EXISTENCE' * IMPORTING * es_admin = gt_exadmin CHANGING cs_extract = gs_extract2 EXCEPTIONS not_found = 1.

REUSE_ALV_EXTRACT_LOAD CALL FUNCTION 'REUSE_ALV_EXTRACT_LOAD' EXPORTING is_extract = gs_extract2 TABLES et_exp01 = t_occ_extract CHANGING c_exp01 = no_lines_text c_exp02 = hlp_date c_exp03 = hlp_time EXCEPTIONS not_found = 1 wrong_relid = 2 no_report = 3 no_exname = 4 no_import_possible = 5 OTHERS = 6.

ISH_OCCUPYING_DATA_GET * CALL FUNCTION 'ISH_OCCUPYING_DATA_GET' * EXPORTING * is_einri = se_einri * is_orgid = p_orgid * is_date_from = p_start * is_date_to = sy-datum * TABLES * et_occupying_data = pt_occ * EXCEPTIONS * ou_not_exist = 1 * OTHERS = 2.

REUSE_ALV_EXTRACT_LOAD * CALL FUNCTION 'REUSE_ALV_EXTRACT_LOAD' * EXPORTING * is_extract = gs_extract2 * TABLES * et_exp01 = t_occ_extract * CHANGING * c_exp01 = no_lines_text * c_exp02 = hlp_date * c_exp03 = hlp_time * EXCEPTIONS * not_found = 1 * wrong_relid = 2 * no_report = 3 * no_exname = 4 * no_import_possible = 5 * OTHERS = 6.



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