SAP Reports / Programs

MRY_ARP_CALCULATE SAP ABAP Report - Calculate Average Receipt Price







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

MRY1 - Calculate Average Receipt Price


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 MRY_ARP_CALCULATE. "Basic submit
SUBMIT MRY_ARP_CALCULATE AND RETURN. "Return to original report after report execution complete
SUBMIT MRY_ARP_CALCULATE 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_PERAB = Stock from Period (YYYYMM)
Selection Text: P_SIMAB = Include Opening Stock
Selection Text: SO_PERID = Posting Periods (YYYYMM)
Selection Text: PA_BUKRS = D .
Selection Text: PA_MYMPX = D .
Selection Text: PA_MYMPY = D .
Selection Text: PA_UPDAT = D .
Selection Text: PA_UPDT = D .
Selection Text: SO_BUDAT = D .
Selection Text: SO_BWKEY = D .
Selection Text: SO_MATNR = D .
Selection Text: SO_MTART = D .
Selection Text: SO_POOLN = D .
Title: Calculate Average Receipt Price
Text Symbol: 176 = Update Prices
Text Symbol: 181 = Statistics
Text Symbol: 182 = Run Parameters
Text Symbol: 183 = Database Commits
Text Symbol: 188 = Program Run ID Seq.No. Updates Last Update
Text Symbol: 190 = Program Run ID:
Text Symbol: 191 = Report Name:
Text Symbol: 192 = Runtime of:
Text Symbol: 193 = Variant:
Text Symbol: 195 = Duration:
Text Symbol: 201 = Time Restrictions
Text Symbol: 202 = Receipt Data
Text Symbol: 203 = Opening Stock
Text Symbol: 204 = Price Selection
Text Symbol: 205 = Opening Stock Period Not Equal
Text Symbol: 206 = Period for opening stock not selected
Text Symbol: 207 = Opening stock is not taken into account
Text Symbol: 208 = Valid price not found for opening stock
Text Symbol: 209 = Material
Text Symbol: 210 = Valuation Area
Text Symbol: 211 = Previous period from selection
Text Symbol: 172 = Single Receipts
Text Symbol: 001 = CoCd ValA Material Material Short Text Average Receipt Price
Text Symbol: 017 = to





Text Symbol: 033 = No data updated
Text Symbol: 034 = Value Changes:
Text Symbol: 035 = Price Changes:
Text Symbol: 036 = Records Updated
Text Symbol: 037 = BTCI Entries Created
Text Symbol: 038 = Records Deleted
Text Symbol: 039 = Records Created
Text Symbol: 040 = Record(s) Changed
Text Symbol: 041 = Price Change Documents Created:
Text Symbol: 042 = Database Updates:
Text Symbol: 043 = Material Ledger:
Text Symbol: 044 = Records Read
Text Symbol: 046 = Val. Alternatives:
Text Symbol: 047 = Records Updated
Text Symbol: 058 = List empty!
Text Symbol: 059 = Caution
Text Symbol: 071 = Company Code
Text Symbol: 100 = Update Material Master
Text Symbol: 111 = Change Material Prices
Text Symbol: 113 = Options
Text Symbol: 114 = Material Master:
Text Symbol: 129 = Database Update
Text Symbol: 130 = Print List
Text Symbol: 135 = Valuation Level
Text Symbol: 139 = Update Phys. Inv. Prices
Text Symbol: 148 = Distribute Price Proportionally
Text Symbol: 149 = Adopt Price at Flat-Rate
Text Symbol: 151 = &1
Text Symbol: 156 = List Format
Text Symbol: 161 = Schedule Manager
Text Symbol: 162 = Messages
Text Symbol: 163 = Batch Input
Text Symbol: 171 = Monthly Receipts


INCLUDES used within this REPORT MRY_ARP_CALCULATE

INCLUDE MRYTAB01.
INCLUDE MRYTAB02.
INCLUDE MRYTAB03.
INCLUDE MRYPAR12.
INCLUDE MRYPAR05.
INCLUDE MRYPAR14.





INCLUDE MRY_ARP_CALCULATE_DARKP_DEFINE.
INCLUDE MRYDAT01.
INCLUDE MRYDAT03.
INCLUDE MRYDAT04.
INCLUDE MRYDAT05.
INCLUDE MRYDAT06.
INCLUDE MRYMAC01.
INCLUDE MRYF_COMMON_ROUTINES_ALV.


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:

MY_BEFORE_OUTPUT_PROCESS CALL FUNCTION 'MY_BEFORE_OUTPUT_PROCESS' EXPORTING i_myxxfo = arp i_myfid = single i_prog = 'ARPCAL' i_selc = selc_flag IMPORTING e_level = level e_up_level = up_level CHANGING xs_mypar = mypar xs_niwe = sniwe xs_niwels = sniwels x_bukrs = pa_bukrs.

FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING i_bukrs = pa_bukrs IMPORTING e_t001 = l_t001 EXCEPTIONS system_error = 1 others = 2.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING I_GJAHR = so_perid-low(4) I_PERIV = l_t001-periv I_POPER = l_t009b-poper IMPORTING E_DATE = l_date EXCEPTIONS INPUT_FALSE = 1 T009_NOTFOUND = 2 T009B_NOTFOUND = 3 OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING I_DATE = l_date I_PERIV = l_t001-periv IMPORTING E_BUPER = l_t009b-poper E_GJAHR = l_t009b-bdatj EXCEPTIONS INPUT_FALSE = 1 T009_NOTFOUND = 2 T009B_NOTFOUND = 3 OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING I_DATE = so_budat-low I_PERIV = l_t001-periv IMPORTING E_BUPER = l_t009b-poper E_GJAHR = l_t009b-bdatj EXCEPTIONS INPUT_FALSE = 1 T009_NOTFOUND = 2 T009B_NOTFOUND = 3 OTHERS = 4.

FIRST_DAY_IN_PERIOD_GET CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET' EXPORTING I_GJAHR = l_t009b-bdatj I_PERIV = l_t001-periv I_POPER = l_t009b-poper IMPORTING E_DATE = l_date EXCEPTIONS INPUT_FALSE = 1 T009_NOTFOUND = 2 T009B_NOTFOUND = 3 OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING I_DATE = l_date I_PERIV = l_t001-periv IMPORTING E_BUPER = l_t009b-poper E_GJAHR = l_t009b-bdatj EXCEPTIONS INPUT_FALSE = 1 T009_NOTFOUND = 2 T009B_NOTFOUND = 3 OTHERS = 4.

MY_SCHEDULE_MANAGER_DISPLAY CALL FUNCTION 'MY_SCHEDULE_MANAGER_DISPLAY' EXPORTING i_repid = sniwe-repid.

MY_APPLICATION_LOG_DISPLAY CALL FUNCTION 'MY_APPLICATION_LOG_DISPLAY' EXPORTING i_prgid = sniwe-prgid i_repid = sniwe-repid i_tcode = sniwe-tcode.

MY_VALUATION_LEVEL_GET CALL FUNCTION 'MY_VALUATION_LEVEL_GET' EXPORTING i_myxxfo = arp IMPORTING e_val_level = level e_mymp_level = mymp_level e_tcurm = tcurm.

MY_PRICES_UPDATE_POPUP CALL FUNCTION 'MY_PRICES_UPDATE_POPUP' EXPORTING is_mypar = mypar TABLES t_priceact = tab_priceact CHANGING xs_niwe = sniwe.

MY_PRICE_CHANGE_POPUP CALL FUNCTION 'MY_PRICE_CHANGE_POPUP' EXPORTING i_bukrs = pa_bukrs CHANGING p_sniwe = sniwe.

MY_LIST_LAYOUT_POPUP CALL FUNCTION 'MY_LIST_LAYOUT_POPUP' EXPORTING is_niwe = sniwe CHANGING xs_niwels = sniwels x_selc = selc_flag.

MY_BASE_PRICE_POPUP CALL FUNCTION 'MY_BASE_PRICE_POPUP' EXPORTING is_niwefy = sniwefy TABLES t_priceact = tab_priceact CHANGING xs_niwe = sniwe.

MY_SCHEDULE_MANAGER_PREPARE



CALL FUNCTION 'MY_SCHEDULE_MANAGER_PREPARE' EXPORTING i_witem = wf_witem i_okey = wf_okey i_wlist = wf_wlist.



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