RNUNBEWD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program reorganizes the table containing case-related movements by physically deleting cancelled movements in the database...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 RNUNBEWD 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_TEST = Test Mode
Selection Text: P_SDATE = Date of Movement
Selection Text: P_PATNR = Patient
Selection Text: P_ORGPF = Nursing OU
Selection Text: P_ORGFA = Departmental OU
Selection Text: P_FALNR = Case
Title: IS-H: Delete Canceled Movements
Text Symbol: MM0 = Report not released under IS-H*MED
Text Symbol: P01 = Institution
Text Symbol: P02 = Patient
Text Symbol: P03 = Organizational Unit
Text Symbol: P04 = Test Mode (no DB Changes)
Text Symbol: P05 = Extended Log
Text Symbol: P06 = Ext.Svce
Text Symbol: P07 = To
Text Symbol: R01 = Deleted data records:
Text Symbol: R02 = Deleted movements:
Text Symbol: R03 = Deleted/changed diagnoses:
Text Symbol: R04 = Deleted/changed medical records:
Text Symbol: R05 = Deleted/changed case-to-person asgmt:
Text Symbol: R06 = Deleted/changed services:
Text Symbol: R07 = Deleted/changed provisional appointments:
Text Symbol: R08 = Deleted/changed movement-to-IV/certif.asgmt
Text Symbol: R22 = Movements to be deleted
Text Symbol: R23 = No changes are made to the database in test mode!
Text Symbol: S01 = Institution
Text Symbol: T00 = Selection
Text Symbol: T01 = Options
Text Symbol: T02 = Record Sel.
Text Symbol: 000 = *** No data records match your selection ***
Text Symbol: 200 = Input Help: OU
Text Symbol: G01 = M
Text Symbol: G02 = F
Text Symbol: G03 = U
Text Symbol: H00 = Movements deleted
Text Symbol: H01 = Case
Text Symbol: H02 = Patient Name
Text Symbol: H03 = Sex
INCLUDE RNSSEINR.
No SAP DATABASE tables are accessed within this REPORT code!
ISH_AUTH_CHECK_REPORT_EINRI CALL FUNCTION 'ISH_AUTH_CHECK_REPORT_EINRI' EXPORTING repid = repid einri = se_einri messagetype = 'E' IMPORTING rc = rc EXCEPTIONS OTHERS = 1.
ISH_READ_NPAT CALL FUNCTION 'ISH_READ_NPAT' EXPORTING ss_einri = einri ss_patnr = patnr IMPORTING ss_npat = $npat EXCEPTIONS not_found = 01 no_authority = 02.
ISH_NPAT_CONCATENATE CALL FUNCTION 'ISH_NPAT_CONCATENATE' EXPORTING * SS_EINRI = '*' ss_patnr = $npat-patnr * SS_READ_NPAT = ' ' ss_npat = $npat ss_npat_complete = 'X' * SS_LIST = ' ' IMPORTING ss_pname = name EXCEPTIONS OTHERS = 0.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = dyn_einri IMPORTING output = dyn_einri EXCEPTIONS OTHERS = 0.
ISH_SHOW_LIST_PATIENT CALL FUNCTION 'ISH_SHOW_LIST_PATIENT' EXPORTING anfo = on vcode = 'DIS' npat_einri = dyn_einri IMPORTING npat_patnr = help_patnr storno_selected = storno_selected weiter = weiter EXCEPTIONS OTHERS = 1.
ISH_GRAPHIC_ORGID_SELECT CALL FUNCTION 'ISH_GRAPHIC_ORGID_SELECT' EXPORTING date = sy-datum einri = einri freig = on graph_title = 'Eingabehilfe: OE'(200) no_bauid = off pfzuw = pfleg sperr = off IMPORTING selected_orgid = $oe.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = dyn_einri IMPORTING output = dyn_einri EXCEPTIONS OTHERS = 0.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = dyn_patnr IMPORTING output = dyn_patnr EXCEPTIONS OTHERS = 0.
ISH_SHOW_LIST_FALL CALL FUNCTION 'ISH_SHOW_LIST_FALL' EXPORTING nfal_einri = dyn_einri nfal_patnr = dyn_patnr popup = on repid = sy-repid vcode = 'DIS' IMPORTING nfal_falnr = help_falnr select_nfal = select_nfal storno_selected = storno_selected weiter = weiter EXCEPTIONS pat_not_found = 1 repid_missing = 2 OTHERS = 3.
ISH_DYNP_VALUES_READ CALL FUNCTION 'ISH_DYNP_VALUES_READ' EXPORTING dyname = dyname dynumb = dynumb TABLES dynpfields = idynpread.
ISH_READ_NPAT CALL FUNCTION 'ISH_READ_NPAT' EXPORTING ss_einri = $einri ss_patnr = $patnr IMPORTING ss_npat = $npat EXCEPTIONS not_found = 01 no_authority = 02.
DELETE_TEXT CALL FUNCTION 'DELETE_TEXT' EXPORTING object = text_textobject id = text_textid name = text_textname language = sy-langu EXCEPTIONS not_found = 8.
COMMIT_TEXT CALL FUNCTION 'COMMIT_TEXT'.
ISH_READ_NPAT_MULTI CALL FUNCTION 'ISH_READ_NPAT_MULTI' EXPORTING it_npat_pk = lt_patnr i_read_db = on i_einri = se_einri IMPORTING et_npat = lt_npat.
ISH_VERBUCHER_NFAL CALL FUNCTION 'ISH_VERBUCHER_NFAL' IN UPDATE TASK EXPORTING o_tnfal = nfal tcode = tcode tnfal = nfal upd_icdtxt_nfal = upd_icdtxt_nbew up_date = sy-datum up_time = sy-uzeit vcode_nfal = space TABLES icdtxt_nfal = icdtxt_nbew nbewtab = nbewtab xnbew = xnbew ynbew = ynbew.
ISH_VERBUCHER_NLEI * CALL FUNCTION 'ISH_VERBUCHER_NLEI' IN UPDATE TASK * EXPORTING * DATUM = SY-DATUM * TCODE = TCODE * UNAME = SY-UNAME * UPD_HCO = SPACE * UZEIT = SY-UZEIT * TABLES * XNLEI = XNLEI * YNLEI = YNLEI * EXCEPTIONS * OTHERS = 1.
ISH_NPAT_CONCATENATE CALL FUNCTION 'ISH_NPAT_CONCATENATE' EXPORTING * SS_EINRI = '*' ss_patnr = npat-patnr * SS_READ_NPAT = ' ' SS_NPAT = npat ss_npat_complete = off * SS_LIST = ' ' IMPORTING ss_pname = name EXCEPTIONS OTHERS = 0.
ISH_VERBUCHER_NDIA CALL FUNCTION 'ISH_VERBUCHER_NDIA' IN UPDATE TASK EXPORTING tcode = tcode upd_icdtxt = upd_icdtxt_ndia upd_ndia = 'X' up_date = sy-datum up_time = sy-uzeit TABLES icdtxt = icdtxt_ndia xndia = xndia yndia = yndia.
ISH_VERBUCHER_NDOC CALL FUNCTION 'ISH_VERBUCHER_NDOC' IN UPDATE TASK TABLES t_ndoc = yndoc.
ISH_VERBUCHER_NFPZ CALL FUNCTION 'ISH_VERBUCHER_NFPZ' "in update task EXPORTING tcode = tcode upd_icdtxt = upd_icdtxt_nfpz upd_nfpz = 'X' up_date = sy-datum up_time = sy-uzeit TABLES icdtxt = icdtxt_nfpz xnfpz = xnfpz ynfpz = ynfpz.
ISH_VERBUCHER_NAPP CALL FUNCTION 'ISH_VERBUCHER_NAPP' IN UPDATE TASK EXPORTING ss_datum = sy-datum ss_uname = sy-uname ss_spras = sy-langu TABLES ss_napp_mod = ynapp.
ISH_VERBUCHER_NBKZ CALL FUNCTION 'ISH_VERBUCHER_NBKZ' IN UPDATE TASK EXPORTING tcode = tcode upd_nbkz = 'X' up_date = sy-datum up_time = sy-uzeit TABLES xnbkz = xnbkz ynbkz = ynbkz.
ISH_CALL_LIST_HEAD CALL FUNCTION 'ISH_CALL_LIST_HEAD' EXPORTING * ausbegdt = sy-datum * AUSENDDT = '00000000' einri = se_einri line_size = 80 repid = repid title_lin1 = text-h00 title_lin2 = second_line uline = 'X' * VERBEGDT = '00000000' * VERENDDT = '00000000' EXCEPTIONS OTHERS = 0.
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 RNUNBEWD or its description.