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

RMLIFO34 SAP ABAP Report - Transfer External Data for LIFO/FIFO Valuation







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

MRLC - Transfer Third-Party Data


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 RMLIFO34. "Basic submit
SUBMIT RMLIFO34 AND RETURN. "Return to original report after report execution complete
SUBMIT RMLIFO34 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_UXFILE = D Sequential file
Selection Text: P_UPDATE = D Create unconditionally
Selection Text: P_SIMULA = D Simulation
Selection Text: P_PHYFIL = Physical File Name
Selection Text: P_PCFILE = D PC file
Selection Text: P_LOGFIL = Logical File Name
Selection Text: P_INSERT = D Create new data only
Selection Text: P_ERRLS = D Process Output
Title: Transfer External Data for LIFO/FIFO Valuation
Text Symbol: 047 = Records Updated
Text Symbol: 053 = Date
Text Symbol: 058 = List empty
Text Symbol: 059 = <-- Caution!
Text Symbol: 070 = Valuation Area
Text Symbol: 071 = Company Code
Text Symbol: 105 = Options
Text Symbol: 106 = Fiscal Year
Text Symbol: 107 = Posting Period
Text Symbol: 114 = Material Master:
Text Symbol: 151 = Application log saved
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: 201 = Output messages
Text Symbol: 225 = Import Receipt Data
Text Symbol: 226 = Check LIFO Valuation Areas
Text Symbol: 227 = Check FIFO Valuation Areas
Text Symbol: 046 = Val. Alternatives:
Text Symbol: 001 = Termination: incorrect data pattern in input rec. (see below)
Text Symbol: 002 = Number of Records Read:
Text Symbol: 003 = Number of records entered:
Text Symbol: 004 = Number of records updated:
Text Symbol: 005 = Update
Text Symbol: 006 = Insert
Text Symbol: 007 = Error opening file





Text Symbol: 008 = Error When Uploading File
Text Symbol: 009 = No Update
Text Symbol: 010 = Entries for Source File
Text Symbol: 017 = To:
Text Symbol: 020 = File Name
Text Symbol: 021 = Read dataset
Text Symbol: 022 = Upload
Text Symbol: 023 = Create new data only
Text Symbol: 024 = Create or overwrite data
Text Symbol: 025 = Simulation
Text Symbol: 026 = Physical File Name
Text Symbol: 027 = Logical File Name
Text Symbol: 028 = Return Code:
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 = Record(s) Changed
Text Symbol: 041 = Price change docs created:
Text Symbol: 042 = Database Updates:
Text Symbol: 043 = Material Ledger:
Text Symbol: 044 = Records Read
001 R I H V ValA Material/Pool Year Prd Material Doc Table


INCLUDES used within this REPORT RMLIFO34

INCLUDE MRYTAB01.
INCLUDE MRYTAB03.
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:

MY_APPLICATION_LOG_DISPLAY CALL FUNCTION 'MY_APPLICATION_LOG_DISPLAY' EXPORTING i_prgid = sniwe-prgid i_repid = sniwe-repid i_tcode = sniwe-tcode.

AUTHORITY_CHECK_DATASET CALL FUNCTION 'AUTHORITY_CHECK_DATASET' EXPORTING activity = 'READ' 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_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = h_filename filetype = h_filetype has_field_separator = 'X' * HEADER_LENGTH = 0 * IMPORTING * FILELENGTH = * HEADER = TABLES data_tab = imlay EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17 .

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = smlay-matnr IMPORTING output = smlay-matnr.

DEQUEUE_EMYML CALL FUNCTION 'DEQUEUE_EMYML' EXPORTING myver = smlay-myver mykey = smlay-mykey matnr = smlay-matnr.

DEQUEUE_EMYMLM CALL FUNCTION 'DEQUEUE_EMYMLM' EXPORTING myver = smlay-myver mykey = smlay-mykey matnr = smlay-matnr.

DEQUEUE_EMYPL CALL FUNCTION 'DEQUEUE_EMYPL' EXPORTING myver = smlay-myver mykey = smlay-mykey mypool = smlay-mypool.

DEQUEUE_EMYPLM CALL FUNCTION 'DEQUEUE_EMYPLM' EXPORTING myver = smlay-myver mykey = smlay-mykey mypool = smlay-mypool.

DEQUEUE_EMYMP CALL FUNCTION 'DEQUEUE_EMYMP' EXPORTING mykey = smlay-mykey matnr = smlay-matnr gjahr = smlay-gjahr.

DEQUEUE_EMYMP1 CALL FUNCTION 'DEQUEUE_EMYMP1' EXPORTING mykey = smlay-mykey matnr = smlay-matnr.

DEQUEUE_EMYMFT CALL FUNCTION 'DEQUEUE_EMYMFT' EXPORTING myfky = smlay-mykey matnr = smlay-matnr.

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

MY_RECEIPT_DATA_UPDATE CALL FUNCTION 'MY_RECEIPT_DATA_UPDATE' EXPORTING i_mymp = mymp i_ins_up = ins_up_fix i_tcode = c_tcode IMPORTING e_ins_up = ins_up 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.

ENQUEUE_EMYMP1 CALL FUNCTION 'ENQUEUE_EMYMP1' EXPORTING mykey = smlay-mykey matnr = smlay-matnr EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_RECEIPT_DATA_UPDATE CALL FUNCTION 'MY_RECEIPT_DATA_UPDATE' EXPORTING i_mymp1 = mymp1 i_ins_up = ins_up_fix i_tcode = c_tcode IMPORTING e_ins_up = ins_up 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.

ENQUEUE_EMYML CALL FUNCTION 'ENQUEUE_EMYML' EXPORTING myver = smlay-myver mykey = smlay-mykey matnr = smlay-matnr EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_MATERIAL_LAYER_UPDATE CALL FUNCTION 'MY_MATERIAL_LAYER_UPDATE' EXPORTING i_matlayer = *mymlm i_ins_up = ins_up_fix i_tcode = c_tcode IMPORTING e_ins_up = ins_up 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.

ENQUEUE_EMYMLM CALL FUNCTION 'ENQUEUE_EMYMLM' EXPORTING myver = smlay-myver mykey = smlay-mykey matnr = smlay-matnr EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_MATERIAL_LAYER_UPDATE CALL FUNCTION 'MY_MATERIAL_LAYER_UPDATE' EXPORTING i_matlayer = *mymlm i_ins_up = ins_up_fix i_tcode = c_tcode IMPORTING e_ins_up = ins_up 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.

ENQUEUE_EMYPL CALL FUNCTION 'ENQUEUE_EMYPL' EXPORTING myver = smlay-myver mykey = smlay-mykey mypool = smlay-mypool EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_POOL_LAYER_UPDATE CALL FUNCTION 'MY_POOL_LAYER_UPDATE' EXPORTING i_poollayer = *myplm i_ins_up = ins_up_fix i_tcode = c_tcode IMPORTING e_ins_up = ins_up 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.

ENQUEUE_EMYPLM



CALL FUNCTION 'ENQUEUE_EMYPLM' EXPORTING myver = smlay-myver mykey = smlay-mykey mypool = smlay-mypool EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_POOL_LAYER_UPDATE CALL FUNCTION 'MY_POOL_LAYER_UPDATE' EXPORTING i_poollayer = myplm i_ins_up = ins_up_fix i_tcode = c_tcode IMPORTING e_ins_up = ins_up 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.

ENQUEUE_EMYMFT CALL FUNCTION 'ENQUEUE_EMYMFT' EXPORTING myfky = smlay-mykey matnr = smlay-matnr EXCEPTIONS foreign_lock = 1 system_failure = 2.

MY_FIFO_RESULT_UPDATE CALL FUNCTION 'MY_FIFO_RESULT_UPDATE' EXPORTING i_mymft = mymft i_ins_up = ins_up_fix i_tcode = c_tcode IMPORTING e_ins_up = ins_up 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.

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

MY_PARAMETERS_GET CALL FUNCTION 'MY_PARAMETERS_GET' EXPORTING i_bukrs = lf_bukrs i_mykey = lf_mykey i_myxxfo = lf_myxxfo i_myfid = lf_myfid IMPORTING e_mypar = mypar EXCEPTIONS OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = sy-datlo i_periv = mypar-periv IMPORTING e_buper = lf_poper e_gjahr = gf_cur_gjahr EXCEPTIONS OTHERS = 4.

DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = smlay-datlo i_periv = mypar-periv IMPORTING e_gjahr = lf_year.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = lt_line.



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