RN2DOC_DELETE_FROM_DB is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this program to delete all data from the database for the documents selected...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 RN2DOC_DELETE_FROM_DB 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: R_UPDAT = Change Date
Selection Text: R_EINRI = D Institution
Selection Text: R_DTID = D Document Category ID
Selection Text: R_DOKVR = D Document Version
Selection Text: R_DOKTL = D Document Part
Selection Text: R_DOKNR = D Document
Selection Text: R_DOKAR = D Document Type
Selection Text: P_TEST = D Test Run (Log Only)
Selection Text: P_PROD = D Update Run (DB Changes)
Selection Text: P_CONT = D Delete Documents
Selection Text: P_ADMIN = D Reorganize Document Mgmt Data
Title: Delete Med. Documents from the Database
Text Symbol: S07 = Document Version
Text Symbol: S06 = Document Part Number
Text Symbol: S05 = Document Number
Text Symbol: S04 = Document Type
Text Symbol: S03 = Change Date
Text Symbol: S02 = Document Category
Text Symbol: S01 = Institution
Text Symbol: B04 = Also delete documents WITHOUT deletion indicators?
Text Symbol: B03 = Processing Option
Text Symbol: B02 = Processing Mode
Text Symbol: B01 = Selection Criteria
Text Symbol: 018 = Also Documents WITHOUT Deletion Indicators
Text Symbol: 017 = Processing Option: Delete Documents
Text Symbol: 016 = Processing Option: Reorganize Document Management Data
Text Symbol: 015 = Number of Deleted Documents:
Text Symbol: 014 = Number of Selected Documents:
Text Symbol: 012 = Messages:
Text Symbol: 011 = Processing Mode: UPDATE RUN, i.e. documents have been deleted.
Text Symbol: 010 = Processing Mode: TEST RUN, i.e. no documents have been deleted.
Text Symbol: 009 = Deleted Documents:
Text Symbol: 007 = ChangeDate
Text Symbol: 006 = DocCat
Text Symbol: 005 = With Document
Text Symbol: 004 = DocVr
Text Symbol: 003 = DocPt
Text Symbol: 002 = DocNumber
INCLUDE RNDATA00.
INCLUDE IN2DOC_CONST01.
No SAP DATABASE tables are accessed within this REPORT code!
ISH_N2_DOCUMENTS_DELETE_FROMDB CALL FUNCTION 'ISH_N2_DOCUMENTS_DELETE_FROMDB' EXPORTING im_apicontrol = apicontrol im_with_content = p_cont im_without_del_indicator = l_no_loekz IMPORTING ex_worst_msgty = worst_msgty ex_number_sel_docs = number_sel_docs ex_number_del_docs = number_del_docs TABLES ext_return = t_return filter_einri = r_einri filter_dtid = r_dtid filter_updat = r_updat filter_dokar = r_dokar filter_doknr = r_doknr filter_doktl = r_doktl filter_dokvr = r_dokvr ext_doc_delete = t_doc_delete.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RN2DOC_DELETE_FROM_DB - Delete Med. Documents from the Database RN2DOC_DELETE_FROM_DB - Delete Med. Documents from the Database RN2DOC_DELETE_ARCHIVED_DOC - i.s.h.med: Delete Archived Documents RN2DOC_DELETE_ARCHIVED_DOC - i.s.h.med: Delete Archived Documents RN2DOC_CREATE_LINK_ARCH_TEST - Test Program for Archive Interface RN2DOC_CREATE_LINK_ARCH_TEST - Test Program for Archive Interface