SAP Reports / Programs | Logistics Execution | Warehouse Management(LE-WM) SAP LE

RLABGL00 SAP ABAP Report - Stock Comparison Inventory Management / Warehouse Management







RLABGL00 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 generate an inventory comparison between the IM System (Inventory Management) and the WM System (Warehouse Management)...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 RLABGL00 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

LX23 - Stock comparison IM - WM


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 RLABGL00. "Basic submit
SUBMIT RLABGL00 AND RETURN. "Return to original report after report execution complete
SUBMIT RLABGL00 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: WERKS = Plant
Selection Text: P_PCCON = Data from PC/Entire Connection
Selection Text: LGORT = Storage Location
Selection Text: LGNUM = Warehouse number
Selection Text: AUSG_MAP = Clear differences
Selection Text: AUSG_KOM = All material data
Selection Text: AUSG_DET = With bin inventory
Title: Stock Comparison Inventory Management / Warehouse Management
Text Symbol: 112 = |Log.system|object ty.|object key
Text Symbol: 113 = | Batch S Spec.st.no. Stock cat. |UM | Handling Units | Warehouse Mgmt | Difference Qty |
Text Symbol: 120 = Total Stock Inventory Management
Text Symbol: 121 = Total Stock Warehouse Management
Text Symbol: 122 = Difference Quantity
Text Symbol: 123 = Quant Quantity
Text Symbol: 124 = Stock - Inventory Management
Text Symbol: 125 = Stock - Warehouse Management
Text Symbol: 126 = Stock Comparison - Non-Postable Stocks
Text Symbol: 127 = Reason
Text Symbol: 128 = Negative Quantity or Returns Stock
Text Symbol: 129 = Error Text:
Text Symbol: 130 = Message Text
Text Symbol: 131 = Stock Comparison - Log
Text Symbol: 132 = Plant
Text Symbol: 133 = Stor. Loc:
Text Symbol: 134 = Whse Number:
Text Symbol: 001 = |Plnt SLoc Whse Material no. | | | |
Text Symbol: 002 = | Batch S Spec.st.no. Stock cat. |UM | Invent. Mgmt | Warehouse Mgmt | Diff.quantity |
Text Symbol: 003 = | Ty. Bin |UM | | Quant amt | |
Text Symbol: 010 = Output --------------------------------------------------------------------------
Text Symbol: 011 = ; No stock differences have occurred |
Text Symbol: 012 = No differences have occurred because there is no stock (IM & WM) |
Text Symbol: 013 = ; This program cannot run a stock comparison for this warehouse (warehouse is HU-managed)
Text Symbol: 020 = Total per material:
Text Symbol: 050 = Quality insp
Text Symbol: 051 = Returns
Text Symbol: 052 = Blocked stock
Text Symbol: 070 = ;|No difference posting required
Text Symbol: 080 = ;The following WM stock figures could not be cleared because |





Text Symbol: 081 = quantities are negative or belong to returns stock |
Text Symbol: 090 = A batch input file for clearing the differences
Text Symbol: 091 = has been created with the name "MB_MI10".
Text Symbol: 098 = CAREFUL: No batch inp.file created because blckng not possible!
Text Symbol: 099 = ATTENTION: You are running comparisons for HU-managed storage locs
Text Symbol: 100 = Clearing differences for decentralized processing
Text Symbol: 101 = Handling units are not taken into account during a comparison
Text Symbol: 104 = The following general errors occurred during the posting:
Text Symbol: 105 = Errors occurred during posting of following items:
Text Symbol: 107 = |Quant no. |Error text |
Text Symbol: 110 = |Error text |
Text Symbol: 111 = Following IDocs were transmitted


INCLUDES used within this REPORT RLABGL00

INCLUDE MLLVSKON.
INCLUDE: RDSVAS_ABA_SSFSAIF_TYPEINC.


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:

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL' "v_n_895864 EXPORTING _SYNCHRON = 'X'. "^_n_895864

L_RM_MATERIALS_READ_LDK35 * CALL FUNCTION 'L_RM_MATERIALS_READ_LDK35' * EXPORTING * LAGERORT = IT320-LGORT * PCCON = P_PCCON * WERK = IT320-WERKS * IMPORTING * RETCO = RETCO * TABLES * MM_QUANTITIES = IM_BESTAND.

L_WMS_CEN_IM_SYNC_RECEIVER CALL FUNCTION 'L_WMS_CEN_IM_SYNC_RECEIVER' EXPORTING I_WERKS = IT320-WERKS I_LGORT = IT320-LGORT I_LGNUM = IT320-LGNUM IMPORTING E_RECEIVER = HLP_RECEIVER E_RFCTYPE = HLP_RFCTYPE EXCEPTIONS NOT_UNIQUE_RECEIVER = 1 NO_RFC_DESTINATION_MAINTAINED = 2 ERROR_IN_ALE = 3 ERROR_IN_WM_CUSTOMIZING = 4 INCONSISTENCY_BETWEEN_WM_ALE = 5 OTHERS = 6.

L_MM_MATERIALS_READ_QUANTITY CALL FUNCTION 'L_MM_MATERIALS_READ_QUANTITY' DESTINATION HLP_RECEIVER-RFC_DEST EXPORTING LAGERORT = IT320-LGORT WERK = IT320-WERKS TABLES MM_QUANTITIES = IM_BESTAND EXCEPTIONS COMMUNICATION_FAILURE = 1 MESSAGE HLP_MSGTEXT SYSTEM_FAILURE = 2 MESSAGE HLP_MSGTEXT.

L_MM_MATERIALS_READ_QUANTITY CALL FUNCTION 'L_MM_MATERIALS_READ_QUANTITY' EXPORTING LAGERORT = IT320-LGORT WERK = IT320-WERKS TABLES MM_QUANTITIES = IM_BESTAND.

L_MESSAGE_AUFBEREITEN CALL FUNCTION 'L_MESSAGE_AUFBEREITEN' EXPORTING I_MESS = LMESS IMPORTING O_TEXT = HLP_TEXT.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = lt_comment[].

ENQUEUE_ELLQUAE CALL FUNCTION 'ENQUEUE_ELLQUAE' EXPORTING LGNUM = IT320-LGNUM EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.

ENQUEUE_ELLQUAX CALL FUNCTION 'ENQUEUE_ELLQUAX' EXPORTING LGNUM = IT320-LGNUM EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.

ENQUEUE_ELLQUAY CALL FUNCTION 'ENQUEUE_ELLQUAY' EXPORTING LGNUM = IT320-LGNUM EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.

L_WMS_DEC_CHECK CALL FUNCTION 'L_WMS_DEC_CHECK' TABLES T_WMSDEC = IWMSDEC EXCEPTIONS LGNUM_DOES_NOT_EXIST = 1 OTHERS = 2.

CONVERSION_EXIT_KONPR_INPUT





CALL FUNCTION 'CONVERSION_EXIT_KONPR_INPUT' EXPORTING INPUT = YWEWA-PS_PSP_PNR IMPORTING OUTPUT = HLP_PSPNR * prpswa = EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

L_IM_DIFF_CLEAR_FOR_COMPARISON CALL FUNCTION 'L_IM_DIFF_CLEAR_FOR_COMPARISON' EXPORTING I_IMKPF = KOPF I_ITEM_NUMBER = CON_ITEM_NUMBER I_TCODE = CON_IM_TCODE_DIFF TABLES T_IMSEG = IIMSEG T_EMSEG = T_EMSEG_PROT T_IDOCS = T_IDOC_PROT EXCEPTIONS ERROR_MESSAGE = 99 OTHERS = 0.

L_MESSAGE_AUFBEREITEN CALL FUNCTION 'L_MESSAGE_AUFBEREITEN' EXPORTING I_MESS = LMESS IMPORTING O_TEXT = P_TEXT.

REUSE_ALV_HIERSEQ_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = gv_repid I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS' I_CALLBACK_USER_COMMAND = 'USER_COMMAND' IS_LAYOUT = ls_layout IT_FIELDCAT = lt_fieldcat[] IT_EVENTS = lt_events[] I_TABNAME_HEADER = 'GT_DISPLAY' I_TABNAME_ITEM = 'GT_DISPLAY_ITEM' IS_KEYINFO = ls_keyinfo IMPORTING ES_EXIT_CAUSED_BY_USER = lv_fcode TABLES T_OUTTAB_HEADER = GT_DISPLAY[] T_OUTTAB_ITEM = GT_DISPLAY_ITEM[] EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = ct_events EXCEPTIONS LIST_TYPE_WRONG = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = gv_repid I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS_NEGATIV' IS_LAYOUT = ls_layout IT_FIELDCAT = lt_fieldcat[] IT_EVENTS = lt_events[] TABLES T_OUTTAB = gt_negativ[] EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = lt_comment[].

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = ct_events EXCEPTIONS LIST_TYPE_WRONG = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = gv_repid I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS_PROT' IS_LAYOUT = ls_layout IT_FIELDCAT = lt_fieldcat[] IT_EVENTS = lt_events[] TABLES T_OUTTAB = gt_prot[] EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = lt_comment[].

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = ct_events EXCEPTIONS LIST_TYPE_WRONG = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = gv_repid I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS_IDOC' IS_LAYOUT = ls_layout IT_FIELDCAT = lt_fieldcat[] * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = IT_EVENTS = lt_events[] TABLES T_OUTTAB = gt_idoc[] EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = ct_events EXCEPTIONS LIST_TYPE_WRONG = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = lt_comment[].



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