SAP Reports / Programs

RN2DOC_DELETE_FROM_DB SAP ABAP Report - Delete Med. Documents from the Database







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


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





Text Symbol: 001 = DocTyp


INCLUDES used within this REPORT RN2DOC_DELETE_FROM_DB

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:

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.



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