RMLIFO30 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 RMLIFO30 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
MRL8 - Create Base Layer
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: LS_ARCHV = D Archive
Selection Text: LS_ERRLS = D Process Output
Selection Text: PA_BUKRS = D Company Code
Selection Text: PA_GJAHR = D Fiscal Year
Selection Text: PA_GJE = D Values for Previous Year
Selection Text: PA_METHD = D LIFO/FIFO Method
Selection Text: PA_MYPER = D Posting Period
Selection Text: PA_UPDT = D Database Update
Selection Text: PA_VERSI = D Layer Version
Selection Text: PA_VOM = D Previous Month's Values
Selection Text: PA_VVJ = D Values for Year Before Last
Selection Text: PA_VVM = D Previous Month's Values
Selection Text: SO_BWKEY = Plant
Selection Text: SO_MATNR = D Material
Selection Text: SO_MTART = D Material Type
Selection Text: SO_POOLN = D LIFO Pool
Title: LIFO Valuation: Create Base Layer
Text Symbol: 109 = Restriction of Selection
Text Symbol: 112 = Create Base Layer
Text Symbol: 114 = Material Master:
Text Symbol: 115 = LIFO Method
Text Symbol: 117 = Indexing (Archive Link)
Text Symbol: 120 = Previous Month
Text Symbol: 121 = Previous Year
Text Symbol: 122 = Yr Before Last
Text Symbol: 124 = MnthBeforeLast
Text Symbol: 127 = Procedure
Text Symbol: 130 = Print List
Text Symbol: 151 = Application log saved
Text Symbol: 162 = Messages
Text Symbol: 164 = Output messages
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: 108 = Settlement Period
Text Symbol: 001 = Page
INCLUDE MRYTAB01.
INCLUDE MRYTAB03.
INCLUDE MRYPAR01.
INCLUDE MRYPAR10.
No SAP DATABASE tables are accessed within this REPORT code!
MY_BEFORE_OUTPUT_PROCESS CALL FUNCTION 'MY_BEFORE_OUTPUT_PROCESS' EXPORTING i_prog = 'LIFO30' i_versi_space = versi_space IMPORTING e_level = level e_myebene = ebene CHANGING xs_mypar = mypar xs_niwefy = sniwefy x_bukrs = pa_bukrs x_gjahr = pa_gjahr x_myper = pa_myper x_myver = pa_versi x_method = pa_methd.
MY_APPLICATION_LOG_DISPLAY CALL FUNCTION 'MY_APPLICATION_LOG_DISPLAY' EXPORTING i_prgid = sniwe-prgid i_repid = sniwe-repid i_tcode = sniwe-tcode.
MY_METHOD_F4_HELP CALL FUNCTION 'MY_METHOD_F4_HELP' EXPORTING i_repid = sy-repid i_dynnr = sy-dynnr i_field = 'PA_METHD' i_myxxfo = c_myxxfo i_myfid = space.
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 is_pool = tpool IMPORTING es_niwemat = sniwemat TABLES tra_mtart = so_mtart EXCEPTIONS unit_conversion_error = 1 account_assignment_error = 2 mtart_check = 3 OTHERS = 4.
TPOOL_SINGLE_READ CALL FUNCTION 'TPOOL_SINGLE_READ' EXPORTING tpool_mykey = mykey tpool_mypool = *myms-mypool IMPORTING wtpool = tpool EXCEPTIONS not_found = 1 OTHERS = 2.
MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING matnr = *myms-matnr meins = sniwemat-meins input = menge meinh = tpool-meins IMPORTING output = jpooltab-menge EXCEPTIONS conversion_not_found = 1 no_meinh = 2.
MY_MATERIAL_LAYER_UPDATE CALL FUNCTION 'MY_MATERIAL_LAYER_UPDATE' EXPORTING i_matlayer = *mymlm i_tcode = c_tcode IMPORTING e_com_work = com_work CHANGING c_insert_count = mysta-insct c_update_count = mysta-updct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 4.
MY_POOL_LAYER_UPDATE CALL FUNCTION 'MY_POOL_LAYER_UPDATE' EXPORTING i_poollayer = *myplm i_tcode = c_tcode IMPORTING e_com_work = com_work CHANGING c_insert_count = mysta-insct c_update_count = mysta-updct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 4.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = lv_repid is_layout = is_layout it_fieldcat = it_fldcat1 it_events = it_events TABLES t_outtab = gt_outtab_pool EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING * i_logo = 'HTMLCNTL_TESTHTM2_SAPLOGO' * I_LOGO = 'ENJOYSAP_LOGO' it_list_commentary = gt_top_of_page.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_end_of_page * I_LOGO = i_end_of_list_grid = gc_var "'X' * I_ALV_FORM = .
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_end_of_page * I_LOGO = i_end_of_list_grid = gc_var " 'X' * I_ALV_FORM = .
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 RMLIFO30 or its description.
RMLIFO30 - LIFO Valuation: Create Base Layer RMLIFO30 - LIFO Valuation: Create Base Layer RMLIFO28 - LIFO Valuation: Adjust Units of Measure/Price Units RMLIFO28 - LIFO Valuation: Adjust Units of Measure/Price Units RMLIFO22 - LIFO Valuation: Display Pool Formation RMLIFO22 - LIFO Valuation: Display Pool Formation