SAP Reports / Programs

PPPIEBRA1 SAP ABAP Report - Batch Record: Archive Database Files







PPPIEBRA1 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 PPPIEBRA1 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 PPPIEBRA1. "Basic submit
SUBMIT PPPIEBRA1 AND RETURN. "Return to original report after report execution complete
SUBMIT PPPIEBRA1 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: CHARG = D Batch
Selection Text: CREATE = Create Archive File
Selection Text: DEANZ = Detailed Log
Selection Text: MATNR = D Material
Selection Text: TESTRUN = Delete Program as Test Run
Selection Text: WERKS = D Plant
Title: Batch Record: Archive Database Files
Text Symbol: 012 = TC75
Text Symbol: 011 = TC71D
Text Symbol: 010 = TC71
Text Symbol: 009 = MCHPVT
Text Symbol: 008 = MCHPVS
Text Symbol: 007 = MCHPV
Text Symbol: 006 = MCHP
Text Symbol: 005 = Date:
Text Symbol: 004 = User:
Text Symbol: 003 = Page:
Text Symbol: 002 = Database Archiving: Batch Record
Text Symbol: 001 = Selection Criteria
Text Symbol: ANZ = Header Record Details (MCHP Records)
Text Symbol: WRK = Plant
Text Symbol: TXT = The Following Data Was Archived Successfully
Text Symbol: REC = Records
Text Symbol: MAT = Material
Text Symbol: CHA = Batch


INCLUDES used within this REPORT PPPIEBRA1

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:

TEXT_ARCHIVE_OBJECT * call function 'TEXT_ARCHIVE_OBJECT' * exporting * archive_handle = handle * client = sy-mandt * language = mchpvt_tab-tdspras * id = c_vers_id * object = c_vers_object * name = thead-tdname * exceptions * wrong_access_to_archive = 01.

TEXT_ARCHIVE_OBJECT * call function 'TEXT_ARCHIVE_OBJECT' * exporting * archive_handle = handle * client = sy-mandt * language = tc71_tab-comm_lang * id = c_sign_id * object = c_sign_object * name = thead-tdname * exceptions * wrong_access_to_archive = 01.

VB_CP_AUTHORITY_CHECK *** call function 'VB_CP_AUTHORITY_CHECK' *** exporting *** i_matnr = mchp_tab-matnr *** i_activity = C_ARCH *** exceptions *** no_authority = 1 *** others = 2.

STATUS_CHECK ** call function 'STATUS_CHECK' ** exporting ** objnr = caufv-objnr ** status = c_stat_cpar ** exceptions ** object_not_found = 1 ** status_not_active = 2 ** others = 3.

STATUS_CHECK ** CALL FUNCTION 'STATUS_CHECK' ** EXPORTING ** OBJNR = MCHPV_TAB-OBJNR ** STATUS = C_STAT_VBGEN ** EXCEPTIONS ** OBJECT_NOT_FOUND = 1 ** STATUS_NOT_ACTIVE = 2 ** OTHERS = 3.

READ_TEXT ** CALL FUNCTION 'READ_TEXT' ** EXPORTING ** id = c_vers_id ** language = MCHPVT_TAB-TDSPRAS ** name = THEAD-TDNAME ** object = c_vers_object ** IMPORTING ** header = thead ** TABLES ** lines = tline_tab.

READ_TEXT ** CALL FUNCTION 'READ_TEXT' ** EXPORTING ** id = c_sign_id ** language = TC71_TAB-COMM_LANG ** name = THEAD-TDNAME ** object = c_sign_object ** IMPORTING ** header = thead ** TABLES ** lines = tline_tab.

ARCHIVE_OPEN_FOR_WRITE * call function 'ARCHIVE_OPEN_FOR_WRITE' * exporting * call_delete_job_in_test_mode = testrun * create_archive_file = create * object = c_arch_object * comments = text-002 * importing * archive_handle = handle * exceptions * internal_error = 01 * object_not_found = 02 * open_error = 03 * not_authorized = 04.

ARCHIVE_NEW_OBJECT * call function 'ARCHIVE_NEW_OBJECT' * exporting * archive_handle = handle * object_id = mchp_tab-ebrid * exceptions * internal_error = 01 * wrong_access_to_archive = 02.

ARCHIVE_PUT_RECORD * call function 'ARCHIVE_PUT_RECORD' * exporting * archive_handle = handle * record_flags = 'X' * record = tab * record_structure = record * exceptions * internal_error = 01 * wrong_access_to_archive = 02 * invalid_record_structure = 03.

ARCHIVE_SAVE_OBJECT * call function 'ARCHIVE_SAVE_OBJECT' * exporting * archive_handle = handle * exceptions * file_io_error = 01 * internal_error = 02 * open_error = 03 * termination_requested = 04 * wrong_access_to_archive = 05.

ARCHIVE_WRITE_STATISTICS * call function 'ARCHIVE_WRITE_STATISTICS' * exporting * archive_handle = handle * exceptions * internal_error = 01.

ARCHIVE_CLOSE_FILE * call function 'ARCHIVE_CLOSE_FILE' * exporting * archive_handle = handle * exceptions * internal_error = 01 * wrong_access_to_archive = 02.



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