SAP Reports / Programs

REPDAR_ANALYSE_HEAD SAP ABAP Report - Analyze print document headers for archiving







REPDAR_ANALYSE_HEAD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Analyze print document header data for archiving This report carries out the first step in archiving print document header data: Analyzing print document header data with a view to possibly archiving it...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 REPDAR_ANALYSE_HEAD 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 REPDAR_ANALYSE_HEAD. "Basic submit
SUBMIT REPDAR_ANALYSE_HEAD AND RETURN. "Return to original report after report execution complete
SUBMIT REPDAR_ANALYSE_HEAD 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: P_ALLG = Only statistics
Selection Text: P_AUTARC = Start archiving automatically
Selection Text: P_DETAIL = Detail log
Selection Text: P_LAUFZ = Runtime restriction active
Selection Text: P_LFZDAT = End date
Selection Text: P_LFZTIM = End time
Selection Text: P_TESTL = Test run
Selection Text: SE_OPBEL = D Number of print document
Selection Text: SE_PORTI = D Portion
Selection Text: SE_VKONT = D Contract account
Title: Analyze print document headers for archiving
Text Symbol: 001 = Can Be Archived
Text Symbol: 002 = Cannot Be Archived
Text Symbol: A00 = >>> Test Run <<<
Text Symbol: P01 = Statistics
Text Symbol: P02 = Read
Text Symbol: S01 = Additional restriction of archiving quantity
Text Symbol: S02 = Runtime Restriction
Text Symbol: S03 = Technical control
Text Symbol: S04 = Log type


INCLUDES used within this REPORT REPDAR_ANALYSE_HEAD

INCLUDE: REPDAR01_TYP,
REPDAR01_CON,
REPDAR01_TOP.


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:

BP_EVENT_RAISE CALL FUNCTION 'BP_EVENT_RAISE' EXPORTING eventid = 'SAP_ISU_ARC_PRDOC_ANA_HEAD_END' eventparm = sy-slset EXCEPTIONS bad_eventid = 1 eventid_does_not_exist = 2 eventid_missing = 3 raise_failed = 4 OTHERS = 5.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '1' i_msgid = 'EARC' i_msgno = '424' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '425' i_msgv1 = -opbel i_msgv2 = 'ETOAR001'.

ISU_DB_ERDK_UPDATE_MULT CALL FUNCTION 'ISU_DB_ERDK_UPDATE_MULT' TABLES xt_erdk = lt_erdk EXCEPTIONS update_error = 1 input_error = 2 OTHERS = 3.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '1' i_msgid = 'EARC' i_msgno = '406' i_msgv1 = 'ERDK' i_msgv2 = lv_first_opbel i_msgv3 = lv_last_opbel i_msgv4 = sy-subrc.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = xv_detail.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.



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