SAP Reports / Programs

RN2DOC_DELETE_ARCHIVED_DOC SAP ABAP Report - i.s.h.med: Delete Archived Documents







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


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 RN2DOC_DELETE_ARCHIVED_DOC. "Basic submit
SUBMIT RN2DOC_DELETE_ARCHIVED_DOC AND RETURN. "Return to original report after report execution complete
SUBMIT RN2DOC_DELETE_ARCHIVED_DOC 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: 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:





Text Symbol: 015 = Number of Deleted Documents:
Text Symbol: 016 = Number:
Text Symbol: 017 = Deleted Documents
Text Symbol: 018 = Documents were deleted
Text Symbol: 019 = Cannot delete documents
Text Symbol: 020 = Cannot execute program
Text Symbol: 021 = Following error messages occurred:
Text Symbol: 022 = Ty.
Text Symbol: 023 = Message Class
Text Symbol: 024 = No.
Text Symbol: 025 = Message
Text Symbol: B01 = Selection Criteria:
Text Symbol: B02 = Processing Mode


INCLUDES used within this REPORT RN2DOC_DELETE_ARCHIVED_DOC

INCLUDE RNDATA00.
INCLUDE IN2DOC_CONST01.


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:

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.



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