SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | Content Management Service(BC-SRV-KPR-CMS) SAP BC

RSCMSEXL SAP ABAP Report - Export from a Repository Using a Document ID List







RSCMSEXL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program allows documents to be exported from one repository on an SAP content server into a KPro transport file...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 RSCMSEXL 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 RSCMSEXL. "Basic submit
SUBMIT RSCMSEXL AND RETURN. "Return to original report after report execution complete
SUBMIT RSCMSEXL 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: CAT = D Category
Selection Text: LOGFIL = Logical File Name
Selection Text: LSTFILE = File with Document ID List
Selection Text: REP = D Content Repository
Selection Text: RFCDEST = D RFC Destination
Selection Text: TRFILE = Transport File
Selection Text: USE_FE = Read File on Front End
Title: Export from a Repository Using a Document ID List
Text Symbol: LST = Input File
Text Symbol: REP = Repository Selection
Text Symbol: RFC = Destination
Text Symbol: TRF = Document Contents


INCLUDES used within this REPORT RSCMSEXL

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:

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING CLIENT = SY-MANDT LOGICAL_FILENAME = 'KPRO_IMPORT_EXPORT' * PARAMETER_1 = lstfile * PARAMETER_2 = ' ' * PARAMETER_3 = ' ' WITH_FILE_EXTENSION = 'X' * USE_BUFFER = ' ' * ELIMINATE_BLANKS = 'X' IMPORTING VALIDATION_ACTIVE = validate_file * TS_ALIAS = CHANGING PHYSICAL_FILENAME = lstfile EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = log_filnm use_presentation_server = use_fe eleminate_blanks = space "Allow blanks in file name IMPORTING file_name = file_name EXCEPTIONS file_not_found = 1 OTHERS = 2.

SCMS_UPLOAD CALL FUNCTION 'SCMS_UPLOAD' EXPORTING filename = file_name binary = ' ' frontend = use_fe TABLES data = doclist EXCEPTIONS error = 1 OTHERS = 2.

TRINT_FREE_MEMORY CALL FUNCTION 'TRINT_FREE_MEMORY'.

SCMS_TR_EXPORT CALL FUNCTION 'SCMS_TR_EXPORT' EXPORTING datafile = trfile test_repository = rep destination = rfcdest TABLES documents = documents protocol = protocol.

TR_APPEND_LOG CALL FUNCTION 'TR_APPEND_LOG' TABLES xmsg = protocol EXCEPTIONS OTHERS = 0.

TRINT_FLUSH_LOG CALL FUNCTION 'TRINT_FLUSH_LOG' EXPORTING iv_display_level = level.

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.



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