SAP Reports / Programs

RLINV020 SAP ABAP Report - Differences List per Storage Type







RLINV020 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Using this report, you can determine any existing inventory differences and, if necessary, you can request a recount of the storage bins...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 RLINV020 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

LX17 - List of Inventory Differences


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 RLINV020. "Basic submit
SUBMIT RLINV020 AND RETURN. "Return to original report after report execution complete
SUBMIT RLINV020 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_VARI = Layout
Selection Text: NIGEZ = List uncounted bins
Title: Differences List per Storage Type
Text Symbol: 050 = Program parameters
Text Symbol: 023 = List of uncounted bins
Text Symbol: 022 = Value
Text Symbol: 021 = Or
Text Symbol: 020 = Variance
Text Symbol: 018 = Relative deviation
Text Symbol: 017 = Rel.dev.
Text Symbol: 016 = Rel.dev.
Text Symbol: 015 = cannot be determ.
Text Symbol: 013 = Value deviation (can be added up)
Text Symbol: 012 = Value deviation (with comment)
Text Symbol: 011 = Stor.ty.
Text Symbol: 010 = Warehouse
Text Symbol: 009 = %
Text Symbol: 008 = Not counted
Text Symbol: 007 = Material found
Text Symbol: 006 = Material lost
Text Symbol: 005 = Empty bin


INCLUDES used within this REPORT RLINV020

INCLUDE MLLVSKON.


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:

QBEW_ARRAY_READ * CALL FUNCTION 'QBEW_ARRAY_READ' "v_n_1428659 * TABLES * ipre22 = MATq * qbew_tab = QBEW_tab.

L_UMRECHNEN_MEINS_ALTME CALL FUNCTION 'L_UMRECHNEN_MEINS_ALTME' EXPORTING IP_MATNR = inv-matnr IP_WERKS = inv-werks IP_CHARG = inv-charg IP_MENGE = inv-menge IP_MEINS = inv-meins IP_ALTME = lv_eine-bprme CHANGING CP_MENGA = lv_menga CP_UMREZ = lv_umrez CP_UMREN = lv_umren EXCEPTIONS CONVERSION_NOT_FOUND = 1 OTHERS = 2.

UNIT_CONVERSION_WITH_FACTOR CALL FUNCTION 'UNIT_CONVERSION_WITH_FACTOR' EXPORTING INPUT = inv-menge DENOMINATOR = lv_umrez NUMERATOR = lv_umren ADD_CONST = 0 IMPORTING OUTPUT = lv_menga.

REUSE_ALV_LIST_DISPLAY call function 'REUSE_ALV_LIST_DISPLAY' exporting i_callback_program = sav_sy_repid i_callback_pf_status_set = 'SET_PF_STATUS' * i_callback_user_command = * i_structure_name = is_layout = layout it_fieldcat = xfield it_excluding = gt_extab[] it_special_groups = gt_sp_group[] * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * i_default = ' ' i_default = 'X' i_save = a_save is_variant = variant it_events = xevents[] * >>>>>>>>>> begin of insertion HP_318150 >>>>>>>>>> i_buffer_active = 'X' * <<<<<<<<<< end of insertion HP_318150 <<<<<<<<<< * IT_EVENT_EXIT = * IS_PRINT = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * iMPORTING * E_EXIT_CAUSED_BY_CALLER = tables t_outtab = inv_austab exceptions program_error = 1 others = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = lt_commentary.

REUSE_ALV_EVENTS_GET call function 'REUSE_ALV_EVENTS_GET' exporting i_list_type = 0 importing et_events = xevents.

CONVERT_TO_FOREIGN_CURRENCY call function 'CONVERT_TO_FOREIGN_CURRENCY' exporting date = sy-datum foreign_currency = waers local_amount = inv-dwert local_currency = inv-waers * rate = 0 type_of_rate = 'M' importing * EXCHANGE_RATE = foreign_amount = fwert * FOREIGN_FACTOR = * LOCAL_FACTOR = * EXCHANGE_RATEX = * DERIVED_RATE_TYPE = * FIXED_RATE = exceptions no_rate_found = 1 overflow = 2 no_factors_found = 3 no_spread_found = 4 derived_2_times = 5 others = 6.

REUSE_ALV_VARIANT_F4 call function 'REUSE_ALV_VARIANT_F4' exporting is_variant = i_variant i_save = a_save * i_tabname_header = * i_tabname_item = * it_default_fieldcat = importing * e_exit = es_variant = e_variant exceptions not_found = 2.

REUSE_ALV_VARIANT_EXISTENCE call function 'REUSE_ALV_VARIANT_EXISTENCE' exporting i_save = a_save changing cs_variant = c_variant exceptions wrong_input = 1 not_found = 2 program_error = 3 others = 4.

MBEW_ARRAY_READ call function 'MBEW_ARRAY_READ' tables ipre04 = mat mbew_tab = mbew_tab.

EBEW_ARRAY_READ CALL FUNCTION 'EBEW_ARRAY_READ' "v_n_872475 TABLES ipre21 = MATe ebew_tab = EBEW_tab.

QBEW_ARRAY_READ CALL FUNCTION 'QBEW_ARRAY_READ' "v_n_1428659 TABLES ipre22 = MATQ qbew_tab = QBEW_TAB.

L_BIN_DISPLAY call function 'L_BIN_DISPLAY' exporting i_lgnum = inv_austab-lgnum i_lgtyp = inv_austab-lgtyp i_lgpla = inv_austab-lgpla.

L_QUANT_DISPLAY call function 'L_QUANT_DISPLAY' exporting i_lgnum = inv_austab-lgnum i_lqnum = inv_austab-lqnum.

L_SU_DISPLAY call function 'L_SU_DISPLAY' exporting i_lenum = inv_austab-lenum.

L_BATCH_DISPLAY call function 'L_BATCH_DISPLAY' exporting i_matnr = inv_austab-matnr i_werks = inv_austab-werks i_charg = inv_austab-charg.

L_TO_DISPLAY call function 'L_TO_DISPLAY' exporting i_lgnum = inv_austab-lgnum i_tanum = inv_austab-tanum.

L_INV_DISPLAY call function 'L_INV_DISPLAY' exporting i_lgnum = inv_austab-lgnum i_ivnum = inv_austab-ivnum.

CURRENCY_CODE_CHECK





CALL FUNCTION 'CURRENCY_CODE_CHECK' EXPORTING I_CURRENCY_CODE = waers EXCEPTIONS CURRENCY_CODE = 1 OTHERS = 2 .



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