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

RMLIFO33 SAP ABAP Report - Data Transfer for LIFO Valuation







RMLIFO33 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for LIFO/FIFO Valuation: Unloading Data from the R/3 System ..see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RMLIFO33 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

MRLJ - LIFO Data Transfer


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 RMLIFO33. "Basic submit
SUBMIT RMLIFO33 AND RETURN. "Return to original report after report execution complete
SUBMIT RMLIFO33 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Data transferred for LIFO valuation
Selection Text: P_DATEI = Physical File Name
Selection Text: P_LOGFIL = Logical File Name
Selection Text: P_PHYFIL = Physical File Name
Selection Text: SO_BWKEY = Plant
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_PCFIL = D .
Selection Text: PA_SIMUL = D .
Selection Text: PA_UXFIL = 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: Data Transfer for LIFO Valuation
Text Symbol: T05 = VaAr
Text Symbol: T04 = Version
Text Symbol: T03 = Hist
Text Symbol: 001 = Error When Downloading File
Text Symbol: 002 = No. of Records Created:
Text Symbol: 003 = Return Code:
Text Symbol: 007 = Error When Opening File
Text Symbol: 008 = Error Closing File
Text Symbol: 010 = Info on Target File
Text Symbol: 011 = (Simulation)
Text Symbol: 020 = File Name
Text Symbol: 021 = Transfer Data
Text Symbol: 022 = Download
Text Symbol: 025 = Simulation
Text Symbol: 026 = Physical File Name
Text Symbol: 027 = Logical File Name





Text Symbol: 050 = Which data should be transferred?
Text Symbol: 051 = Material Annual Layer
Text Symbol: 052 = Material Monthly Layer
Text Symbol: 053 = Monthly Receipts
Text Symbol: 054 = Pool Annual Layer
Text Symbol: 055 = Pool Monthly Layer
Text Symbol: 057 = Single Receipts
Text Symbol: 083 = Restriction of Selection
Text Symbol: T01 = Rec
Text Symbol: T02 = ID
001 Rec Id Hist Version ValA Material/Pool Year Prd Material Doc


INCLUDES used within this REPORT RMLIFO33

INCLUDE MRYTAB01.
INCLUDE MRYTAB03.
INCLUDE MRYPAR07.
INCLUDE MRYDAT01.
INCLUDE MRYDAT03.
INCLUDE MRYDAT04.
INCLUDE MRYDAT06.


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 i_tabid = tabid IMPORTING e_val_level = level e_mymp_level = mymp_level e_tcurm = tcurm e_up_level = up_level EXCEPTIONS no_lifo = 1 no_fifo = 2 OTHERS = 3.

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.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = p_datei IMPORTING file_name = datei EXCEPTIONS file_not_found = 1.

MY_MATERIAL_LAYER_ARRAY_FETCH CALL FUNCTION 'MY_MATERIAL_LAYER_ARRAY_FETCH' TABLES r_myver = so_myver r_mykey = ra_mykey r_matnr = so_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' TABLES r_mymp = ra_mymp r_matnr = so_matnr r_period = so_perid t_mymp = tab_mymp EXCEPTIONS no_data = 4.

MY_RECEIPT_DATA_ARRAY_FETCH CALL FUNCTION 'MY_RECEIPT_DATA_ARRAY_FETCH' EXPORTING i_mypar = mypar TABLES r_mymp = ra_mymp r_matnr = so_matnr r_budat = so_budat 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 = so_matnr * r_method = s_method r_period = so_perid t_mymft = tab_mymft EXCEPTIONS not_found = 4.

AUTHORITY_CHECK_DATASET





CALL FUNCTION 'AUTHORITY_CHECK_DATASET' EXPORTING activity = 'WRITE' filename = datei EXCEPTIONS no_authority = 1 activity_unknown = 2 OTHERS = 3.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-cprog CHANGING physical_filename = datei EXCEPTIONS OTHERS = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * bin_filesize = filesize filename = h_filename filetype = h_filetype * APPEND = ' ' write_field_separator = 'X' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES data_tab = imlay EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 .

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = slis_ev_pf_status_set i_callback_user_command = slis_ev_user_command is_layout = ls_layout it_fieldcat = lt_fieldcat it_events = lt_eventtab TABLES t_outtab = gt_output_table EXCEPTIONS program_error = 1 OTHERS = 2.

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

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = gc_structure_name CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = xs_log IMPORTING e_log_handle = xs_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING i_log_handle = gs_log_handle i_msgty = ic_info i_probclass = gc_probclass i_text = iv_text EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_DSP_PROFILE_NO_TREE_GET * CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' * IMPORTING * E_S_DISPLAY_PROFILE = ls_display_profile.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = is_display_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_PRINT CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = gc_x i_s_display_profile = is_display_profile.



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