SAP Reports / Programs

RN2LN211 SAP ABAP Report - Relocation of Documents from the Database into a File System







RN2LN211 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for All documents that were created for an institution, document category and version will be transferred from the database into the file system...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 RN2LN211 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 RN2LN211. "Basic submit
SUBMIT RN2LN211 AND RETURN. "Return to original report after report execution complete
SUBMIT RN2LN211 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Relocation of documents from the database into a file system
Selection Text: L_PFAD = Target path
Selection Text: L_PC = PC or server
Selection Text: L_MODE = Test Mode
Selection Text: L_EINRI = Institution
Selection Text: L_DTVERS = Document Version
Selection Text: L_DTID = Document Category
Selection Text: L_DOCNR2 = Document number to
Selection Text: L_DOCNR1 = Document number from
Title: Relocation of Documents from the Database into a File System
Text Symbol: W15 = Docs with deletion indicators:
Text Symbol: W14 = Number of docs to be transfered:
Text Symbol: W13 = are being transf:
Text Symbol: W12 = Version:
Text Symbol: W11 = Doc. category:
Text Symbol: W10 = For institute:
Text Symbol: W07 = The docs were transf. to:
Text Symbol: W06 = of which not found:
Text Symbol: W05 = Number of documents transfered:
Text Symbol: W04 = .
Text Symbol: W03 = The docs were transf. to:
Text Symbol: W02 = of which not found:
Text Symbol: W01 = Number of documents transferred:
Text Symbol: E02 = No PC-type documents
Text Symbol: E01 = No documents available
Text Symbol: 011 = Document nos. to:
Text Symbol: 010 = Document nos. from:
Text Symbol: 007 = Test Mode
Text Symbol: 006 = PC transfer
Text Symbol: 005 = Directory for the documents
Text Symbol: 004 = IS-H*MED: Version Number
Text Symbol: 003 = IS-H*MED: Document Category ID
Text Symbol: 002 = IS-H: Institution
Text Symbol: 001 = Please specify the doc. category to be converted:


INCLUDES used within this REPORT RN2LN211

No INCLUDES are used within this REPORT code!


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_GET_CONTAINER_DOCUMENT CALL FUNCTION 'ISH_N2_GET_CONTAINER_DOCUMENT' EXPORTING ss_dokar = ndoc_table-dokar ss_doknr = ndoc_table-doknr ss_dokvr = ndoc_table-dokvr ss_doktl = ndoc_table-doktl IMPORTING ss_file_length = file_length_ishmed_doc TABLES ss_dokument_content = ishmed_doc EXCEPTIONS document_not_found = 1 OTHERS = 2.

ISH_N2_GUI_DOWNLOAD CALL FUNCTION 'ISH_N2_GUI_DOWNLOAD' EXPORTING ss_filename = file_name ss_filesize = file_length_ishmed_doc * SS_POPUP = ' ' * SS_FILETYPE = 'BIN' * SS_NOFILECHECK = ' ' * IMPORTING * SS_NEW_FILENAME = TABLES ss_data_tab = ishmed_doc EXCEPTIONS cancel = 1 OTHERS = 2 .

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * bin_filesize = file_length_ishmed_doc ** CODEPAGE = ' ' * filename = file_name * filetype = c_file_mode_bin ** MODE = ' ' ** WK1_N_FORMAT = ' ' ** WK1_N_SIZE = ' ' ** WK1_T_FORMAT = ' ' ** WK1_T_SIZE = ' ' ** COL_SELECT = ' ' ** COL_SELECTMASK = ' ' * IMPORTING * filelength = file_length_ishmed_doc * TABLES * data_tab = ishmed_doc ** FIELDNAMES = * EXCEPTIONS * file_open_error = 1 * file_write_error = 2 * invalid_filesize = 3 * invalid_table_width = 4 * invalid_type = 5 * no_batch = 6 * unknown_error = 7 * OTHERS = 8.



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