DOCVLTCH is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Document Management: Tool for comparing vault files with originals The report produces two lists: 1) Files in the vault where no reference exist in Document Management...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 DOCVLTCH into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_AUDIT = Audits used
Selection Text: P_RPATH = File path on appl. server
Selection Text: P_TRESOR = Name of vault
Selection Text: S_TRNUM = Number of vault files
Title: DMS: Comparison of originals with vault files
Text Symbol: 001 = Output: Vault files not referenced
Text Symbol: 002 = File Name
Text Symbol: 003 = Typ
Text Symbol: 004 = Document no.
Text Symbol: 005 = Vers
Text Symbol: 006 = Part
Text Symbol: 007 = Orig
Text Symbol: 008 = Vault files not referenced
Text Symbol: 009 = Document info records with lost originals
Text Symbol: 010 = Data carrier is not a vault
Text Symbol: 011 = Error: direct vault access is not active
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FTP_CONNECT CALL FUNCTION 'FTP_CONNECT' EXPORTING user = tczgl-ftp_user password = tczgl-ftp_passwd * ACCOUNT = host = tdwd-ftp_cname rfc_destination = lf_dest IMPORTING handle = ftp_handle EXCEPTIONS not_connected = 1 OTHERS = 2 .
FTP_VERSION *CALL FUNCTION 'FTP_VERSION' * EXPORTING * rfc_destination = p_dest * delete_trace = ' ' * TABLES * ftp_trace = ftp_trace.
FTP_COMMAND CALL FUNCTION 'FTP_COMMAND' EXPORTING handle = ftp_handle command = ftpcommand TABLES data = ftp_result EXCEPTIONS tcpip_error = 1 command_error = 2 data_error = 3 OTHERS = 4.
FTP_COMMAND CALL FUNCTION 'FTP_COMMAND' EXPORTING handle = ftp_handle command = ftpcommand * compress = compress TABLES data = ftp_result EXCEPTIONS tcpip_error = 1 command_error = 2 data_error = 3 OTHERS = 4 .
FTP_DISCONNECT CALL FUNCTION 'FTP_DISCONNECT' EXPORTING handle = ftp_handle.
CHANGEDOCUMENT_READ_HEADERS CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING * ARCHIVE_HANDLE = 0 * DATE_OF_CHANGE = '00000000' objectclass = 'DOK_AUDIT' * OBJECTID = ' ' * TIME_OF_CHANGE = '000000' username = ' ' * LOCAL_TIME = ' ' TABLES i_cdhdr = headers EXCEPTIONS no_position_found = 1 wrong_access_to_archive = 2 time_zone_conversion_error = 3 OTHERS = 4 .
CHANGEDOCUMENT_READ_POSITIONS CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS' EXPORTING * ARCHIVE_HANDLE = 0 changenumber = headers-changenr * TABLEKEY = ' ' tablename = 'DRAW' * IMPORTING * HEADER = TABLES editpos = positions * EDITPOS_WITH_HEADER = EXCEPTIONS no_position_found = 1 wrong_access_to_archive = 2 OTHERS = 3 .
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "Start of SAP Note: 1790561 EXPORTING logical_filename = gc_logfile_dms CHANGING physical_filename = p_rpath EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
DOCVLTCH - DMS: Comparison of originals with vault files DOCVLTCH - DMS: Comparison of originals with vault files DOCU_SE24_INCLUDE - DOCUSE24INCLUDE DOCU_SE24_CL_NLS_STRUC_CONT - Display Class CL_ABAP_CONV_X2X_CE DOCU_SE24_CL_NLS_STRUC_CONT - Display Class CL_ABAP_CONV_X2X_CE DOCU_READ=====================FT - DOCUREAD=====================FT