SAP Reports / Programs | Production Planning and Control | Production Planning for Process Industries | Process Order(PP-PI-POR) SAP PP

PRARCHR1 SAP ABAP Report - Process Order Reorganization: Display Archive Data







PRARCHR1 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 PRARCHR1 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

COA7 - Process Order: Retrieval - Archive


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


Text pool values


Title: Process Order Reorganization: Display Archive Data
Text Symbol: 077 = BK
Text Symbol: 076 = DI
Text Symbol: 075 = Co
Text Symbol: 074 = Bf
Text Symbol: 073 = BM
Text Symbol: 072 = Batch
Text Symbol: 071 = SLoc
Text Symbol: 070 = RC
Text Symbol: 069 = IC
Text Symbol: 068 = BUn
Text Symbol: 067 = Requirement Qty
Text Symbol: 066 = Material
Text Symbol: 065 = Item
Text Symbol: 064 = Ctrl Rec.Destinations:
Text Symbol: 063 = System Status :
Text Symbol: 062 = Standard Text Key :
Text Symbol: 061 = Cstng
Text Symbol: 060 = Control Key :
Text Symbol: 059 = Confirmation Number:
Text Symbol: 058 = Resource :
Text Symbol: 057 = Confirmed Quantity :
Text Symbol: 056 = Operation Quantity :
Text Symbol: 055 = Task List Usage :
Text Symbol: 054 = Scrap Quantity :
Text Symbol: SEL = Selection Criteria
Text Symbol: PLO = Inspection Lot :
Text Symbol: MMB = Material Qty Calculation List
Text Symbol: MAT = Archive Read Program: Material List
Text Symbol: LGO = Storage Location :
Text Symbol: EXS = Execution steps exist
Text Symbol: DAT = Start Date - Finish Date :
Text Symbol: CHA = Batch :
Text Symbol: AUF = Archive Read Program: Process Order Overview
Text Symbol: 092 = Reservation Number
Text Symbol: 091 = Production Version :
Text Symbol: 090 = Prod. Scheduling Profile :
Text Symbol: 089 = Material description





Text Symbol: 088 = SP
Text Symbol: 087 = DP
Text Symbol: 086 = LT
Text Symbol: 085 = SOp.
Text Symbol: 084 = Ph
Text Symbol: 083 = Op.
Text Symbol: 082 = Plnt
Text Symbol: 081 = DL
Text Symbol: 080 = AC
Text Symbol: 079 = Withdrawal Qty
Text Symbol: 078 = Committed Quantity
Text Symbol: 028 = Date:
Text Symbol: 027 = Process Order Overview
Text Symbol: 026 = Processor
Text Symbol: 025 = OType
Text Symbol: 024 = MRP Cont.
Text Symbol: 023 = ProdS
Text Symbol: 022 = Plnt
Text Symbol: 021 = Process Order
Text Symbol: 020 = Char. Value
Text Symbol: 019 = Characteristic
Text Symbol: 018 = PIC no.
Text Symbol: 017 = Description
Text Symbol: 016 = ProcInst.Category
Text Symbol: 015 = PI no.
Text Symbol: 014 = Secondary Resource :
Text Symbol: 013 = Phase:
Text Symbol: 012 = Resource :
Text Symbol: 011 = Operatn:
Text Symbol: 006 = Quantity :
Text Symbol: 005 = Material :
Text Symbol: 004 = Plant :
Text Symbol: 003 = Process Order :
Text Symbol: 002 = Page:
Text Symbol: 001 = Archive Read Program: Process Order List
Text Symbol: 029 = Order Header Data
Text Symbol: 053 = Committed Quantity :
Text Symbol: 052 = Delivered Quantity :
Text Symbol: 051 = Planned Order Quantity :





Text Symbol: 050 = Charge Quantity :
Text Symbol: 049 = Explosion Date :
Text Symbol: 048 = BOM Change Number :
Text Symbol: 047 = BOM Validity from :
Text Symbol: 046 = BOM Status :
Text Symbol: 045 = Alternative BOM :
Text Symbol: 044 = BOM Usage :
Text Symbol: 043 = Bill of Material :
Text Symbol: 042 = Charge Quantity from - to :
Text Symbol: 041 = Change Number :
Text Symbol: 040 = Valid from :
Text Symbol: 039 = Planner Group :
Text Symbol: 038 = Task List Type :
Text Symbol: 037 = Recipe Number :
Text Symbol: 036 = Recipe Group :
Text Symbol: 035 = Reservation :
Text Symbol: 034 = Production Supervisor :
Text Symbol: 033 = MRP Controller :
Text Symbol: 032 = Order Status :
Text Symbol: 031 = Order Type :
Text Symbol: 030 = ******************


INCLUDES used within this REPORT PRARCHR1

INCLUDE IOCTOP04.
INCLUDE PARCHCON.


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:

CO_BADI_GET_BUSINESS_ADD_IN CALL FUNCTION 'CO_BADI_GET_BUSINESS_ADD_IN' EXPORTING i_badi_name = 'WORKORDER_EXEC_STEPS' CHANGING c_badi_instance = g_badi_wo_exec_steps EXCEPTIONS not_active = 1 OTHERS = 2.

K_TOTAL_INIT CALL FUNCTION 'K_TOTAL_INIT' EXCEPTIONS OTHERS = 1.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = aobj-pr_order IMPORTING archive_handle = actual_handle EXCEPTIONS file_already_open = 01 file_io_error = 02 internal_error = 03 no_files_available = 04 object_not_found = 05 open_error = 06 not_authorized = 07.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = aobj-pr_order IMPORTING commit_count_for_delete_prg = pp_objcnt.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = actual_handle * importing * OBJECT_ID = PP_OBJECT * OBJECT_OFFSET = ARCH_IDX-OFFSET * ARCHIVE_NAME = HEADA-ARKEY EXCEPTIONS end_of_file = 1.

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

CO_ZK_TEXTKEY_AFFV CALL FUNCTION 'CO_ZK_TEXTKEY_AFFV' EXPORTING afvzl = affvd_tab-afvzl aufnr = caufvd_tab-aufnr IMPORTING id = loc_id name = loc_name object = loc_object.




TEXT_READ_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_READ_ARCHIVE_OBJECT' EXPORTING archive_handle = actual_handle id = loc_id language = affvd_tab-txtsp name = loc_name object = loc_object client = sy-mandt IMPORTING header = texth TABLES lines = textl EXCEPTIONS not_found = 01 wrong_access_to_archive = 02.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING id = afvgd-arbid IMPORTING arbpl = afvgd-arbpl EXCEPTIONS not_found = 01.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING id = afvgd_tab-arbid IMPORTING arbpl = afvgd_tab-arbpl EXCEPTIONS not_found = 01.

CR_WORKSTATION_READ CALL FUNCTION 'CR_WORKSTATION_READ' EXPORTING id = afvgd_tab-arbid IMPORTING arbpl = afvgd_tab-arbpl EXCEPTIONS not_found = 01.

COC1_FEATURE_CHECK CALL FUNCTION 'COC1_FEATURE_CHECK' EXPORTING feature_id = affvd_tab-atinn language = sy-langu IMPORTING feature_name = atbez feature_neutral_name = atnam value_assignment_with_longtext = ltext function_for_auto_valuation = atfkt EXCEPTIONS invalid_class_type = 01 missing_feature_information = 02 no_feature_found = 03 no_feature_valid = 04 no_language = 05.

CO_ZK_TEXTKEY_AFFV CALL FUNCTION 'CO_ZK_TEXTKEY_AFFV' EXPORTING afvzl = affvd_tab-afvzl aufnr = caufvd_tab-aufnr IMPORTING id = loc_id name = loc_name object = loc_object.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = msfcv return = mtcor EXCEPTIONS OTHERS = 01.

CO_ML_CALC_SHEET_GET_ARCHIVE CALL FUNCTION 'CO_ML_CALC_SHEET_GET_ARCHIVE' EXPORTING caufvd_imp = caufvd_tab pi_order_display = ' ' TABLES afvgd_imp = afvgd_calc resbd_imp = resbd_calc kalt_imp = kalt_calc kalc_imp = kalc_calc.



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