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
Below is a list of transaction codes which are relevant to this SAP report
WLB1 - Investment Buying Reqrmnt Determntn
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.
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
INCLUDE FM06IT01.
INCLUDE FM06ICOM.
INCLUDE FWVLB002.
INCLUDE WVLB02LAY.
INCLUDE FM06ICSO.
INCLUDE FM06ICHI.
INCLUDE FMMEXDIR.
INCLUDE FWVLB002_ALV.
No SAP DATABASE tables are accessed within this REPORT code!
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.
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.
RWVLB002 - Determining Requirements for Investment Buying RWVLB002 - Determining Requirements for Investment Buying RWVKUAW1 - Archiving: Write Program for Object W_VKAB (Retail Revaluation Docs) RWVKUAW1 - Archiving: Write Program for Object W_VKAB (Retail Revaluation Docs) RWVKUAR1 - Archiving: Read Program for Object W_VKAB (Retail Revaluation Docs) RWVKUAR1 - Archiving: Read Program for Object W_VKAB (Retail Revaluation Docs)