SAP Reports / Programs

RSIR_CONTENT_TO_FILESYSTEM_NEW SAP ABAP Report - KPro: Transfer of contents to a file system for virus check







RSIR_CONTENT_TO_FILESYSTEM_NEW is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Transfer contents to a file system for virus checking Document contents are copied to a file system for virus checking...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 RSIR_CONTENT_TO_FILESYSTEM_NEW 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 RSIR_CONTENT_TO_FILESYSTEM_NEW. "Basic submit
SUBMIT RSIR_CONTENT_TO_FILESYSTEM_NEW AND RETURN. "Return to original report after report execution complete
SUBMIT RSIR_CONTENT_TO_FILESYSTEM_NEW 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: X_FORCE = Use of gateway data
Selection Text: X_FILFLG = Read in docs from list
Selection Text: S_USER = Last changed by
Selection Text: S_TIMST = Time of change
Selection Text: S_TA = Transport requests
Selection Text: SERVER = Server Names
Selection Text: P_TFILE = Name (+ path) of log file
Selection Text: P_TEST = Test mode (no transfer)
Selection Text: P_PHCL = D Document Class
Selection Text: P_MASK = Mask for document IDs
Selection Text: P_FDIR = File name (incl. path)
Selection Text: P_DOCSP = Document area
Selection Text: P_DIR = Target directory
Selection Text: GWSERVIC = Gateway service
Selection Text: GWHOST = Gateway host
Title: KPro: Transfer of contents to a file system for virus check
Text Symbol: 110 = Last changed by
Text Symbol: 109 = Changed on
Text Symbol: 108 = Transp. Requests
Text Symbol: 107 = System
Text Symbol: 106 = Local date
Text Symbol: 105 = Local time
Text Symbol: 104 = Mask for document IDs
Text Symbol: 103 = Mask for document area
Text Symbol: 102 = No. of components
Text Symbol: 101 = Number of incorrect documents (transport failed)
Text Symbol: 100 = Number of examined document components
Text Symbol: 006 = Test
Text Symbol: 005 = Use external document list
Text Symbol: 004 = Restricting definitions
Text Symbol: 003 = Default parameter for CLIENT RFC destination
Text Symbol: 002 = FTP destination for virus check
Text Symbol: 001 = HTTP destination for virus check
Text Symbol: 111 = File from which teh documents to be transferred are defined
Text Symbol: 112 = Test file for virus check


INCLUDES used within this REPORT RSIR_CONTENT_TO_FILESYSTEM_NEW

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:

RFC_READ_TCPIP_DESTINATION CALL FUNCTION 'RFC_READ_TCPIP_DESTINATION' EXPORTING destination = 'SAPKPROTP_GW' authority_check = space IMPORTING * METHOD = * program = ref_program server = server * TRACE = * DESCRIPTION = gwhost = gwhost gwservice = gwservic * TRFCBTCSUPPR = * TRFCBTCTRIES = * TRFCBTCDELAY = * DESTLOCK = EXCEPTIONS OTHERS = 0 .

RFC_READ_TCPIP_DESTINATION CALL FUNCTION 'RFC_READ_TCPIP_DESTINATION' EXPORTING destination = ref_rfc_destination authority_check = space IMPORTING * METHOD = program = ref_program server = ref_server * TRACE = * DESCRIPTION = gwhost = ref_gwhost gwservice = ref_gwservice * TRFCBTCSUPPR = * TRFCBTCTRIES = * TRFCBTCDELAY = * DESTLOCK = EXCEPTIONS OTHERS = 1 .

RFC_MODIFY_TCPIP_DESTINATION CALL FUNCTION 'RFC_MODIFY_TCPIP_DESTINATION' EXPORTING destination = new_rfc_destination action = 'M' "MODIFY authority_check = space method = 'E' program = program server = ref_server * TRACE = ' ' description = description gwhost = ref_gwhost gwservice = ref_gwservice * TRFCBTCSUPPR = ' ' * TRFCBTCTRIES = ' ' * TRFCBTCDELAY = ' ' * DESTCOPY = ' ' * DESTLOCK = ' ' * DEQUEUE_SYNCHRON = ' ' RFCCONVERT = SPACE "SAP-Default behaviour * RFCCONVX = '0000' RFCUNICODE = '1' "non-UNICODE-System EXCEPTIONS authority_not_available = 1 destination_already_exist = 2 destination_not_exist = 3 destination_enqueue_reject = 4 information_failure = 5 trfc_entry_invalid = 6 internal_failure = 7 OTHERS = 8 .

RFC_PING CALL FUNCTION 'RFC_PING' DESTINATION new_rfc_destination EXCEPTIONS communication_failure = 1 MESSAGE mess system_failure = 2 MESSAGE mess .

SDOK_PHIOS_GET_COPY CALL FUNCTION 'SDOK_PHIOS_GET_COPY' EXPORTING * FTP_KEEP_OPEN_FLAG = client = last_mandt TABLES * OBJECT_FILE_INFORMATIONS = components = components bad_objects = bad_objects_aux.

SDOK_PHIOS_GET_COPY CALL FUNCTION 'SDOK_PHIOS_GET_COPY' EXPORTING * FTP_KEEP_OPEN_FLAG = client = last_mandt TABLES * OBJECT_FILE_INFORMATIONS = components = components bad_objects = bad_objects_aux.

TR_READ_COMM CALL FUNCTION 'TR_READ_COMM' EXPORTING wi_trkorr = wa_transports-trkorr * WI_DIALOG = 'X' * WI_LANGU = SY-LANGU * WI_SEL_E070 = 'X' wi_sel_e071 = 'X' wi_sel_e071k = 'X' * IV_SEL_E071KF = ' ' * WI_SEL_E07T = ' ' * WI_SEL_E070C = ' ' * IV_SEL_E070M = ' ' * IV_SEL_E070A = ' ' * IMPORTING * WE_E070 = * WE_E07T = * WE_E070C = * ES_E070M = * WE_E07T_DOESNT_EXIST = * WE_E070C_DOESNT_EXIST = * EV_E070M_DOESNT_EXIST = TABLES wt_e071 = t_e071 wt_e071k = t_e071k * ET_E071KF = * ET_E070A = EXCEPTIONS not_exist_e070 = 1 no_authorization = 2 OTHERS = 3 .

FTP_CLIENT_TO_R3 CALL FUNCTION 'FTP_CLIENT_TO_R3' EXPORTING fname = p_fname rfc_destination = ftp_client_rfc_destination IMPORTING blob_length = blob_length TABLES blob = blob EXCEPTIONS command_error = 1 data_error = 2 OTHERS = 3.

SCMS_TEXT_UNPACK CALL FUNCTION 'SCMS_TEXT_UNPACK' EXPORTING content_length = blob_length * APPEND_TO_TABLE = ' ' * FIRST_LINE = 0 * LAST_LINE = 0 translate = 'X' TABLES data_bin = blob data_txt = data EXCEPTIONS FAILED = 1 others = 2 .

SCMS_TEXT_PACK CALL FUNCTION 'SCMS_TEXT_PACK' * EXPORTING * FIRST_LINE = 0 * LAST_LINE = 0 * APPEND_TO_TABLE = ' ' IMPORTING content_length = blob_size TABLES data_txt = data data_bin = data_bin .

FTP_R3_TO_CLIENT CALL FUNCTION 'FTP_R3_TO_CLIENT' EXPORTING fname = p_tfile rfc_destination = ftp_client_rfc_destination blob_length = blob_size TABLES blob = data_bin EXCEPTIONS COMMAND_ERROR = 1 DATA_ERROR = 2 OTHERS = 3 .



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