SAP Reports / Programs | Production Backflush | Industry Solution Automotive | Production Backflush(IS-A-PPC) SAP IS

PPC_CONF_ARCH_WRI SAP ABAP Report - Write Program for Archiving Object PP_CONF







PPC_CONF_ARCH_WRI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving Program of Archiving Object PP_CONF You use this archiving program to archive backflush data that has been generated by the DI Production Backflush function...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 PPC_CONF_ARCH_WRI 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 PPC_CONF_ARCH_WRI. "Basic submit
SUBMIT PPC_CONF_ARCH_WRI AND RETURN. "Return to original report after report execution complete
SUBMIT PPC_CONF_ARCH_WRI 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: ARCH = Archive
Selection Text: ARCH_DEL = Archive (Deletion Test Run)
Selection Text: PA_COM = Archiving Run Memo
Selection Text: PA_ORD = Complete Orders Only
Selection Text: PA_REPPV = Inclusive Rep.Point Str.Ver.
Selection Text: PA_RTIME = Residence Time
Selection Text: TEST = Test Run
Selection Text: PA_PLANT = D .
Selection Text: SO_MATNR = D .
Title: Write Program for Archiving Object PP_CONF
Text Symbol: 001 = Take note of the 'Prerequisites' segment in the program documentation
Text Symbol: ARC = Archiving
Text Symbol: COM = Archiving Run Memo
Text Symbol: CTL = Flow Control
Text Symbol: LIM = Restrictions
Text Symbol: OBJ = Backflushes


INCLUDES used within this REPORT PPC_CONF_ARCH_WRI

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:

MGV_SELOP_AFTER_INITIALIZATION call function 'MGV_SELOP_AFTER_INITIALIZATION' EXPORTING PROGRAM = mgv_matnr_prog TABLES SELOP = mgv_matnr_selopt_tab EXCEPTIONS NO_PROGRAMNAME = 1 OTHERS = 2 .

MGV_SELOP_AFTER_START_OF_SEL CALL FUNCTION 'MGV_SELOP_AFTER_START_OF_SEL' EXPORTING SELOPT_NAME = mgv_matnr_selopt_tab-name TABLES RANGE = .

ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting call_delete_job_in_test_mode = lf_delete_testmode create_archive_file = lf_create_file object = 'PP_CONF' comments = pa_com importing archive_handle = lf_handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 others = 5.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = lf_handle exceptions internal_error = 1 others = 2.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = lf_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

GRC01_CONF_DATA_FOR_COSTING call function 'GRC01_CONF_DATA_FOR_COSTING' exporting im_kzbws = -kzbws im_vbeln = -kdauf im_posnr = -kdpos im_matnr = is_ord_inf-materialnr im_werk = is_ord_inf-plant im_sobkz = lf_sobkz im_bwtar = lf_bwtar importing ex_no_need = lf_noneed exceptions invalid = 1 internal_error = 2 others = 3.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = if_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

PPC1DC_MAKT_SELECT call function 'PPC1DC_MAKT_SELECT' exporting if_matnr = ls_ppc_head-materialnr importing ef_maktx = ls_ppc_head-mat_text exceptions others = 0.

QRP_QRP002_READ call function 'QRP_QRP002_READ' exporting if_cc_guid = ls_ppc_head-accassobj importing ef_aufnr = ls_ppc_head-co_aufnr exceptions others = 0.

PPC1DC_RP_READ call function 'PPC1DC_RP_READ' exporting if_reppoint = ls_ppc_head-reppoint importing ef_ppc_rp = ls_ppc_rp.

PPC1DC_RPV_READ call function 'PPC1DC_RPV_READ' exporting if_line_header = ls_ppc_ord_inf-line_header importing ef_ppc_rp_vers_dat = ls_ppc_rp_vers_dat exceptions others = 1.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = if_handle record = ls_ppc_head record_flags = c_rec_flg_del record_structure = 'PPC_ARCH_WRI_HEAD' exceptions others = 4.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = if_handle record = ls_ppc_scrap record_flags = c_rec_flg_del record_structure = 'PPC_SCRAP' exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = c_rec_flg_del record_structure = 'PPC_CONF_MAT_VAR' tables table = lt_ppc_conf_mat_var exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = c_rec_flg_del record_structure = 'PPC_CONF_MAT' tables table = lt_ppc_conf_mat exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = space record_structure = 'PPC_MAT_DET' tables table = lt_ppc_mat_det exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = space record_structure = 'PPC_MAT' tables table = lt_ppc_mat exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = c_rec_flg_del record_structure = 'PPC_CONF_ACT_VAR' tables table = lt_ppc_conf_act_var exceptions others = 4.

ARCHIVE_PUT_TABLE





call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = c_rec_flg_del record_structure = 'PPC_CONF_ACT' tables table = lt_ppc_conf_act exceptions others = 4.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = space record_structure = 'PPC_ACT' tables table = lt_ppc_act exceptions others = 4.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = if_handle exceptions file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 others = 6.

PPC1DC_RPV_READ_RP call function 'PPC1DC_RPV_READ_RP' exporting if_line_header = -line_header if_line_version = -line_version importing et_reppoints = lt_reppoints exceptions read_error = 1 others = 2.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = if_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = if_handle record_flags = c_rec_flg_del record_structure = 'PPC_RP_VERS' tables table = lt_reppoints exceptions others = 4.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = if_handle exceptions file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 others = 6.



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