SAP Reports / Programs

ADS2KIP_WP SAP ABAP Report - SPEC2000: IP Data Archiving Write Program







ADS2KIP_WP 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 ADS2KIP_WP 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 ADS2KIP_WP. "Basic submit
SUBMIT ADS2KIP_WP AND RETURN. "Return to original report after report execution complete
SUBMIT ADS2KIP_WP 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: G_SQNBR = Sequence Number
Selection Text: P_COMENT = Note for Archiving Session
Selection Text: P_DELTST = Delete with test variant
Selection Text: P_WRIPRD = Productive Mode
Selection Text: P_WRITST = Test Mode
Title: SPEC2000: IP Data Archiving Write Program
Text Symbol: 002 = Specify Sequence Number


INCLUDES used within this REPORT ADS2KIP_WP

INCLUDE ARCH_WRITE_PRG_STANDARD1.


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:

ADIP_F4_HELP_SQNBR CALL FUNCTION 'ADIP_F4_HELP_SQNBR' IMPORTING sqnbr = g_sqnbr-low.

ADIP_F4_HELP_SQNBR CALL FUNCTION 'ADIP_F4_HELP_SQNBR' IMPORTING sqnbr = g_sqnbr-high.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING create_archive_file = lv_files_create call_delete_job_in_test_mode = lv_delete_testmode comments = p_coment object = 'ADS2KIP_AR' IMPORTING archive_handle = gs_handle.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = gs_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gs_handle record = gt_spcippdr record_flags = ' ' record_structure = 'SPCIPPDR' EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.

ADS2KIP_ARCH_TEXT CALL FUNCTION 'ADS2KIP_ARCH_TEXT' EXPORTING i_handle = gs_handle i_sqnbr = gt_spcippdr-sqnbr i_pnr = gt_spcippdr-pnr i_mfr = gt_spcippdr-mfr i_eip = gt_spcippdr-eip i_eim = gt_spcippdr-eim.

ADS2KIP_ARCH_CD CALL FUNCTION 'ADS2KIP_ARCH_CD' EXPORTING i_handle = gs_handle i_sqnbr = gt_spcippdr-sqnbr i_pnr = gt_spcippdr-pnr i_mfr = gt_spcippdr-mfr i_eip = gt_spcippdr-eip i_eim = gt_spcippdr-eim.

STATUS_ARCHIVE_OBJECT CALL FUNCTION 'STATUS_ARCHIVE_OBJECT' EXPORTING archive_handle = gs_handle i_objnr = ls_pnr_objnbr object_delete_flag = 'X' EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

ADS2KIP_ARCH_TEXT CALL FUNCTION 'ADS2KIP_ARCH_TEXT' EXPORTING i_handle = gs_handle i_sqnbr = gt_spcippds-sqnbr i_pnr = gt_spcippds-pnr i_mfr = gt_spcippds-mfr i_spl = gt_spcippds-spl.

ADS2KIP_ARCH_CD CALL FUNCTION 'ADS2KIP_ARCH_CD' EXPORTING i_handle = gs_handle i_sqnbr = gt_spcippds-sqnbr i_pnr = gt_spcippds-pnr i_mfr = gt_spcippds-mfr i_spl = gt_spcippds-spl.

STATUS_ARCHIVE_OBJECT CALL FUNCTION 'STATUS_ARCHIVE_OBJECT' EXPORTING archive_handle = gs_handle i_objnr = ls_pds_objnbr object_delete_flag = 'X' EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gs_handle record_flags = ' ' record_structure = 'SPCIPOSDS' TABLES table = gt_spciposds * RECORD_FLAGS_TABLE = 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 = gs_handle record_flags = ' ' record_structure = 'SPCIPPQA' TABLES table = gt_spcippqa * RECORD_FLAGS_TABLE = 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 = gs_handle record_flags = ' ' record_structure = 'SPCIPOCH' TABLES table = gt_spcipoch * RECORD_FLAGS_TABLE = 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 = gs_handle record_flags = ' ' record_structure = 'SPCIPPDS' TABLES table = gt_spcippds * RECORD_FLAGS_TABLE = EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.

ADS2KIP_ARCH_TEXT CALL FUNCTION 'ADS2KIP_ARCH_TEXT' EXPORTING i_handle = gs_handle i_sqnbr = gt_spcipcsn-sqnbr i_pnr = gt_spcipcsn-pnr i_mfr = gt_spcipcsn-mfr i_eip = gt_spcipcsn-eip i_eim = gt_spcipcsn-eim i_csn = gt_spcipcsn-csn.

ADS2KIP_ARCH_CD CALL FUNCTION 'ADS2KIP_ARCH_CD' EXPORTING i_handle = gs_handle i_sqnbr = gt_spcipcsn-sqnbr i_pnr = gt_spcipcsn-pnr i_mfr = gt_spcipcsn-mfr i_eip = gt_spcipcsn-eip i_eim = gt_spcipcsn-eim i_csn = gt_spcipcsn-csn.

STATUS_ARCHIVE_OBJECT CALL FUNCTION 'STATUS_ARCHIVE_OBJECT' EXPORTING archive_handle = gs_handle i_objnr = ls_csn_objnbr object_delete_flag = 'X' EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

ARCHIVE_PUT_TABLE





CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gs_handle record_flags = ' ' record_structure = 'SPCIPEFF' TABLES table = gt_spcipeff * RECORD_FLAGS_TABLE = 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 = gs_handle record_flags = ' ' record_structure = 'SPCIPUOA' TABLES table = gt_spcipuoa * RECORD_FLAGS_TABLE = 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 = gs_handle record_flags = ' ' record_structure = 'SPCIPRPDE' TABLES table = gt_spciprpde * RECORD_FLAGS_TABLE = 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 = gs_handle record_flags = ' ' record_structure = 'SPCIPCSN' TABLES table = gt_spcipcsn * RECORD_FLAGS_TABLE = 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 = gs_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_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gs_handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gs_handle.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING check_only = adupl_boolean-yes objnr = p_ls_objnbr vrgng = p_ls_btrans EXCEPTIONS activity_not_allowed = 1 object_not_found = 2 status_inconsistent = 3 status_not_allowed = 4 wrong_input = 5 warning_occured = 6 OTHERS = 7.



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