SAP Reports / Programs | Sales and Distribution | Foreign Trade | Basic Functions(SD-FT-PRO) SAP SD

RMPREWDI SAP ABAP Report - Preference_PG: Display customs logs directly or from archive







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


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 RMPREWDI. "Basic submit
SUBMIT RMPREWDI AND RETURN. "Return to original report after report execution complete
SUBMIT RMPREWDI 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_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.





Text Symbol: 056 = New pref.
Text Symbol: 057 = OldAssemb.
Text Symbol: A01 = ArchiveData
Text Symbol: A02 = current
Text Symbol: DI0 = Pref. determin. as of
Text Symbol: DRC = Control log Time:
Text Symbol: DRK = Preference determination Date :
Text Symbol: DRP = Log Time :
Text Symbol: DRS = Page:
Text Symbol: DRW = Control log for plant Time:
Text Symbol: R00 = Procedure HTS item Op.code Percent Det.price


INCLUDES used within this REPORT RMPREWDI

INCLUDE RMPREWDP.


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_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.



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