SAP Reports / Programs

RMLIFO41 SAP ABAP Report - LIFO Valuation: Transfer Layer from Material to Material







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

MRLL - LIFO: Reassign Material 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 RMLIFO41. "Basic submit
SUBMIT RMLIFO41 AND RETURN. "Return to original report after report execution complete
SUBMIT RMLIFO41 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: P_UPDT = D Database Update
Selection Text: PA_ERRLS = D Output messages
Selection Text: LS_REASS = Output reassigned layers
Selection Text: LS_NOACT = Output errors
Selection Text: LS_MYPS3 = D Output assignments
Title: LIFO Valuation: Transfer Layer from Material to Material
Text Symbol: 162 = 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: 303 = Receiving val.area missing
Text Symbol: 307 = Receiving material in pool
Text Symbol: 309 = No LIFO for receiving matl
Text Symbol: 311 = Repeated allocation
Text Symbol: 322 = Source and target ident.
Text Symbol: 330 = Issuing val. area missing
Text Symbol: 333 = Valuation areas missing
Text Symbol: 344 = Material or val. area?
Text Symbol: 380 = No issuing layer exists
Text Symbol: CCD = CoCd
Text Symbol: MAT = Material
Text Symbol: PER = Period
Text Symbol: RSN = Reason Text
Text Symbol: VAL = MvTy
Text Symbol: VER = V
Text Symbol: YER = Yr
Text Symbol: 001 = |ValA Material ValA Material V Yr Period |
Text Symbol: 002 = |CoCd Material CoCd Material V Yr Period |
Text Symbol: 003 = R E A S S I G N L A Y E R
Text Symbol: 004 = Page
Text Symbol: 006 = E R R O R L I S T
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 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: 058 = List empty
Text Symbol: 059 = <-- Caution!
Text Symbol: 111 = Update
Text Symbol: 112 = Reassign layer
Text Symbol: 113 = Options
Text Symbol: 114 = Material Master:
Text Symbol: 126 = Assignment
Text Symbol: 130 = Print list
Text Symbol: 151 = Application log saved


INCLUDES used within this REPORT RMLIFO41

INCLUDE MRYTAB01.
INCLUDE MRYTAB03.
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_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 e_mymp_level = mymp_level e_tcurm = tcurm.

MY_MATERIAL_LAYER_ARRAY_FETCH CALL FUNCTION 'MY_MATERIAL_LAYER_ARRAY_FETCH' TABLES r_myver = ra_myver r_mykey = ra_mykey r_matnr = ra_matnr t_myml = tab_omyml t_mymlm = tab_omymlm EXCEPTIONS no_material = 4.

MYMS_SINGLE_READ CALL FUNCTION 'MYMS_SINGLE_READ' EXPORTING mykey = myk matnr = mat IMPORTING wmyms = *myms EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.

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_update_count = mysta-updct 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 CHANGING c_update_count = mysta-updct 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_DELETE CALL FUNCTION 'MY_MATERIAL_LAYER_DELETE' EXPORTING i_matlayer = s_omymlm 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_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = iv_tabname CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

CONVERT_DATE_TO_EXTERNAL CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL' EXPORTING date_internal = sy-datlo IMPORTING date_external = lv_dat * EXCEPTIONS * DATE_INTERNAL_IS_INVALID = 1 * OTHERS = 2 .

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_alv_top_of_list[].

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 = gt_alv_top_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 RMLIFO41 or its description.