SAP Reports / Programs

RM06ER30 SAP ABAP Report - Archived Purchasing Documents







RM06ER30 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 RM06ER30 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

ME82 - Archived Purchasing Documents


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 RM06ER30. "Basic submit
SUBMIT RM06ER30 AND RETURN. "Return to original report after report execution complete
SUBMIT RM06ER30 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: S_WERKS = Plant
Selection Text: S_SAISO = Season
Selection Text: S_SAISJ = Season Year
Selection Text: S_RESWK = Supplying Plant
Selection Text: S_PSTYP = Item Category
Selection Text: S_MATNR = Material
Selection Text: S_MATKL = Material Class
Selection Text: S_LTSNR = Vendor Subrange
Selection Text: S_LIFNR = Vendor
Selection Text: S_KNTTP = Account Assignment Category
Selection Text: S_IDNLF = Vendor's Material Number
Selection Text: S_EKGRP = Purchasing Group
Selection Text: S_EINDT = Delivery Date
Selection Text: S_EBELN = Document Number
Selection Text: S_EAN11 = Intern. Article No. (EAN/UPC)
Selection Text: S_BSART = Document Type
Selection Text: S_BEDAT = Document Date
Selection Text: S_ANGDT = Quotation Date
Selection Text: S_AKTNR = Promotion
Selection Text: SELPA = Selection Parameters
Selection Text: P_TXZ01 = Short Text
Selection Text: P_RWEIT = Range of Coverage to
Selection Text: P_NAME1 = Vendor Name
Selection Text: P_GULDT = Validity Key Date
Selection Text: LISTU = Scope of List
Title: Archived Purchasing Documents
Text Symbol: 002 = Processing terminated
Text Symbol: 001 = System error: archive contains non-interpretable records


INCLUDES used within this REPORT RM06ER30

INCLUDE FM06LTO2.
INCLUDE FM06LCS1.
INCLUDE FM06LCS3.
INCLUDE FM06LCS4.
INCLUDE FM06LCS2.
INCLUDE FM06LCEK.
INCLUDE FM06LCAD.
INCLUDE FM06LCBE.
INCLUDE FM06LCCD.


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:

EWU_GET_CONV_BETWEEN_DATES CALL FUNCTION 'EWU_GET_CONV_BETWEEN_DATES' EXPORTING i_date1 = '00000000' i_date2 = '99991231' IMPORTING e_conv_date = archive_date_akt EXCEPTIONS OTHERS = 1.

ME_ITEM_CATEGORY_SELOPT_INPUT CALL FUNCTION 'ME_ITEM_CATEGORY_SELOPT_INPUT' TABLES ext_pstyp = s_pstyp int_pstyp = r_pstyp.

FI_CHECK_DATE CALL FUNCTION 'FI_CHECK_DATE' EXPORTING i_bukrs = space i_user = sy-uname i_program = g_f_repid IMPORTING e_return = g_flag_tpcuser EXCEPTIONS no_authority_prog = 1 no_authority_date = 2 wrong_parameter = 3 OTHERS = 4.

HELP_VALUES_EPSTP CALL FUNCTION 'HELP_VALUES_EPSTP' EXPORTING program = sy-cprog dynnr = sy-dynnr fieldname = 'S_PSTYP-LOW' IMPORTING epstp = s_pstyp-low EXCEPTIONS OTHERS = 1.

MRM_TAX_AUDITOR_CHECK CALL FUNCTION 'MRM_TAX_AUDITOR_CHECK' EXPORTING i_user = sy-uname i_program = g_f_repid i_bukrs = ekko-bukrs i_budat = ekko-bedat i_write_log = ' ' "no protocol function EXCEPTIONS no_authority_prog = 1 no_authority_date = 2 OTHERS = 3.

MRM_TAX_AUDITOR_CHECK CALL FUNCTION 'MRM_TAX_AUDITOR_CHECK' EXPORTING i_user = sy-uname i_program = g_f_repid i_write_log = 'X' EXCEPTIONS OTHERS = 3.

ME_PREPARE_RELEASE_DOCU CALL FUNCTION 'ME_PREPARE_RELEASE_DOCU' EXPORTING bukrs = ekko-bukrs ebeln = ekko-ebeln waers = ekko-waers wkurs = ekko-wkurs i_archive_date = archive_date_vor "TK 4.0B EURO

ME_PREPARE_HISTORY CALL FUNCTION 'ME_PREPARE_HISTORY' EXPORTING ebeln = ekko-ebeln ebelp = ekpo-ebelp webre = ekpo-webre TABLES xekbe = bet xekbes = bets xekbez = betz xekbnk = xekbnk xekbz = bzt.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = object IMPORTING archive_handle = handle EXCEPTIONS file_already_open = 1 no_files_available = 2.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS end_of_file = 01.

ARCHIVE_READ_OBJECT CALL FUNCTION 'ARCHIVE_READ_OBJECT' EXPORTING object = 'MM_EKKO' archivkey = p_key offset = p_ofs IMPORTING archive_handle = handle EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = handle IMPORTING record = buffer-segment record_flags = buffer-flags record_structure = buffer-rname EXCEPTIONS end_of_object = 01.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = handle IMPORTING archive_creation_date = archive_date_akt EXCEPTIONS OTHERS = 1.

ADDRESS_READ_ARCHIVE_OBJECT CALL FUNCTION 'ADDRESS_READ_ARCHIVE_OBJECT' EXPORTING archive_handle = handle TABLES iadrc = lt_iadrc iadrp = lt_iadrp iadcp = lt_iadcp iadr2 = lt_iadr2 iadr3 = lt_iadr3 iadr4 = lt_iadr4 iadr5 = lt_iadr5 iadr6 = lt_iadr6 iadr7 = lt_iadr7 iadr8 = lt_iadr8 iadr9 = lt_iadr9 iadr10 = lt_iadr10 iadr11 = lt_iadr11 iadr12 = lt_iadr12 iadr13 = lt_iadr13 iadrct = lt_iadrct iadrt = lt_iadrt iadrcomc = lt_iadrcomc EXCEPTIONS wrong_access_to_archive = 1 parameter_error = 2 OTHERS = 3.

AS_API_READ CALL FUNCTION 'AS_API_READ' EXPORTING i_fieldcat = lf_fieldcat i_selections = ls_ebeln IMPORTING e_result = lt_result EXCEPTIONS OTHERS = 1.

HELP_VALUES_EPSTP CALL FUNCTION 'HELP_VALUES_EPSTP' EXPORTING program = sy-cprog dynnr = sy-dynnr fieldname = 'S_PSTYP-HIGH' * BSART = * BSTYP = IMPORTING epstp = s_pstyp-high EXCEPTIONS OTHERS = 1.



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