SAP Reports / Programs

RSTIR_TEST_CHECKIN SAP ABAP Report - Generation of 3K endless text, check-in, check-out







RSTIR_TEST_CHECKIN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report for testing the KPRO functionality The following functions are tested: CMS: SCMS_DOC_READ SCMS_DOC_WRITE DMS: SDOK_PHIO_LOAD_CONTENT SDOK_PHIO_STORE_CONTENT SDOK_PHIO_GET_CONTENT_ACCESS SDOK_PHIOS_CHECKIN SDOK_PHIOS_CHECKOUT You can influence the following parameters: Document class: Select your test document class for creating documents for testing purposes...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 RSTIR_TEST_CHECKIN 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 RSTIR_TEST_CHECKIN. "Basic submit
SUBMIT RSTIR_TEST_CHECKIN AND RETURN. "Return to original report after report execution complete
SUBMIT RSTIR_TEST_CHECKIN VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Generation of 3K continuous text, check-in, check-out
Selection Text: X_STREAM = Compact text representation
Selection Text: X_MODULO = Compact length divis. by 1022
Selection Text: X_DEL = Delete new document
Selection Text: STOR_CAT = Storage category
Selection Text: IN_PATH = Test directory
Selection Text: CLASS = Document Class
Title: Generation of 3K endless text, check-in, check-out
Text Symbol: 015 = Category
Text Symbol: 016 = Successful check-out
Text Symbol: 017 = CHECKOUT_CANCEL failed
Text Symbol: 018 = No equivalent for the following component
Text Symbol: 019 = File size at check-in
Text Symbol: 010 = FILE_SIZE
Text Symbol: 001 = SDOK_PHIO_CREATE has exception
Text Symbol: 002 = Class
Text Symbol: 003 = GUID
Text Symbol: 004 = Successful check-in
Text Symbol: 005 = Class
Text Symbol: 006 = GUID
Text Symbol: 007 = Component
Text Symbol: 008 = MIMETYPE
Text Symbol: 029 = The following document was created
Text Symbol: 028 = Error callingmodule 'SCMS_DOC_CREATE'
Text Symbol: 027 = for file:
Text Symbol: 026 = Error in WS_DOWNLOAD
Text Symbol: 025 = Alias name
Text Symbol: 024 = File type at CHECKOUT
Text Symbol: 023 = File type at CHECKIN
Text Symbol: 022 = MIMETYPE at CHECKOUT
Text Symbol: 009 = FILE_TYPE
Text Symbol: 020 = File size at check-out
Text Symbol: 031 = frm
Text Symbol: 032 = to
Text Symbol: 033 = Error when deleting the document:
Text Symbol: 034 = The following document was successfully deleted:
Text Symbol: 035 = Discrepancy in binary table, row:
Text Symbol: 036 = Discrepancy in ASCII table, row:





Text Symbol: 037 = Data and components were read in again correctly for document:
Text Symbol: 038 = File type for DOC_CREATE:
Text Symbol: 039 = File type for DOC_READ:
Text Symbol: 030 = iin storage category:
Text Symbol: 021 = MIMETYPE at CHECKIN
Text Symbol: 014 = Incorrect check-in
Text Symbol: 070 = Old line:
Text Symbol: 071 = New line:
Text Symbol: 100 = CMS functionality OK (DOC_READ, DOC_WRITE)
Text Symbol: 101 = CMS functionality with errors (DOC_READ, DOC_WRITE)
Text Symbol: 102 = DMS functionality with errors (STORE/LOAD-Content)
Text Symbol: 103 = DMS functionality OK (STORE/LOAD-Content)
Text Symbol: 104 = DMS functionality with errors (CHECKIN/CHECKOUT)
Text Symbol: 105 = DMS functionality OK (CHECKIN/CHECKOUT)
Text Symbol: 110 = Files after check-out
Text Symbol: 050 = Binary contents agree after LOAD_CONTENT
Text Symbol: 041 = SDOK_PHIO_LOAD_CONTENT: Except.:
Text Symbol: 042 = SDOK_PHIO_STORE_CONTENT: Except.:
Text Symbol: 043 = Text contents no longer agree after STORE/LOAD CONTENT
Text Symbol: 044 = Text contents agree after STORE/LOAD_CONTENT
Text Symbol: 045 = Binary contents no longer agree after STORE/LOAD_CONTENT
Text Symbol: 046 = Binary contents agree after STORE/LOAD_CONTENT
Text Symbol: 047 = Text contents no longer agree after LOAD_CONTENT
Text Symbol: 048 = Text contents agree after LOAD_CONTENT
Text Symbol: 049 = Binary contents no longer agree after LOAD_CONTENT
Text Symbol: 111 = The following components no longer exist:
Text Symbol: 122 = The following components exist once as TEXT contents and once as binary contents
Text Symbol: 121 = DMS functionality with errors (GET_CONTENT_ACCESS)
Text Symbol: 112 = The no. of lines for componennt <
Text Symbol: 113 = > differs. Old:
Text Symbol: 114 = New:
Text Symbol: 115 = The following line is no longer correct in the new component:
Text Symbol: 116 = Thenew component has
Text Symbol: 117 = lines more than the old component
Text Symbol: 118 = lines less than the old component
Text Symbol: 119 = SDOK_PHIO_GET_CONTENT_ACCESS: Excep.:
Text Symbol: 120 = DMS functionality OK (GET_CONTENT_ACCESS)
Text Symbol: 040 = Incorrect check-out
Text Symbol: 011 = Property





Text Symbol: 012 = Path
Text Symbol: 013 = SDOKA-Error


INCLUDES used within this REPORT RSTIR_TEST_CHECKIN

INCLUDE RSTIR_TEST_CHECKIN_F01.


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:

SDOK_PHIO_CREATE CALL FUNCTION 'SDOK_PHIO_CREATE' EXPORTING object_class = object_id-class * OBJECT_UNIQUE_ID = * X_ENQUEUE = * CLIENT = SY-MANDT * X_SUPPRESS_PARTNER_CHECK = IMPORTING object_id = object_id TABLES properties = itab_props * FROM_RELATIONS = * TO_RELATIONS = EXCEPTIONS missing_class = 1 bad_class = 2 missing_properties = 3 bad_relations = 4 bad_properties = 5 not_authorized = 6 duplicate_object_id = 7 enqueue_failure = 8 OTHERS = 9 .

SDOK_PHIOS_CHECKIN CALL FUNCTION 'SDOK_PHIOS_CHECKIN' * EXPORTING * FTP_KEEP_OPEN_FLAG = TABLES * OBJECT_FILEPROPERTIES = components = itab_comps_in bad_objects = itab_badcomps_in .

SDOK_PHIOS_CHECKOUT CALL FUNCTION 'SDOK_PHIOS_CHECKOUT' * EXPORTING * FTP_KEEP_OPEN_FLAG = * CLIENT = SY-MANDT TABLES * OBJECT_FILE_INFORMATIONS = components = itab_comps_out bad_objects = itab_badcomps_out .

SDOK_PHIO_LOAD_CONTENT CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT' EXPORTING object_id = object_id * CLIENT = SY-MANDT * AS_IS_MODE = text_as_stream = x_stream TABLES file_access_info = file_access_info2 file_content_ascii = itab_content_asc2 file_content_binary = itab_content_bin2 EXCEPTIONS not_existing = 1 not_authorized = 2 no_content = 3 bad_storage_type = 4 OTHERS = 5 .

SDOK_PHIO_CREATE CALL FUNCTION 'SDOK_PHIO_CREATE' EXPORTING object_class = object_id-class * OBJECT_UNIQUE_ID = * X_ENQUEUE = * CLIENT = SY-MANDT * X_SUPPRESS_PARTNER_CHECK = IMPORTING object_id = phio2 TABLES properties = itab_props * FROM_RELATIONS = * TO_RELATIONS = EXCEPTIONS missing_class = 1 bad_class = 2 missing_properties = 3 bad_relations = 4 bad_properties = 5 not_authorized = 6 duplicate_object_id = 7 enqueue_failure = 8 OTHERS = 9 .

SDOK_PHIO_STORE_CONTENT CALL FUNCTION 'SDOK_PHIO_STORE_CONTENT' EXPORTING object_id = phio2 * RAW_MODE = * CLIENT = SY-MANDT text_as_stream = 'X' TABLES file_access_info = file_access_info2 file_content_ascii = itab_content_asc2 file_content_binary = itab_content_bin2 EXCEPTIONS not_existing = 1 not_allowed = 2 not_authorized = 3 no_content = 4 bad_storage_type = 5 OTHERS = 6 .

SDOK_PHIO_LOAD_CONTENT CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT' EXPORTING object_id = phio2 * CLIENT = SY-MANDT * AS_IS_MODE = text_as_stream = x_stream TABLES file_access_info = file_access_info3 file_content_ascii = itab_content_asc3 file_content_binary = itab_content_bin3 EXCEPTIONS not_existing = 1 not_authorized = 2 no_content = 3 bad_storage_type = 4 OTHERS = 5 .

SDOK_PHIO_GET_CONTENT_ACCESS CALL FUNCTION 'SDOK_PHIO_GET_CONTENT_ACCESS' EXPORTING object_id = object_id * CONTENT_OR_URL_ONLY = content_only = 'X' * RAW_MODE = * CLIENT = SY-MANDT * USE_URL_AT = text_as_stream = x_stream * IMPORTING * ACCESS_MODE = * DOCUMENT_URL = TABLES * CONTEXT = components = components file_content_ascii = itab_content_asc4 file_content_binary = itab_content_bin4 EXCEPTIONS not_existing = 1 not_authorized = 2 no_content = 3 bad_storage_type = 4 context_incomplete = 5 no_codepage_info = 6 OTHERS = 7 .

SDOK_PHIOS_DELETE CALL FUNCTION 'SDOK_PHIOS_DELETE' TABLES object_list = itab_objects * BAD_OBJECTS = .

SDOK_PHIOS_DELETE CALL FUNCTION 'SDOK_PHIOS_DELETE' TABLES object_list = itab_objects * BAD_OBJECTS = .

SDOK_PHIOS_CHECKOUT_CANCEL CALL FUNCTION 'SDOK_PHIOS_CHECKOUT_CANCEL' * EXPORTING * CLIENT = SY-MANDT TABLES object_list = itab_objects bad_objects = itab_badobjects .

SCMS_DOWNLOAD CALL FUNCTION 'SCMS_DOWNLOAD' EXPORTING filename = path_and_file filesize = comp_length * BINARY = 'X' * FRONTEND = 'X' TABLES data = itab_data EXCEPTIONS error = 1 OTHERS = 2 .

SCMS_DOWNLOAD CALL FUNCTION 'SCMS_DOWNLOAD' EXPORTING filename = path_and_file filesize = comp_length * BINARY = 'X' * FRONTEND = 'X' TABLES data = itab_data EXCEPTIONS error = 1 OTHERS = 2 .

SCMS_DOWNLOAD CALL FUNCTION 'SCMS_DOWNLOAD' EXPORTING filename = path_and_file filesize = comp_length * BINARY = 'X' * FRONTEND = 'X' TABLES data = itab_bin EXCEPTIONS error = 1 OTHERS = 2 .

SCMS_DOC_CREATE CALL FUNCTION 'SCMS_DOC_CREATE' EXPORTING * mandt = u_client stor_cat = stor_cat * CREP_ID = ' ' doc_id = space * doc_prot = * SECURITY = ' ' IMPORTING doc_id_out = docid TABLES access_info = file_access_info content_txt = itab_content_asc content_bin = itab_content_bin EXCEPTIONS bad_storage_type = 1 bad_request = 2 unauthorized = 3 forbidden = 4 conflict = 5 internal_server_error = 6 error_http = 7 error_signature = 8 error_config = 9 error_hierarchy = 10 error_format = 11 error_parameter = 12 error = 13 OTHERS = 14 .

SCMS_DOC_READ CALL FUNCTION 'SCMS_DOC_READ' EXPORTING * mandt = client stor_cat = stor_cat * CREP_ID = ' ' doc_id = docid * signature = signature * security = security TABLES access_info = file_access_info_out content_txt = itab_content_asc_out content_bin = itab_content_bin_out EXCEPTIONS error = 1 error_config = 2 error_parameter = 3 error_format = 4 comp_not_found = 5 not_found = 6 unauthorized = 7 bad_storage_type = 8 bad_request = 9 conflict = 10 internal_server_error = 11 error_http = 12 error_signature = 13 OTHERS = 14 .

SCMS_DOC_DELETE CALL FUNCTION 'SCMS_DOC_DELETE' EXPORTING * MANDT = SY-MANDT stor_cat = stor_cat * crep_id = space doc_id = docid * SIGNATURE = 'X' EXCEPTIONS bad_storage_type = 1 bad_request = 2 unauthorized = 3 not_found = 4 conflict = 5 internal_server_error = 6 error_http = 7 error_signature = 8 error_config = 9 error_hierarchy = 10 error_parameter = 11 error = 12 OTHERS = 13 .






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