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

RMLIFO38 SAP ABAP Report - LIFO Valuation: Create Layer Version as Copy







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

MRLF - Create Version as Copy


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 RMLIFO38. "Basic submit
SUBMIT RMLIFO38 AND RETURN. "Return to original report after report execution complete
SUBMIT RMLIFO38 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: SO_POOLN = D .
Selection Text: SO_MATNR = D .
Selection Text: SO_BUKRS = D .
Selection Text: P_INSAL = D .
Selection Text: PA_MYPLX = D .
Selection Text: PA_MYPLM = D .
Selection Text: PA_MYPL = D .
Selection Text: PA_MYMLX = D .
Selection Text: PA_MYMLM = D .
Selection Text: PA_MYML = D .
Selection Text: SO_BWKEY = Plant
Title: LIFO Valuation: Create Layer Version as Copy
Text Symbol: 059 = <-- Caution!
Text Symbol: 083 = Restriction of Selection
Text Symbol: 100 = Copy Layer for Version
Text Symbol: 104 = Layer Version
Text Symbol: 111 = Update Results
Text Symbol: 112 = Create Layer for New Version
Text Symbol: 113 = Options
Text Symbol: 114 = Overwrite Existing Layer Versions
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: 001 = |Pool ValA Year Pe|
Text Symbol: 002 = |Material ValA Year Pe|
Text Symbol: 003 = C O P Y L A Y E R V E R S I O N
Text Symbol: 004 = Page
Text Symbol: 005 = Copy from layer version
Text Symbol: 006 = to layer version
Text Symbol: 017 = To:
Text Symbol: 033 = No data updated
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 = Records updated
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: 050 = Reference
Text Symbol: 051 = New Layer Version
Text Symbol: 052 = Copy which data?
Text Symbol: 053 = Material Annual Layer
Text Symbol: 054 = Mat. Monthly Layer
Text Symbol: 055 = Pool Annual Layer
Text Symbol: 056 = Pool Monthly Layer
Text Symbol: 057 = Material Annual->Monthly Layer
Text Symbol: 058 = Pool Annual->Mnthly Layer


INCLUDES used within this REPORT RMLIFO38

INCLUDE MRYTAB01.
INCLUDE MRYTAB03.
INCLUDE MRYDAT01.
INCLUDE MRYDAT03.
INCLUDE MRYDAT04.
INCLUDE MRYDAT06.
INCLUDE MRYMAC01.
INCLUDE RMLIFO38_I_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_VALUATION_LEVEL_GET CALL FUNCTION 'MY_VALUATION_LEVEL_GET' EXPORTING i_myxxfo = lifo IMPORTING e_val_level = level e_mymp_level = mymp_level e_tcurm = tcurm EXCEPTIONS no_lifo = 1 no_fifo = 2 OTHERS = 3.

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 = lifo IMPORTING e_val_level = level.

MY_VALUATION_AREAS_GET CALL FUNCTION 'MY_VALUATION_AREAS_GET' EXPORTING i_level = level i_actvt = akt_flag i_myxxfo = lifo TABLES tra_bukrs = ra_bukrs tra_bwkey = ra_bwkey tra_mykey = ra_mykey.

TMY05_SINGLE_READ





CALL FUNCTION 'TMY05_SINGLE_READ' EXPORTING i_mykey = ra_mykey-low i_myver = pa_overs IMPORTING e_my05 = tmy05 EXCEPTIONS tmy05_error = 4.

MY_PARAMETERS_GET CALL FUNCTION 'MY_PARAMETERS_GET' EXPORTING i_bukrs = t001k-bukrs i_mykey = ra_mykey-low i_method = tab_vers-ometh i_myxxfo = lifo IMPORTING e_mypar = tab_vers-omypar.

TMY05_SINGLE_READ CALL FUNCTION 'TMY05_SINGLE_READ' EXPORTING i_mykey = ra_mykey-low i_myver = pa_nvers IMPORTING e_my05 = tmy05 EXCEPTIONS tmy05_error = 4.

MY_PARAMETERS_GET CALL FUNCTION 'MY_PARAMETERS_GET' EXPORTING i_bukrs = t001k-bukrs i_mykey = ra_mykey-low i_method = tab_vers-nmeth i_myxxfo = lifo IMPORTING e_mypar = tab_vers-nmypar.

MY_MATERIAL_LAYER_ARRAY_FETCH CALL FUNCTION 'MY_MATERIAL_LAYER_ARRAY_FETCH' TABLES r_myver = ra_myver r_mykey = ra_mykey r_matnr = so_matnr r_gjahr = ra_gjahr r_period = ra_period t_myml = tab_myml t_mymlm = tab_mymlm EXCEPTIONS no_material = 4.

MY_MATERIAL_LAYER_UPDATE CALL FUNCTION 'MY_MATERIAL_LAYER_UPDATE' EXPORTING i_matlayer = *mymlm i_tcode = c_tcode IMPORTING e_com_work = com_work e_ins_up = ins_up CHANGING c_update_count = mysta-updct c_insert_count = mysta-insct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

MY_MATERIAL_LAYER_DELETE CALL FUNCTION 'MY_MATERIAL_LAYER_DELETE' EXPORTING i_matlayer = *mymlm i_tcode = c_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

MY_MATERIAL_LAYER_UPDATE CALL FUNCTION 'MY_MATERIAL_LAYER_UPDATE' EXPORTING i_matlayer = *mymlm i_tcode = c_tcode IMPORTING e_com_work = com_work e_ins_up = ins_up CHANGING c_update_count = mysta-updct c_insert_count = mysta-insct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

MY_MATERIAL_LAYER_DELETE CALL FUNCTION 'MY_MATERIAL_LAYER_DELETE' EXPORTING i_matlayer = *mymlm i_tcode = c_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

MY_POOL_LAYER_ARRAY_FETCH CALL FUNCTION 'MY_POOL_LAYER_ARRAY_FETCH' TABLES r_myver = ra_myver r_mykey = ra_mykey r_mypol = so_pooln r_gjahr = ra_gjahr r_period = ra_period t_mypl = tab_mypl t_myplm = tab_myplm EXCEPTIONS no_pool = 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 e_ins_up = ins_up CHANGING c_update_count = mysta-updct c_insert_count = mysta-insct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

MY_POOL_LAYER_DELETE CALL FUNCTION 'MY_POOL_LAYER_DELETE' EXPORTING i_poollayer = *myplm i_tcode = c_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

MY_POOL_LAYER_UPDATE CALL FUNCTION 'MY_POOL_LAYER_UPDATE' EXPORTING i_poollayer = *myplm i_tcode = c_tcode IMPORTING e_com_work = com_work e_ins_up = ins_up CHANGING c_update_count = mysta-updct c_insert_count = mysta-insct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

MY_POOL_LAYER_DELETE CALL FUNCTION 'MY_POOL_LAYER_DELETE' EXPORTING i_poollayer = *myplm i_tcode = c_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_header.



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