SAP Reports / Programs

RWVLB002 SAP ABAP Report - Determining Requirements for Investment Buying

RWVLB002 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The relevent condition changes (such as price changes) are read for the condition types defined for investment buying in Customizing...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 RWVLB002 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

WLB1 - Investment Buying Reqrmnt Determntn

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 RWVLB002. "Basic submit
SUBMIT RWVLB002 AND RETURN. "Return to original report after report execution complete
SUBMIT RWVLB002 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: IF_IDNLF = Vendor Material Number
Selection Text: IF_INFNR = Purchasing Information Record
Selection Text: IF_LIFNR = Vendor
Selection Text: IF_LTSNR = Vendor Subrange
Selection Text: IF_MATKL = Vendor Material Group
Selection Text: IF_MATNR = Material
Selection Text: IF_WGLIF = Vendor Material Group
Selection Text: I_EKORG = Purchasing Organization
Selection Text: I_ESOKZ = Info Category
Selection Text: I_WERKS = Plant
Selection Text: PFIXKZ = Fix pur. reqs after generation
Selection Text: PGENER = Include generic article var.
Selection Text: PRELIF = Use regular vendor only
Selection Text: P_BDATUM = Price determination to
Selection Text: P_BEST = Create POs instead of pur.reqs
Selection Text: P_BTYP = Plant cat. for req. determin.
Selection Text: P_CHEAP = Find cheapest vendor
Selection Text: P_DELBAN = Delete unused Inv.Buy. pur.req
Selection Text: P_LOESCH = Delete Old Invest. Buying Logs
Selection Text: P_LSTCHK = Run Listing Check
Selection Text: P_MEINS = Simulation Unit
Selection Text: P_MENGE = Define simulation quantity
Selection Text: P_NODTES = Check for double processing
Selection Text: P_TERMDA = Terms of payment for ROI
Selection Text: P_VDATUM = Price determination from
Selection Text: P_WF = Create documents via workflow
Title: Determining Requirements for Investment Buying
Text Symbol: TS2 = Invest. Buying Data
Text Symbol: TS1 = Restrictions in the Investment Buying check
Text Symbol: T31 = Doc. cat. Doc. Item
Text Symbol: T30 = Curr. Price Future Price Currency PO Qty Un ROI
Text Symbol: T22 = PuOrg Plnt Stock Available Open PO Qty Forecast/Week
Text Symbol: T14 = Material Material Short Text Info Record
Text Symbol: T13 = Vendor
Text Symbol: 001 = ----------------------------------------------------------------------
Text Symbol: 002 = ROI parameters being read
Text Symbol: 003 = Calculating Return on Investment
Text Symbol: 004 = Document creation starting

Text Symbol: 005 = Purchasing info records determined for variants of generic mat.
Text Symbol: 006 = Investment Buying Log
Text Symbol: 011 = Controls
Text Symbol: 021 = Name of Vendor
Text Symbol: 022 = Message
Text Symbol: 023 = Message Exists
Text Symbol: 024 = Current Price
Text Symbol: 025 = Future Price
Text Symbol: 026 = Purchase Order Quantity
Text Symbol: 027 = Available Stock
Text Symbol: 028 = On-Order Stock
Text Symbol: 029 = Investment buying
Text Symbol: A01 = Other messages:
Text Symbol: F01 = No price change
Text Symbol: F02 = Insufficient Return on Investment
Text Symbol: F03 = An unprocessed document already exists
Text Symbol: F04 = No condition change found
Text Symbol: F05 = Purchase order price simulation failed
Text Symbol: F06 = No price change despite condition change
Text Symbol: F07 = Two prices not determined in price simulation
Text Symbol: F08 = Error unknown, inform system administrator
Text Symbol: F09 = Price Reduction
Text Symbol: F0A = Price change negligible. Other vendor is less expensive.
Text Symbol: T01 = No Investment Buying, error:
Text Symbol: T02 = Investment buying for:
Text Symbol: T03 = PReq
Text Symbol: T04 = PO
Text Symbol: T05 = Workitem
Text Symbol: T06 = No Investment Buying:

INCLUDES used within this REPORT RWVLB002


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:

WLB_INVESTMENT_BUY_PROCESS CALL FUNCTION 'WLB_INVESTMENT_BUY_PROCESS' EXPORTING i_datum_ab = p_vdatum i_datum_bis = p_bdatum i_einstellungen = l_wlb0001 * SDO-47-02-04-02 Modifizierung Fehlerhandling IMPORTING g_sy_subrc = g_sy_subrc TABLES ieina = xeina imatnr = if_matnr iwerks = r_werks iekorg = r_ekorg e_inv_buy = l_t_invest_buy e_no_buy = l_t_no_invest e_price_down = l_t_price_down * SDO-47-02-04-02 Modifizierung Fehlerhandling g_t_invest_buy = g_t_invest_buy EXCEPTIONS internal_error = 1 no_items_found = 2 OTHERS = 3.

MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom IMPORTING matdaten = makt return = mtcor TABLES seqmat01 = tdummy.

WRITE_MESSAGE_NEW CALL FUNCTION 'WRITE_MESSAGE_NEW' EXPORTING msgid = 'WG' msgno = 359 msgty = 'I' msgv1 = g_i_liste-lifnr msgv2 = g_i_liste-werks msgv3 = g_i_liste-matnr msgv4 = char10 msgv5 = ' ' IMPORTING * error = i_error messg = l_message * msgln = i_length EXCEPTIONS error_message = 4.

WRITE_MESSAGE_NEW CALL FUNCTION 'WRITE_MESSAGE_NEW' EXPORTING msgid = 'WG' msgno = 360 msgty = 'I' msgv1 = g_i_liste-infnr msgv2 = l_preis_akt msgv3 = l_preis_neu msgv4 = g_i_liste-waers msgv5 = ' ' IMPORTING messg = l_message EXCEPTIONS error_message = 4.

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