SAP Reports / Programs | Cross-Application Components | Document Management System(CA-DMS) SAP CA

DOCVLTCH SAP ABAP Report - DMS: Comparison of originals with vault files







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


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


INCLUDES used within this REPORT DOCVLTCH

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:

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.



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