SAP Reports / Programs | Materials Management | Inventory Management | Balance Sheet Valuation Procedures(MM-IM-VP) SAP MM

MRY_ARP_CALCULATE_MAIN_LOOP SAP ABAP INCLUDE - Form Main_Loop (MRY_ARP_CALCULATE)







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


Text pool values


Title: Form Main_Loop (MRY_ARP_CALCULATE)


INCLUDES used within this REPORT MRY_ARP_CALCULATE_MAIN_LOOP

INCLUDE MRYF_MYPAR_GET.
INCLUDE MRY_ARP_CALCULATE_PRICE_UPDATE.


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_FISCAL_YEAR_ANALYZE CALL FUNCTION 'MY_FISCAL_YEAR_ANALYZE' EXPORTING i_bukrs = pa_bukrs i_stper = rm08y-period IMPORTING e_niwefy = sniwefy.

MY_MATERIAL_DATA_GET CALL FUNCTION 'MY_MATERIAL_DATA_GET' EXPORTING is_mypar = mypar is_niwe = sniwe i_level = level i_matnr = *myms-matnr i_mykey = mykey it_bwkeys_werks = tab_bwkeys_werks i_acc_assign = x IMPORTING es_niwemat = sniwemat et_niwespl = tab_niwespl TABLES tra_mtart = so_mtart t_mbew_ext = lt_mbew_ext EXCEPTIONS unit_conversion_error = 1 account_assignment_error = 2 mtart_check = 3 OTHERS = 4.

MY_BASE_PRICE_GET CALL FUNCTION 'MY_BASE_PRICE_GET' EXPORTING I_SNIWE = sniwe I_MRY_MT08Y = l_mry_mt08y IMPORTING E_BASIS_PREIS = l_bprice TABLES T_PRICEACT = tab_priceact.

MY_STOCK_HISTORY_READ CALL FUNCTION 'MY_STOCK_HISTORY_READ' EXPORTING I_MRY_MT08Y = l_mry_mt08y I_SNIWEFY = sniwefy TABLES T_STOCK = lt_stock.

MY_BASE_PRICE_GET CALL FUNCTION 'MY_BASE_PRICE_GET' EXPORTING I_SNIWE = sniwe I_MRY_MT08Y = l_mry_mt08y IMPORTING E_BASIS_PREIS = l_bprice TABLES T_PRICEACT = tab_priceact.

MY_STOCK_HISTORY_READ CALL FUNCTION 'MY_STOCK_HISTORY_READ' EXPORTING I_MRY_MT08Y = l_mry_mt08y I_SNIWEFY = sniwefy TABLES T_STOCK = lt_stock.

MY_RECEIPT_DATA_ARRAY_FETCH CALL FUNCTION 'MY_RECEIPT_DATA_ARRAY_FETCH' EXPORTING i_mypar = mypar TABLES r_mymp = ra_mymp r_matnr = ra_matnr r_period = so_perid r_budat = so_budat t_mymp = tab_mymp t_mymp1 = tab_mymp1 EXCEPTIONS no_data = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.



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