SAP Reports / Programs

RN2LN209 SAP ABAP Report - Initializes a Winword Document Category on a PC







RN2LN209 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Initializes a Winword document category in a PC After entering the institution, document category and version, the entries stored there will be initialized in the PC...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 RN2LN209 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 RN2LN209. "Basic submit
SUBMIT RN2LN209 AND RETURN. "Return to original report after report execution complete
SUBMIT RN2LN209 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: L_FLAG = Flag
Selection Text: L_EINRI = Institution
Selection Text: L_DTVERS = Document Version
Selection Text: L_DTID = Document Category
Title: Initializes a Winword Document Category on a PC
Text Symbol: 030 = Version:
Text Symbol: 021 = Bytes
Text Symbol: 020 = ---> Overwrite local files in the file system
Text Symbol: 019 = (Y)es or (N)o
Text Symbol: 018 = Overwrite local files on the PC?
Text Symbol: 017 = ---> OK, transfer file to the file system
Text Symbol: 016 = ---> Warning, file does not exist locally in the file system
Text Symbol: 015 = ---> OK, file exists locally in file system with:
Text Symbol: 014 = ---> error: does not exist in the database
Text Symbol: 013 = at
Text Symbol: 012 = Bytes, Dated:
Text Symbol: 011 = ---> OK, exists in the database and has:
Text Symbol: 010 = 2nd DOT Document Example:
Text Symbol: 009 = 1st DOT Document Template:
Text Symbol: 008 = Document Category:
Text Symbol: 007 = Institution:
Text Symbol: 006 = Settings for:
Text Symbol: 005 = Specified code could not be found:
Text Symbol: 004 = Version
Text Symbol: 003 = Document Category
Text Symbol: 002 = Institution
Text Symbol: 001 = Enter the settings for a document category and version!


INCLUDES used within this REPORT RN2LN209

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_GUI_FILE_EXIST CALL FUNCTION 'ISH_N2_GUI_FILE_EXIST' EXPORTING ss_filename = file_name EXCEPTIONS not_exist = 1 OTHERS = 2.

WS_QUERY * CALL FUNCTION 'WS_QUERY' * EXPORTING ** ENVIRONMENT = ' ' * FILENAME = file_name * QUERY = 'FE' ** WINID = ' ' * IMPORTING * RETURN = file_exist_flag.

ISH_N2_GET_FILE_INFO CALL FUNCTION 'ISH_N2_GET_FILE_INFO' EXPORTING ss_filename = file_name IMPORTING ss_filesize = l_file_size * SS_VERSION = EXCEPTIONS error = 1 OTHERS = 2.

GUI_GET_FILE_INFO * call function 'GUI_GET_FILE_INFO' * exporting * fname = file_name * importing * file_size = l_file_size.

ISH_N2_GET_N2DOCTEMPLATE CALL FUNCTION 'ISH_N2_GET_N2DOCTEMPLATE' EXPORTING * SS_EINRI = * SS_DTID = * SS_DTVERS = ss_filename = file_name ss_download = 'X' * IMPORTING * SS_LENGTH = * TABLES * SS_RAW = EXCEPTIONS not_found = 1 OTHERS = 2 .



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