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
Below is a list of transaction codes which are relevant to this SAP report
MRY1 - Calculate Average Receipt Price
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_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
INCLUDE MRYTAB01.
INCLUDE MRYTAB02.
INCLUDE MRYTAB03.
INCLUDE MRYPAR12.
INCLUDE MRYPAR05.
INCLUDE MRYPAR14.
No SAP DATABASE tables are accessed within this REPORT code!
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.
CALL FUNCTION 'MY_SCHEDULE_MANAGER_PREPARE' EXPORTING i_witem = wf_witem i_okey = wf_okey i_wlist = wf_wlist.
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.