SAP Reports / Programs | Global Trade Services | Global Trade Services(SLL-LEG) SAP SLL

/SAPSLL/SCPBOD_ARCH_WRITE_FORM SAP ABAP INCLUDE - /SAPSLL/SCPBODARCHWRITEFORM







/SAPSLL/SCPBOD_ARCH_WRITE_FORM is a standard ABAP INCLUDE 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 /SAPSLL/SCPBOD_ARCH_WRITE_FORM 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 /SAPSLL/SCPBOD_ARCH_WRITE_FORM. "Basic submit
SUBMIT /SAPSLL/SCPBOD_ARCH_WRITE_FORM AND RETURN. "Return to original report after report execution complete
SUBMIT /SAPSLL/SCPBOD_ARCH_WRITE_FORM VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT /SAPSLL/SCPBOD_ARCH_WRITE_FORM

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:

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = iv_delete create_archive_file = iv_archive object = 'SCPBOD' comments = iv_coment * DO_NOT_DELETE_DATA = ' ' * OUTPUT_SEL_SCREEN_WHEN_DIALOG = 'X' * OUTPUT_SEL_SCREEN_WHEN_BATCH = ' ' IMPORTING archive_handle = cv_archive_handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.

ARCHIVE_GET_STATISTICS CALL FUNCTION 'ARCHIVE_GET_STATISTICS' EXPORTING archive_handle = iv_archive_handle IMPORTING archive_document = lv_stat_sess TABLES statistics_data = lt_stat_tab EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

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

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = iv_archive_handle object_id = lv_object_id EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = iv_archive_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.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object * I_TEXT = i_msgtype = 1 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 * I_MSGV3 = * I_MSGV4 = * I_CALLBACK_PARAMETER = * I_PROTOCOL_DATA = * I_PROTOCOL_HANDLE = EXCEPTIONS PROTOCOL_NOT_YET_INITIALIZED = 1 OTHERS = 2 .

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_output_immediately = gc_true.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = iv_archive_handle record = is_scpbod record_flags = ' ' record_structure = gc_record_name-scpbod EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = iv_archive_handle * RECORD_FLAGS = ' ' record_structure = gc_record_name-legscp TABLES table = it_legscp * RECORD_FLAGS_TABLE = EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.

/SAPSLL/CONVERT_DATE_TO_STAMP CALL FUNCTION '/SAPSLL/CONVERT_DATE_TO_STAMP' EXPORTING * iv_timezone = iv_timezone iv_date = iv_date iv_time = iv_time IMPORTING ev_timestamp = cv_timestamp EXCEPTIONS no_time_zone = 1 time_zone_notfound = 2 format_error = 3 OTHERS = 4.



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 /SAPSLL/SCPBOD_ARCH_WRITE_FORM or its description.