RMPREWDI 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 RMPREWDI into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_PWGGR = Preference plant group
Selection Text: P_MATNR = Material
Selection Text: P_LAND1 = Country
Selection Text: P_DATUM = Valid On
Title: Preference_PG: Display customs logs directly or from archive
Text Symbol: R02 = Alternat. rule
Text Symbol: R04 = Rule
Text Symbol: T01 = Pricing limits
Text Symbol: T20 = Checkbox
Text Symbol: W01 = In-house prod.
Text Symbol: W02 = PRef. group-internal plant:
Text Symbol: W03 = PRef. group-internal plant:
Text Symbol: W04 = Ext. procurement
Text Symbol: W05 = PRef. group-internal
Text Symbol: WDK = Cross-plant preference determination Date:
Text Symbol: Z04 = Preference rule Preference new
Text Symbol: Z05 = |Zone Mat. value components Det. value New |
Text Symbol: Z06 = | OriginalProd. Share-% |
Text Symbol: Z07 = | Non-origProd. Share-% w/o class.change Share-% |
Text Symbol: Z08 = | w/ class.change Share-% |
Text Symbol: ZK1 = |Zone Payer Val.ItChg. Val.w/oItChg. Val.NonOrig. Val.Orig. Det.Price |
Text Symbol: ZP0 = | BOM component | Description | CompQty | Val|VD|PS|DO|ComCod |Surch.%| MAP/std price| Det.price |
Text Symbol: ZW1 = |Zone Rule PreferenceNew Det. value New|
Text Symbol: ZW2 = |Plant Val.ItChg Val.w/oItChg Val.NonOrig. Val.Orig. |
Text Symbol: R01 = Standard rule
Text Symbol: 002 = Preference determination
Text Symbol: 005 = Plant <-- 5 digits
Text Symbol: 009 = Surcharge for determined price
Text Symbol: 010 = Material <-- 11 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: 013 = Base qty <-- 13 digits
Text Symbol: 014 = Ctry
Text Symbol: 015 = PrefGrp
Text Symbol: 022 = CommCode;
Text Symbol: 025 = Preference zone ;
Text Symbol: 050 = |- - - - - - - - - C O M P O N E N T D A T A - - - - - - - - - - - - - - - - - -|
Text Symbol: 053 = Bill of Material
Text Symbol: 054 = Usage/Alt.
INCLUDE RMPREWDP.
No SAP DATABASE tables are accessed within this REPORT code!
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_PREW' 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 = 'MMPREW_PRO_02' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = TABLES table = xmmprew_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 = 'MMPREW_PRO_01' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = TABLES table = xmmprew_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 = 'MMPREW_PRO_01_B' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = TABLES table = xmmprew_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 = 'MMPREW_PRO_03' all_records_of_object = 'X' automatic_conversion = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = TABLES table = xmmprew_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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RMPREWDI - Preference_PG: Display customs logs directly or from archive RMPREWDI - Preference_PG: Display customs logs directly or from archive RMPREW50 - documentation and ABAP source code RMPREFWR - Preference: Archiving preference results - Write in the archive RMPREFWR - Preference: Archiving preference results - Write in the archive RMPREFRL - Preference: Reload Archiving - Test