SAP Reports / Programs

RMLIFO50 SAP ABAP Report - Delete LIFO Valuation Data







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

MRLB - Delete 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 RMLIFO50. "Basic submit
SUBMIT RMLIFO50 AND RETURN. "Return to original report after report execution complete
SUBMIT RMLIFO50 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_BWKEY = Plant
Selection Text: PA_ERRLS = D .
Selection Text: PA_MYML = D .
Selection Text: PA_MYMLM = D .
Selection Text: PA_MYMP = D .
Selection Text: PA_MYMP1 = D .
Selection Text: PA_MYPL = D .
Selection Text: PA_MYPLM = D .
Selection Text: PA_UPDT = D .
Selection Text: SO_BUDAT = D .
Selection Text: SO_BUKRS = D .
Selection Text: SO_GJAHR = D .
Selection Text: SO_MATNR = D .
Selection Text: SO_MYVER = D .
Selection Text: SO_PERID = D .
Selection Text: SO_POOLN = D .
Title: Delete LIFO Valuation Data
Text Symbol: 059 = <-- Caution!
Text Symbol: 060 = Material Number
Text Symbol: 061 = Pool Number
Text Symbol: 083 = Restriction of Selection
Text Symbol: 090 = LIFO
Text Symbol: 091 = FIFO
Text Symbol: 102 = Update
Text Symbol: 104 = Version
Text Symbol: 105 = Options
Text Symbol: 112 = Delete Data
Text Symbol: 113 = Options
Text Symbol: 114 = Material Master:
Text Symbol: 130 = Print List
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: 204 = Number of Records for Deletion





Text Symbol: 266 = Delete Backup Version Also
Text Symbol: X01 = CoCd
Text Symbol: X03 = MvTy
Text Symbol: 057 = Pool Monthly Layer
Text Symbol: 001 = |V|ValA|Material |Year| |
Text Symbol: 002 = |V|ValA|Pool|Year| |
Text Symbol: 003 = |ValA|Material |Year|Pe|
Text Symbol: 004 = Number of deleted records:
Text Symbol: 005 = D E L E T E single material year layer
Text Symbol: 006 = D E L E T E FIFO results
Text Symbol: 008 = |V|ValA|Material |Year|Pe| |
Text Symbol: 009 = |V|ValA|Pool|Year|Pe| |
Text Symbol: 010 = |ValA|Material |Date | |
Text Symbol: 011 = |V|CoCd|Material |Year| |
Text Symbol: 012 = |V|CoCd|Pool|Year|
Text Symbol: 013 = |CoCd|Material |Year|Pe|
Text Symbol: 014 = |V|CoCd|Material |Year|Pe| |
Text Symbol: 015 = |V|CoCd|Pool|Year|Pe| |
Text Symbol: 016 = |CoCd|Material |Date | |
Text Symbol: 017 = |ValA|Material |Document |Year|Item| |
Text Symbol: 018 = |CoCd|Material |Document |Year|Item| |
Text Symbol: 019 = D E L E T E single material month layer
Text Symbol: 020 = D E L E T E pool year layer
Text Symbol: 021 = D E L E T E pool month layer
Text Symbol: 022 = D E L E T E receipt data per period
Text Symbol: 023 = D E L E T E single receipt data
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 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: 050 = Which data should be deleted?
Text Symbol: 051 = Monthly Receipts
Text Symbol: 052 = Material Annual Layer
Text Symbol: 053 = Pool Annual Layer
Text Symbol: 054 = Mat. Monthly Layer
Text Symbol: 056 = Single Receipts


INCLUDES used within this REPORT RMLIFO50

INCLUDE MRYTAB01.
INCLUDE MRYTAB03.
INCLUDE MRYPAR07.
INCLUDE MRYPAR06.
INCLUDE MRYDAT01.
INCLUDE MRYDAT03.
INCLUDE MRYDAT04.
INCLUDE MRYDAT06.
INCLUDE MRYMAC01.
INCLUDE MRYF_COMMON_ROUTINES_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:

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING program = 'RMLIFO50' restriction = restriction EXCEPTIONS too_late = 1 repeated = 2 selopt_without_options = 3 selopt_without_signs = 4 invalid_sign = 5 empty_option_list = 6 invalid_kind = 7 repeated_kind_a = 8 OTHERS = 9.

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 = pa_myxfo IMPORTING e_val_level = level e_mymp_level = mymp_level.

MY_VALUATION_AREAS_GET CALL FUNCTION 'MY_VALUATION_AREAS_GET' EXPORTING i_level = level i_mymp_level = mymp_level i_actvt = akt_flag i_myxxfo = pa_myxfo TABLES tra_bukrs = ra_bukrs tra_bwkey = ra_bwkey tra_mykey = ra_mykey tra_mymp = ra_mymp.

MY_MATERIAL_LAYER_ARRAY_FETCH CALL FUNCTION 'MY_MATERIAL_LAYER_ARRAY_FETCH' TABLES r_myver = so_myver r_mykey = ra_mykey r_matnr = ra_matnr r_gjahr = so_gjahr r_period = so_perid t_myml = tab_myml t_mymlm = tab_mymlm EXCEPTIONS no_material = 4.

MY_POOL_LAYER_ARRAY_FETCH CALL FUNCTION 'MY_POOL_LAYER_ARRAY_FETCH' TABLES r_myver = so_myver r_mykey = ra_mykey r_mypol = so_pooln r_gjahr = so_gjahr r_period = so_perid t_mypl = tab_mypl t_myplm = tab_myplm EXCEPTIONS no_pool = 4.

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_gjahr = so_gjahr r_period = so_perid r_budat = so_budat t_mymp = tab_mymp t_mymp1 = tab_mymp1 EXCEPTIONS no_data = 4.

MY_FIFO_RESULTS_ARRAY_FETCH CALL FUNCTION 'MY_FIFO_RESULTS_ARRAY_FETCH' TABLES r_myfky = ra_mykey r_matnr = ra_matnr r_gjahr = so_gjahr r_period = so_perid t_mymft = tab_mymft EXCEPTIONS not_found = 4.

MY_MATERIAL_LAYER_DELETE CALL FUNCTION 'MY_MATERIAL_LAYER_DELETE' EXPORTING i_matlayer = *mymlm i_tcode = pa_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_DELETE



CALL FUNCTION 'MY_MATERIAL_LAYER_DELETE' EXPORTING i_matlayer = *mymlm i_tcode = pa_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_DELETE CALL FUNCTION 'MY_POOL_LAYER_DELETE' EXPORTING i_poollayer = *myplm i_tcode = pa_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_DELETE CALL FUNCTION 'MY_POOL_LAYER_DELETE' EXPORTING i_poollayer = *myplm i_tcode = pa_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

ENQUEUE_EMYMP CALL FUNCTION 'ENQUEUE_EMYMP' EXPORTING mykey = *mymp-mykey matnr = *mymp-matnr gjahr = *mymp-gjahr EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_RECEIPT_DATA_DELETE CALL FUNCTION 'MY_RECEIPT_DATA_DELETE' EXPORTING i_mymp = *mymp i_tcode = pa_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 4.

DEQUEUE_EMYMP CALL FUNCTION 'DEQUEUE_EMYMP' EXPORTING mykey = *mymp-mykey matnr = *mymp-matnr gjahr = *mymp-gjahr.

ENQUEUE_EMYMP1 CALL FUNCTION 'ENQUEUE_EMYMP1' EXPORTING mykey = *mymp1-mykey matnr = *mymp1-matnr mblnr = *mymp1-mblnr mjahr = *mymp1-mjahr EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_RECEIPT_DATA_DELETE CALL FUNCTION 'MY_RECEIPT_DATA_DELETE' EXPORTING i_mymp1 = *mymp1 i_tcode = pa_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 4.

DEQUEUE_EMYMP1 CALL FUNCTION 'DEQUEUE_EMYMP1' EXPORTING mykey = *mymp1-mykey matnr = *mymp1-matnr mblnr = *mymp1-mblnr mjahr = *mymp1-mjahr.

ENQUEUE_EMYMFT CALL FUNCTION 'ENQUEUE_EMYMFT' EXPORTING myfky = *mymft-myfky matnr = *mymft-matnr datlo = *mymft-datlo EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_FIFO_RESULT_DELETE CALL FUNCTION 'MY_FIFO_RESULT_DELETE' EXPORTING i_mymft = *mymft i_tcode = pa_tcode IMPORTING e_com_work = com_work CHANGING c_delete_count = mysta-delct c_commit_count = mysta-dtbct EXCEPTIONS not_found = 1.

DEQUEUE_EMYMFT CALL FUNCTION 'DEQUEUE_EMYMFT' EXPORTING myfky = *mymft-myfky matnr = *mymft-matnr datlo = *mymft-datlo.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_end_of_list.



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