SAP Reports / Programs | Basis Components | Basis Components | Business Configuration Sets(BC-CUS-TOL-BCD) SAP BC

SCPRARCHIVE_WRITE SAP ABAP Report - Program SCPRARCHIVE_WRITE







SCPRARCHIVE_WRITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter SCPRARCHIVE_WRITE 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 SCPRARCHIVE_WRITE. "Basic submit
SUBMIT SCPRARCHIVE_WRITE AND RETURN. "Return to original report after report execution complete
SUBMIT SCPRARCHIVE_WRITE 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_SUB = Archive Hier. BC Sets
Selection Text: P_TEST = Test Mode
Selection Text: S_DATE = D Changed On
Selection Text: S_ID = D Business Configuration Set
Selection Text: S_MODIF = D Changed By
Title: Program SCPRARCHIVE_WRITE
Text Symbol: 001 = BC Set Selection
Text Symbol: 002 = Archiving Options
Text Symbol: 003 = BC Set Archiving


INCLUDES used within this REPORT SCPRARCHIVE_WRITE

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:

SCPR_AUTHORITY_CHECK CALL FUNCTION 'SCPR_AUTHORITY_CHECK' EXPORTING task = 'DELETE' * ID = EXCEPTIONS wrong_parameters = 1 no_authority = 2 OTHERS = 3 .

SCPR_DB_ATTR_GET_LIST CALL FUNCTION 'SCPR_DB_ATTR_GET_LIST' EXPORTING category = pcat_classic * COMPONENT = * RELEASE = * MAX_COUNT = * IMPORTING * SEL_COUNT = TABLES profs = s_id[] versions = lt_range_version[] * PROFTYPES = * CLI_DEPS = * CLI_CASS = * REFTYPES = * REFERENCES = moddates = s_date[] modifiers = s_modif[] * ORGIDS = profout = lt_attr[] EXCEPTIONS nothing_found = 1 .

SCPR_PRSET_DB_GET_SUBPROFS CALL FUNCTION 'SCPR_PRSET_DB_GET_SUBPROFS' EXPORTING profid = -id version = version_new category = -category all_levels = 'X' TABLES subprofs = lt_subprofs.

SCPR_DB_ATTR_GET_LIST CALL FUNCTION 'SCPR_DB_ATTR_GET_LIST' EXPORTING category = pcat_classic * COMPONENT = * RELEASE = * MAX_COUNT = * IMPORTING * SEL_COUNT = TABLES profs = lt_range_id[] versions = lt_range_version[] * PROFTYPES = * CLI_DEPS = * CLI_CASS = * REFTYPES = * REFERENCES = * MODDATES = * MODIFIERS = * ORGIDS = profout = lt_attr_sub[] EXCEPTIONS OTHERS = 1 .

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = p_test create_archive_file = 'X' object = 'BC_BCSET' comments = 'BC-Set Archivierung'(003) do_not_delete_data = space output_sel_screen_when_dialog = 'X' output_sel_screen_when_batch = 'X' IMPORTING archive_handle = handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.

SCPR_SV_ENQUEUE_BCSET CALL FUNCTION 'SCPR_SV_ENQUEUE_BCSET' EXPORTING bcset_id = -id EXCEPTIONS is_already_locked = 1 system_failure = 2 OTHERS = 3.

SCPR_PRSET_DB_GET_ORIG_TABLES CALL FUNCTION 'SCPR_PRSET_DB_GET_ORIG_TABLES' EXPORTING id = -id category = -category version = version_new TABLES scprvals = lt_vals scprvall = lt_vall scprreca = lt_reca scprfldv = lt_fldv scprtext = lt_text scprpprl = lt_pprl.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = handle object_id = -id EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRATTR' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRVALS' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRVALL' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRRECA' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRFLDV' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRTEXT' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRPPRL' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SBRANCHEIN' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SBRANCHEEX' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCOUNTRYIN' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD





CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCOUNTRYEX' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = handle record = * RECORD_FLAGS = ' ' record_structure = 'SCPRDOCU' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4 .

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle * IMPORTING * OBJECT_OFFSET = * ARCHIVE_NAME = EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 OTHERS = 6 .

SCPR_SV_DEQUEUE_BCSET CALL FUNCTION 'SCPR_SV_DEQUEUE_BCSET' EXPORTING bcset_id = -id.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle statistics_only_per_run = space statistics_only_per_file = space EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.



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