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

RLLQ0200 SAP ABAP Report - Posting Change Quants for Material in WM and IM







RLLQ0200 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Transferring quants in WM and IM With this report, you can transfer quants in the Warehouse Management System and in inventory management at the same time...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 RLLQ0200 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

LQ02 - Transfer Posting in Invent. Mgmt


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 RLLQ0200. "Basic submit
SUBMIT RLLQ0200 AND RETURN. "Return to original report after report execution complete
SUBMIT RLLQ0200 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: WENUM = Goods Receipt Number
Selection Text: WEDAT = Goods Receipt Date
Selection Text: SOBKZ = Special Stock Indicator
Selection Text: PA_LSONR = Special Stock Number
Selection Text: PA_LISTV = Layout
Selection Text: PA_KZMAI = Create Mail
Selection Text: PA_DUNKL = Foreground/background control
Selection Text: PA_BWLVS = WM Movement Type
Selection Text: PA_BUDAT = Posting Date
Selection Text: PA_BLDAT = Document Date
Selection Text: MATNR = Material
Selection Text: LGORT = Storage Location
Selection Text: CHARG = Batch
Selection Text: BESTQ = Stock Category
Title: Posting Change Quants for Material in WM and IM
Text Symbol: 314 = Selectable Item
Text Symbol: 313 = Locked Item
Text Symbol: 312 = Incorrect Transfer Posting
Text Symbol: 310 = Successful Transfer Posting
Text Symbol: 302 = The following transfer orders were created:
Text Symbol: 301 = Errors occurred during posting change of the following quants:
Text Symbol: 300 = The following material documents were created:
Text Symbol: 208 = Storage type with bulk storage and storage unit management
Text Symbol: 207 = Inspection Lot Updated in Quant
Text Symbol: 206 = Quant no Longer Exists
Text Symbol: 205 = Data has been changed. Check
Text Symbol: 204 = Storage Unit has Status Not Equal ' '
Text Symbol: 203 = Quant or Bin Blocked for Stock Removal or by Inventory
Text Symbol: 202 = Picking Quantity Not Zero
Text Symbol: 201 = Putaway Quantity Not Zero
Text Symbol: 200 = Negative Available Quantity
Text Symbol: 101 = Control Data
Text Symbol: 100 = Selection Criteria
Text Symbol: 015 = WM Movement Type
Text Symbol: 014 = Special Stock DEST
Text Symbol: 013 = Special Stock SRC
Text Symbol: 012 = Stk Category DEST





Text Symbol: 011 = Stock Category SRC
Text Symbol: 006 = Material
Text Symbol: 005 = Storage Type
Text Symbol: 004 = Warehouse Number


INCLUDES used within this REPORT RLLQ0200

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:

L_PLATZ_POSITION_MISCHEN CALL FUNCTION 'L_PLATZ_POSITION_MISCHEN' EXPORTING LGPLA = LQUA-LGPLA PLPOS = LQUA-PLPOS IMPORTING O_LGPLA = ITAB-MISCH_PLATZ.

L_QUANT_SELECT CALL FUNCTION 'L_QUANT_SELECT' EXPORTING I_REPID = SAV_SY_REPID I_TITLE = '001' I_STATUS = 'ALVSTAND' I_HEADER = XHEADER[] I_SICHT = SICHT "Default: Quantsicht I_VARIANT = VARIANT TABLES T_LIST = ITAB EXCEPTIONS OTHERS = 0.

L_HU_HEADER_READ CALL FUNCTION 'L_HU_HEADER_READ' EXPORTING I_LENUM = ITAB-LENUM IMPORTING E_VEKP = LS_VEKP EXCEPTIONS NO_HU_FOUND = 1.

L_HU_CHECK_DDU CALL FUNCTION 'L_HU_CHECK_DDU' EXPORTING IS_VEKP = LS_VEKP EXCEPTIONS OPEN_DDU = 1.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING CURR_REPORT = SAV_SY_REPID TABLES SELECTION_TABLE = SELTAB exceptions not_found = 1 no_report = 2 others = 3.

RS_REFRESH_FROM_DYNAMICAL_SEL CALL FUNCTION 'RS_REFRESH_FROM_DYNAMICAL_SEL' EXPORTING CURR_REPORT = sav_sy_repid MODE_WRITE_OR_MOVE = 'M' IMPORTING P_TRANGE = LS_TRANGE EXCEPTIONS NOT_FOUND = 1 WRONG_TYPE = 2 OTHERS = 3 .

FREE_SELECTIONS_RANGE_2_EX call function 'FREE_SELECTIONS_RANGE_2_EX' EXPORTING field_ranges = ls_trange IMPORTING expressions = texpr.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING IS_VARIANT = VARIANT I_SAVE = 'A' IMPORTING ES_VARIANT = VARIANT EXCEPTIONS NOT_FOUND = 2.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING I_SAVE = 'A' CHANGING CS_VARIANT = VARIANT.

L_BIN_LOCATION_ENQUEUE CALL FUNCTION 'L_BIN_LOCATION_ENQUEUE' EXPORTING I_LGNUM = S1_LGNUM I_LGTYP = P_ITAB_LGTYP I_LGPLA = P_ITAB_LGPLA I_LENUM = ' ' I_ENQUE = ' ' EXCEPTIONS ERROR_MESSAGE = 99.

L_TO_CREATE_SINGLE CALL FUNCTION 'L_TO_CREATE_SINGLE' EXPORTING I_LGNUM = ITAB-LGNUM I_BWLVS = PA_BWLVS * I_BETYP = ' ' * I_BENUM = ' ' I_MATNR = ITAB-MATNR I_WERKS = ITAB-WERKS I_CHARG = ITAB-CHARG I_BESTQ = ITAB-BESTQ I_SOBKZ = ITAB-SOBKZ I_SONUM = ITAB-SONUM I_LETYP = LEIN-LETYP I_ANFME = ITAB-VERME I_ALTME = ITAB-MEINS * I_WDATU = SY-DATLO * I_VFDAT = INIT_DATUM * I_ZEUGN = ' ' * I_LZNUM = ' ' I_SQUIT = SPACE "LTAK-KQUIT I_NIDRU = RLDRU-PROTO I_DRUKZ = RLDRU-DRUKZ I_LDEST = RLDRU-LDEST * I_WEMPF = ' ' * I_ABLAD = ' ' I_VLTYP = ITAB-LGTYP * I_VLBER = ' ' I_VLPLA = ITAB-LGPLA * I_VPPOS = ' ' * I_VLENR = ' ' * I_VLQNR = ' ' I_NLTYP = LAGP-LGTYP I_NLBER = LAGP-LGBER I_NLPLA = LAGP-LGPLA * I_NPPOS = ' ' I_NLENR = LEIN-LENUM * I_NLQNR = ' ' * I_RLTYP = ' ' * I_RLBER = ' ' * I_RLPLA = ' ' * I_RLQNR = ' ' * I_UPDATE_TASK = ' ' I_COMMIT_WORK = 'X' * I_BNAME = SY-UNAME * I_KOMPL = 'X' IMPORTING E_TANUM = ITAB-TANUM * E_LTAP = EXCEPTIONS ERROR_MESSAGE = 99.

L_TO_CREATE_POSTING_CHANGE CALL FUNCTION 'L_TO_CREATE_POSTING_CHANGE' EXPORTING I_LGNUM = S1_LGNUM I_LUBUI = LUBUI I_SQUIT = CON_X I_NIDRU = CON_X I_UPDATE_TASK = SPACE I_COMMIT_WORK = SPACE I_BNAME = SY-UNAME IMPORTING E_TANUM = HLP_TANUM TABLES T_LUBQU = ILUBQU T_LTAP_VB = TAP EXCEPTIONS ERROR_MESSAGE = 99.

L_IM_POSTING_CREATE CALL FUNCTION 'L_IM_POSTING_CREATE' EXPORTING I_IMKPF = KOPF I_TCODE = CON_IM_TCODE_UMBU * i_item_number = pos_anz I_SOBUB = FLG_SOBUB I_BWART = T333U-BWART I_AUFRUFER = CON_AUFRUF_VU TABLES T_LQUA_IM = ILQUA_IM T_EMKPF = T_EMKPF T_LQUA_PROT = T_LQUA_PROT T_IDOCS = T_IDOC_PROT EXCEPTIONS ERROR_MESSAGE = 99 OTHERS = 0.

L_IM_MAIL_CREATE CALL FUNCTION 'L_IM_MAIL_CREATE' EXPORTING I_AUFRUFER = CON_AUFRUF_VU I_BUSER = SY-UNAME I_MAILK = T333U-MAILK I_LGNUM = S1_LGNUM TABLES T_LQUA_PROT = T_LQUA_PROT_2 EXCEPTIONS OTHERS = 0.

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

L_VALUES_T333U_BWLVS CALL FUNCTION 'L_VALUES_T333U_BWLVS'
EXPORTING I_LGNUM = S1_LGNUM IMPORTING E_BWLVS = PA_BWLVS.






ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = lv_icon_short info = lv_icont_quickinfo text = lv_icont_shorttext IMPORTING RESULT = cv_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.



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