RSCMSCPY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Used to copy all the documents in portions from one content repository to another content repository...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 RSCMSCPY 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: CAT_SRC = Source Category
Selection Text: LOGFIL = Logical File Name
Selection Text: REP_SRC = Source Repository
Selection Text: REP_TRG = Target Repository
Selection Text: SPLITFAC = Split Factor
Selection Text: TRFILE = Help File
Selection Text: RFCDEST = D .
Title: Copy All Documents Belonging to a Repository
Text Symbol: RFC = Destination
Text Symbol: SRC = Source
Text Symbol: TRF = Clipboard
Text Symbol: TRG = Target
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SCMS_DOC_IDLIST CALL FUNCTION 'SCMS_DOC_IDLIST' EXPORTING stor_cat = cat_src "may be blank (not pro forma) crep_id = rep_src timeout = timeout TABLES doclist = doclist EXCEPTIONS error_config = 1 bad_storage_type = 2 OTHERS = 3.
TRINT_FREE_MEMORY CALL FUNCTION 'TRINT_FREE_MEMORY'.
TRINT_FLUSH_LOG CALL FUNCTION 'TRINT_FLUSH_LOG' EXPORTING iv_display_level = level.
FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = log_filnm operating_system = opsys parameter_1 = param_1 eleminate_blanks = space "Allow blanks in file name IMPORTING file_name = file_name EXCEPTIONS file_not_found = 1 OTHERS = 2.
SCMS_TR_EXPORT CALL FUNCTION 'SCMS_TR_EXPORT' EXPORTING datafile = file_name test_repository = u_rep_src destination = u_rfcdest TABLES documents = t_documents protocol = protocol.
SCMS_TR_IMPORT CALL FUNCTION 'SCMS_TR_IMPORT' EXPORTING datafile = file_name test_repository = u_rep_trg destination = u_rfcdest TABLES protocol = protocol.
TR_APPEND_LOG CALL FUNCTION 'TR_APPEND_LOG' TABLES xmsg = protocol EXCEPTIONS OTHERS = 0.
RFC_SYSTEM_INFO CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION u_rfcdest IMPORTING rfcsi_export = rfcsi_export.
SCMS_LOCATION_GET_FROM_DEST CALL FUNCTION 'SCMS_LOCATION_GET_FROM_DEST' EXPORTING rfc_dest = value_tab-rfcdest IMPORTING location = value_tab-location EXCEPTIONS OTHERS = 0.
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING * DDIC_STRUCTURE = ' ' retfield = name value_org = 'S' value = l_value TABLES value_tab = value_tab field_tab = field_tab return_tab = return_tab dynpfld_mapping = mapping_tab EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3 .
RS_SELECTIONSCREEN_READ CALL FUNCTION 'RS_SELECTIONSCREEN_READ' EXPORTING program = my_repid dynnr = my_dynnr TABLES fieldvalues = values 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.