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

RMLIFO30 SAP ABAP Report - LIFO Valuation: Create Base Layer







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MRL8 - Create Base Layer


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 RMLIFO30. "Basic submit
SUBMIT RMLIFO30 AND RETURN. "Return to original report after report execution complete
SUBMIT RMLIFO30 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: 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





Text Symbol: 002 = Records Created
Text Symbol: 003 = |ValA|Material | Qty | Value |
Text Symbol: 004 = |ValA|Pool | Qty | Value |
Text Symbol: 006 = Year:
Text Symbol: 007 = Layer Version:
Text Symbol: 008 = C R E A T I O N O F B A S E L A Y E R
Text Symbol: 009 = Stock for Previous Year
Text Symbol: 010 = Stock for Year Before Last
Text Symbol: 012 = Records Overwritten
Text Symbol: 013 = |CoCd|Material | Qty | Value |
Text Symbol: 014 = |CoCd|Pool | Qty | Value |
Text Symbol: 017 = Period:
Text Symbol: 018 = Stock:MnthBeforeLast
Text Symbol: 019 = Stock: Prev. Mnth
Text Symbol: 021 = Material
Text Symbol: 023 = Pool
Text Symbol: 033 = No data updated
Text Symbol: 035 = Price Changes:
Text Symbol: 036 = Records Updated
Text Symbol: 037 = BTCI Entries Created
Text Symbol: 040 = Records Changed
Text Symbol: 041 = Price Change Docs 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: 059 = <-- Caution!
Text Symbol: 070 = Valuation Area
Text Symbol: 071 = Company Code
Text Symbol: 101 = Compile Layer Values From
Text Symbol: 102 = Update Results
Text Symbol: 104 = Layer Version
Text Symbol: 106 = Fiscal Year
Text Symbol: 107 = Posting Period


INCLUDES used within this REPORT RMLIFO30

INCLUDE MRYTAB01.
INCLUDE MRYTAB03.
INCLUDE MRYPAR01.
INCLUDE MRYPAR10.





INCLUDE MRYPAR12.
INCLUDE MRYPAR06.
INCLUDE MRYDAT01.
INCLUDE MRYDAT03.
INCLUDE MRYDAT04.
INCLUDE MRYDAT06.
INCLUDE MRYF_COMMON_ROUTINES_ALV.
INCLUDE MRYMAC01.


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_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 = .



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