SAP Reports / Programs | Incentive and Commission Management (ICM)(ICM) SAP ICM

CACS00_ARCH04_DOC SAP ABAP Report - Archive Commission Document







CACS00_ARCH04_DOC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program for Archiving Commission Documents General rules and rules specific to the commission documents are valid prerequisites for archiving...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 CACS00_ARCH04_DOC 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 CACS00_ARCH04_DOC. "Basic submit
SUBMIT CACS00_ARCH04_DOC AND RETURN. "Return to original report after report execution complete
SUBMIT CACS00_ARCH04_DOC 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: COMMENTS = Comments
Selection Text: CREATE = Generate Archive File
Selection Text: DETAIL = Detailed log
Selection Text: KDATE = Key date
Selection Text: TESTRUN = Deletion Program as Test Run
Title: Archive Commission Document
Text Symbol: 001 = Legend of Rejection Reasons:
Text Symbol: 002 = ObjectType
Text Symbol: 003 = ComnTriggr
Text Symbol: 004 = Inspected
Text Symbol: 005 = Archived
Text Symbol: 006 = NotArchivd
Text Symbol: 007 = Reason
Text Symbol: 008 = Number
Text Symbol: 009 = Detailed Log:
Text Symbol: 010 = No data found of corresponding age
Text Symbol: 011 = Doc. type
Text Symbol: 012 = CREATE DATA ... TYPE TABLE OF
Text Symbol: 013 = SELECT FROM


INCLUDES used within this REPORT CACS00_ARCH04_DOC

INCLUDE CACS_GLOBDEF.


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:

CACS_TIMESTAMP_GET_NOW CALL FUNCTION 'CACS_TIMESTAMP_GET_NOW' IMPORTING e_timestamp = lv_db_timestamp.

CACS_TIMESTAMP_GET_DATE CALL FUNCTION 'CACS_TIMESTAMP_GET_DATE' EXPORTING i_timestamp = lv_db_timestamp IMPORTING e_date = kdate.

CACS00_OUTBOUND_ITF_2900 CALL FUNCTION 'CACS00_OUTBOUND_ITF_2900' EXPORTING i_doc = i_detail = detail EXCEPTIONS dont_archive = 1 no_fm = 0 OTHERS = 2.

CACS00_OUTBOUND_ITF_2901 CALL FUNCTION 'CACS00_OUTBOUND_ITF_2901' EXPORTING i_doc = i_detail = detail TABLES it_docre = lt_re it_docdt = lt_dt it_docse = lt_se it_docsedt = lt_sedt it_docva = lt_va it_docact = lt_act it_docpar = lt_par it_docinv = lt_inv it_docobj = lt_obj it_docrel = lt_rel it_docfi_h = lt_fih it_docfi_p = lt_fip it_docfi_t = lt_fit it_cpd_ref = lt_cpd EXCEPTIONS dont_archive = 1 no_fm = 0 OTHERS = 2.

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

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gv_handle record_structure = 'CACS00_DOCHD' record_flags = ' ' record = 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCRE' TABLES table = lt_re 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCDT' TABLES table = lt_dt 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCSE' TABLES table = lt_se 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCSEDT' TABLES table = lt_sedt 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCVA' TABLES table = lt_va 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCACT' TABLES table = lt_act 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCFI_H' TABLES table = lt_fih 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCFI_P' TABLES table = lt_fip 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCINV' TABLES table = lt_inv 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCOBJ' TABLES table = lt_obj 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCPAR' TABLES table = lt_par 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 = gv_handle record_flags = ' ' record_structure = 'CACS00_DOCREL' TABLES table = lt_va 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 = gv_handle record_flags = ' ' record_structure = 'CACS_DOCFIT' TABLES table = lt_fit 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 = gv_handle record_flags = ' ' record_structure = 'CACS_CPD_REF' TABLES table = lt_cpd 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 = gv_handle EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 OTHERS = 6.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = testrun comments = comments create_archive_file = create object = 'CACS00_DOC' IMPORTING archive_handle = gv_handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gv_handle EXCEPTIONS internal_error = 1 OTHERS = 2.

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

BAL_DSP_TXT_MSG_READ CALL FUNCTION 'BAL_DSP_TXT_MSG_READ' EXPORTING i_msgid = -arbgb i_msgno = -msgnr i_msgv1 = '' i_msgv2 = '' i_msgv3 = '' i_msgv4 = '' IMPORTING e_message_text = gv_text.

CACS_BUFFERLOG_EXPAND CALL FUNCTION 'CACS_BUFFERLOG_EXPAND' TABLES c_bufferlog = lt_blog.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gv_handle record_flags = ' ' record_structure = -tabname TABLES table = EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 OTHERS = 4.

ARCHIVE_REGISTER_STRUCTURES CALL FUNCTION 'ARCHIVE_REGISTER_STRUCTURES' EXPORTING archive_handle = gv_handle TABLES record_structures = lt_add_struct EXCEPTIONS no_new_structures_permitted = 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 CACS00_ARCH04_DOC or its description.