RN2DOC_DELETE_ARCHIVED_DOC 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 report to delete archived documents from the SAP 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 RN2DOC_DELETE_ARCHIVED_DOC 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 = D .
Selection Text: R_ERDAT = D .
Selection Text: R_EINRI = D .
Selection Text: R_DTVERS = D .
Selection Text: R_DTID = D .
Selection Text: R_DOKVR = D .
Selection Text: R_DOKTL = D .
Selection Text: R_DOKNR = D .
Selection Text: R_DOKAR = D .
Selection Text: P_TEST = D .
Selection Text: P_PROD = D .
Selection Text: R_DOKST = Document Status (Internal)
Title: i.s.h.med: Delete Archived Documents
Text Symbol: T02 = The program is not released, but intended for internal use only.
Text Symbol: T01 = PLEASE NOTE:
Text Symbol: S10 = Archive Doc. Type
Text Symbol: S09 = Doc. Status (Int.)
Text Symbol: S08 = Doc. Category Vers.
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: B03 = Archive
Text Symbol: 001 = DocTyp
Text Symbol: 002 = DocNumber
Text Symbol: 003 = DocPt
Text Symbol: 004 = DocVr
Text Symbol: 005 = SeqDoc
Text Symbol: 006 = DocCat
Text Symbol: 007 = ChangeDate
Text Symbol: 008 = Error Message
Text Symbol: 009 = ERROR LOG: Cannot delete following documents
Text Symbol: 010 = TESTMODE: No documents were deleted
Text Symbol: 011 = PRODUCTIVEMODE: Documents were deleted
Text Symbol: 014 = Number of Selected Documents:
INCLUDE RNDATA00.
INCLUDE IN2DOC_CONST01.
No SAP DATABASE tables are accessed within this REPORT code!
SELECT_OPTIONS_RESTRICT * CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' * EXPORTING * program = g_repid * restriction = restrict * EXCEPTIONS * OTHERS = 0.
ISH_N2_ARCHIVE_DOC_DELETE CALL FUNCTION 'ISH_N2_ARCHIVE_DOC_DELETE' EXPORTING i_ndoc = wa_ndoc i_commit = commit EXCEPTIONS no_document = 1 not_archived = 2 err_cust = 3 OTHERS = 4.
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_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 RN2DOC_CORRECT_DRAW - Compare and Correct DPS Data with NDOC RN2DOC_CORRECT_DRAW - Compare and Correct DPS Data with NDOC