SAP Reports / Programs

RMPREFDI SAP ABAP Report - Direct display of customs log or from the archive







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

VEPR - Customs log


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


Text pool values


Direct access to archived data objects (originally table SBOOK)
Selection Text: P_WERKS = Plant
Selection Text: P_MATNR = Material
Selection Text: P_DATUM = Valid On
Title: Direct display of customs log or from the archive
Text Symbol: ZP0 = | BOM component | Description | CompQty | Val|VD|PS|DO|ComCod |Surch.%| MAP/std price| Det.price |
Text Symbol: ZK1 = |Zone Payer Val.ItChg. Val.w/oItChg. Val.NonOrig. Val.Orig. Det.Price |
Text Symbol: Z08 = | w/ class.change Share-% |
Text Symbol: Z07 = | Non-origProd. Share-% w/o class.change Share-% |
Text Symbol: Z06 = | OriginalProd. Share-% |
Text Symbol: Z05 = |Zone MatlVal. Components Det. old value Det. new value|
Text Symbol: Z04 = Preference rule Preference new
Text Symbol: T20 = Select
Text Symbol: T01 = Pricing limits
Text Symbol: R04 = Rule
Text Symbol: R02 = Alternat. rule
Text Symbol: R01 = Standard rule
Text Symbol: R00 = Procedure HTS item Op.code Percent Det.price
Text Symbol: DRS = Page:
Text Symbol: DRP = Log Time :
Text Symbol: DRK = Preference determination Date :
Text Symbol: DI0 = Pref. determin. as of
Text Symbol: A02 = current
Text Symbol: A01 = ArchiveData
Text Symbol: 057 = OldAssemb.
Text Symbol: 056 = New pref.
Text Symbol: 054 = Usage/Alt.
Text Symbol: 053 = Bill of material
Text Symbol: 050 = |- - - - - - - - - C O M P O N E N T D A T A - - - - - - - - - - - - - - - - - -|
Text Symbol: 025 = Preference zone ;
Text Symbol: 022 = CommCode;
Text Symbol: 013 = Base qty <-- 13 digits
Text Symbol: 012 = |- - - - P R E F E R E N C E Z O N E S - P R E F E R E N C E D A T A - - - - - -|
Text Symbol: 010 = Material <-- 11 digits
Text Symbol: 009 = Surcharge for determined price
Text Symbol: 005 = Plant <-- 5 digits
Text Symbol: 002 = Preference determination


INCLUDES used within this REPORT RMPREFDI

INCLUDE RMPREFDP.





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:

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' exporting object = 'MM_PREF' object_id = sel_tab-object_id archivkey = sel_tab-archivekey offset = sel_tab-arch_offset importing archive_handle = archive_handle exceptions no_record_found = 1 others = 2.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREF_PRO_02' all_records_of_object = 'X' automatic_conversion = 'X' tables table = h_mmpref_pro_02 exceptions others = 4.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.

ARCHIVE_READ_OBJECT call function 'ARCHIVE_READ_OBJECT' EXPORTING object = 'MM_PREF' object_id = sel_tab-object_id archivkey = sel_tab-archivekey offset = sel_tab-arch_offset IMPORTING archive_handle = archive_handle EXCEPTIONS no_record_found = 1 others = 2.

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREF_PRO_02' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = tables table = xmmpref_pro_02 exceptions * END_OF_OBJECT = 1 * INTERNAL_ERROR = 2 * WRONG_ACCESS_TO_ARCHIVE = 3 others = 4 .

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREF_PRO_01' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = tables table = xmmpref_pro_01 exceptions * END_OF_OBJECT = 1 * INTERNAL_ERROR = 2 * WRONG_ACCESS_TO_ARCHIVE = 3 others = 4 .

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREF_PRO_01_B' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = tables table = xmmpref_pro_01_b exceptions * END_OF_OBJECT = 1 * INTERNAL_ERROR = 2 * WRONG_ACCESS_TO_ARCHIVE = 3 others = 4 .

ARCHIVE_GET_TABLE call function 'ARCHIVE_GET_TABLE' exporting archive_handle = archive_handle record_structure = 'MMPREF_PRO_03' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = tables table = xmmpref_pro_03 exceptions * END_OF_OBJECT = 1 * INTERNAL_ERROR = 2 * WRONG_ACCESS_TO_ARCHIVE = 3 others = 4 .

ARCHIVE_GET_NEXT_RECORD * call function 'ARCHIVE_GET_NEXT_RECORD' * exporting * archive_handle = handle * importing * record = buffer-segment * record_structure = buffer-rname * exceptions * end_of_object = 01 * others = 02.



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