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

RMPREF30WG SAP ABAP INCLUDE - documentation and ABAP source code







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


INCLUDES used within this REPORT RMPREF30WG

No INCLUDES are used within this REPORT code!


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:

PREFERENCE_COSTING_BGWG CALL FUNCTION 'PREFERENCE_COSTING_BGWG' EXPORTING p_werks = pm_werks p_update = space ***** p_mdmps = pm_mdmps "Später Auflösen p_alpauf = pm_apauf p_pwlen = pm_pwlen topmat = cstmat p_prozen = p_prozen p_land1 = p_land1 p_pwggr = p_pwggr IMPORTING w_marc = w_marc kz_no_matstamm_update = kz_no_matstamm_update kz_no_condition_insert = kz_no_condition_insert kp_prozen = kp_prozen TABLES stb = p_stb matcat = matcat t_matwerte = t_matwerte data_log = data_log_dummy error_log = error_log_dummy k_tab = komptab int_mape = int_mape_dummy bg_werte = bg_werte_dummy bg_kond = bg_kond_dummy regeltab = int_pref_dummy bg_wertewg = bg_wertewg bg_kondwg = bg_kondwg pwggr_werks = sel_werks EXCEPTIONS hs_opcode_failure = 01 no_plant = 02 no_stawn = 03 no_rule_defined = 04 no_procedure_defined = 05 failure_read_tab = 06 failure_read_marc = 07 failure_mod_tab = 08 failure_komponente = 09.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = w_mara return = mtcor TABLES seqmat01 = tdummy EXCEPTIONS account_not_found = 01 batch_not_found = 02 forecast_not_found = 03 lock_on_account = 04 lock_on_material = 05 lock_on_plant = 06 lock_on_sales = 07 lock_on_sloc = 08 lock_system_error = 09 material_not_found = 10 plant_not_found = 11 sales_not_found = 12 sloc_not_found = 13 slocnumber_not_found = 14 sloctype_not_found = 15 text_not_found = 16 unit_not_found = 17.

PREFERENCE_PRICE_UPDATE_WG CALL FUNCTION 'PREFERENCE_PRICE_UPDATE_WG' IN UPDATE TASK EXPORTING i_matnr = sort_mast-matnr i_land1 = p_land1 i_pwggr = p_pwggr TABLES xmapewg = int_mapewg.

ENQUEUE_EMMAPEWGE CALL FUNCTION 'ENQUEUE_EMMAPEWGE' EXPORTING matnr = sort_mast-matnr land1 = p_land1 pwggr = p_pwggr EXCEPTIONS system_failure = 2 OTHERS = 3.

RV_CONDITION_COPY CALL FUNCTION 'RV_CONDITION_COPY' EXPORTING application = con_v condition_table = con_t180 "Konditionstabelle condition_type = con_prew "Konditionsart date_from = sy-datlo "Von jetzt an date_to = con_ultimo "Bis Ultimo enqueue = 'X' "Sperren ist besser i_komk = komk i_komp = komp key_fields = komg "Schlüssel maintain_mode = 'A' "Lieber A als B no_authority_check = 'X' "X wie nix keep_old_records = ' ' OVERLAP_CONFIRMED = 'X' IMPORTING e_komk = komk e_komp = komp new_record = i_new_record TABLES copy_records = w_komv EXCEPTIONS enqueue_on_record = 01 invalid_application = 02 invalid_condition_number = 03 invalid_condition_type = 04 no_authority_ekorg = 05 no_authority_kschl = 06 no_authority_vkorg = 07 no_selection = 08 table_not_valid = 09.

RV_CONDITION_SAVE CALL FUNCTION 'RV_CONDITION_SAVE'.

RV_CONDITION_RESET CALL FUNCTION 'RV_CONDITION_RESET'.

CONVERT_TO_FOREIGN_CURRENCY CALL FUNCTION 'CONVERT_TO_FOREIGN_CURRENCY' EXPORTING * CLIENT = SY-MANDT date = sy-datum foreign_currency = o_waers local_amount = p_betrag local_currency = i_waers * RATE = 0 * TYPE_OF_RATE = 'M' * READ_TCURR = 'X' IMPORTING * EXCHANGE_RATE = FOREIGN_AMOUNT = p_betrag * FOREIGN_FACTOR = * LOCAL_FACTOR = * EXCHANGE_RATEX = * DERIVED_RATE_TYPE = * FIXED_RATE = EXCEPTIONS NO_RATE_FOUND = 1 OVERFLOW = 2 NO_FACTORS_FOUND = 3 NO_SPREAD_FOUND = 4 DERIVED_2_TIMES = 5 OTHERS = 6 .

PREFERENCE_PROTOCOL_WG_UPDATE CALL FUNCTION 'PREFERENCE_PROTOCOL_WG_UPDATE' IN UPDATE TASK TABLES xmmprew_pro_01 = xmmprew_pro_01 xmmprew_pro_01_b = xmmprew_pro_01_b xmmprew_pro_02 = xmmprew_pro_02 xmmprew_pro_03 = xmmprew_pro_03.



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