SAP Reports / Programs | Production Planning and Control | Repetitive Manufacturing(PP-REM) SAP PP

PPARBFAR SAP ABAP Report - Archiving Program for Creating Archive Files (PP_BKFLUSH)







PPARBFAR 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 PPARBFAR 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 PPARBFAR. "Basic submit
SUBMIT PPARBFAR AND RETURN. "Return to original report after report execution complete
SUBMIT PPARBFAR 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: PA_RTP04 = D Production Lot
Selection Text: PA_RTP03 = D Kanban
Selection Text: PA_RTP02 = D Make-to-Order Production
Selection Text: PA_RTP01 = D Make-to-Stock Production
Selection Text: PA_DETAI = D Document Log Details
Selection Text: PA_CREAT = Create archive file
Selection Text: SO_WERKS = D Plant
Selection Text: SO_VORNE = D Reporting Point Operation No.
Selection Text: SO_VERID = D Production Version
Selection Text: SO_UNAME = D User Name
Selection Text: SO_STORN = D Reversed
Selection Text: SO_PSPNR = Production Lot
Selection Text: SO_PRTNR = D Document Log
Selection Text: SO_PKPOS = D Kanban item no.
Selection Text: SO_PKNUM = D Control Cycle Number
Selection Text: SO_MATNR = D Material
Selection Text: SO_KDPOS = D Item (SD)
Selection Text: SO_KDAUF = D Sales Document
Selection Text: SO_DATUM = D Created on
Selection Text: SO_BUDAT = D Posting Date
Selection Text: P_TEXT = D Archiving Session Note
Selection Text: PA_TESTR = Archiving Test Run
Title: Archiving Program for Creating Archive Files (PP_BKFLUSH)
Text Symbol: 001 = Statistics for Archived Objects
Text Symbol: 002 = Archiving the Document Logs (PP BACKFLUSH)
Text Symbol: 004 = Table
Text Symbol: 005 = Number of
Text Symbol: 006 = Number of Objects:
Text Symbol: 008 = Description
Text Symbol: 022 = Archiving Parameters
Text Symbol: 023 = Select production type
Text Symbol: 024 = Display detailed information


INCLUDES used within this REPORT PPARBFAR

INCLUDE PPARBFFO.


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:

RM_READ_MDBP CALL FUNCTION 'RM_READ_MDBP' TABLES EMDBP = PIT_VMDBP MATNR = SO_MATNR REPTP = SO_REPTP "Note 572648 WERK = SO_WERKS VERID = SO_VERID BUDAT = SO_BUDAT DATUM = SO_DATUM KDAUF = SO_KDAUF KDPOS = SO_KDPOS PKNUM = SO_PKNUM PKPOS = SO_PKPOS OBNUM = SO_OBNUM STORN = SO_STORN UNAME = SO_UNAME VORNE = SO_VORNE PRTNR = SO_PRTNR * wakzh = * flkzh = * kapkzh = EXCEPTIONS OTHERS = 1.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING CALL_DELETE_JOB_IN_TEST_MODE = PA_TESTR CREATE_ARCHIVE_FILE = PA_CREAT COMMENTS = C_COMMENT OBJECT = K_ARCHIVE_OBJECT IMPORTING ARCHIVE_HANDLE = P_HANDLE EXCEPTIONS INTERNAL_ERROR = 1 OBJECT_NOT_FOUND = 2 OPEN_ERROR = 3 NOT_AUTHORIZED = 4 OTHERS = 5.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING ARCHIVE_HANDLE = P_HANDLE OBJECT_ID = K_ARCHIVE_OBJECT EXCEPTIONS INTERNAL_ERROR = 1 WRONG_ACCESS_TO_ARCHIVE = 2 OTHERS = 3.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING ARCHIVE_HANDLE = P_HANDLE RECORD = P_TAB RECORD_FLAGS = K_STR_DELETE RECORD_STRUCTURE = P_TAB_NAME 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 = P_HANDLE 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 = P_HANDLE STATISTICS_ONLY_PER_RUN = ' ' EXCEPTIONS INTERNAL_ERROR = 1 OTHERS = 2.



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