SAP Reports / Programs | Materials Management | Consumption-Based Planning (See Also PP-MRP)(MM-CBP) SAP MM

RWSAF001 SAP ABAP Report - Main program for interface between R/3 and SAF forecast software







RWSAF001 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for ..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 RWSAF001 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

WSAFR01 - Data Transfer R/3 - SAF


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 RWSAF001. "Basic submit
SUBMIT RWSAF001 AND RETURN. "Return to original report after report execution complete
SUBMIT RWSAF001 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Main Program ECC Interface to F&R
Selection Text: HSNUM1 = Current Version
Selection Text: HSNUM2 = Current Version and 1 History
Selection Text: HSNUM3 = Current Version and 2 History
Selection Text: IBOU = Copy SAF forecast values
Selection Text: IBOUP = Switch on logging
Selection Text: I_ALL = Switch on all logs
Selection Text: I_DATUM = SAF planning date
Selection Text: I_PACK = Internal package size
Selection Text: I_SAF = Perform SAF forecast
Selection Text: MATNR = Material
Selection Text: MAXJOBS = Max. no. of parallel jobs
Selection Text: MAXLOOPS = Max. no. of resource attempts
Selection Text: MAXLOPS2 = Max. no. of lock attempts
Selection Text: OART = Send Material Master Data
Selection Text: OARTP = Switch on logging
Selection Text: OJAG = Full provision
Selection Text: OJART = Full provision
Selection Text: OJPRE = Full provision
Selection Text: OKAL = Send calendar events
Selection Text: OKALP = Switch on logging
Selection Text: ONAG = Update transfer
Selection Text: WRNDB = Fixed wait time btwn res.att.
Selection Text: WRNDA = Random wait time btwn res.att.
Selection Text: WRND2 = Fixed wait time btwn lock att.
Selection Text: WRND1 = Random wait time btwn lock att
Selection Text: WERKS = Plant
Selection Text: WAITTIME = Wait time secs btwn lock res.
Selection Text: WAITIME2 = Wait time secs btwn 2 lock at.
Selection Text: VLFKZ = Plant Category
Selection Text: TVDAT = From Date
Selection Text: SGROUP = Server Group
Selection Text: PHDAT = From Date
Selection Text: PARA = Parallel Processing
Selection Text: OTAGP = Switch on logging
Selection Text: OTAG = Send daily consumption
Selection Text: OPUBT = Switch on logging
Selection Text: OPUB = Send public holidays





Selection Text: OPREP = Switch on logging
Selection Text: OPRE = Send promotion predictors
Selection Text: ONPRE = Update transfer
Selection Text: ONART = Update transfer
Title: Main program for interface between R/3 and SAF forecast software
Text Symbol: 096 = Job log data output:
Text Symbol: 095 = No. of lock attempts on WSAF_CONFIG:
Text Symbol: 094 = No. of attempts:
Text Symbol: 093 = No RFC resources available - plant:
Text Symbol: 092 = No.of lock attempts:
Text Symbol: 091 = No lock possible - plant:
Text Symbol: 090 = No. of attempts to obtain resources (SBT_INITIALIZE):
Text Symbol: 089 = Resource check confirmation
Text Symbol: 088 = Job
Text Symbol: 087 = Data recs:
Text Symbol: 086 = End of resource check
Text Symbol: 085 = Flagged for notif.:
Text Symbol: 084 = Max.level par.proc.
Text Symbol: 083 = Free WP resources..:
Text Symbol: 082 = Total WP resources:
Text Symbol: 097 = Log start
Text Symbol: 098 = Log finish
Text Symbol: 099 = Plnt:
Text Symbol: 100 = Does not correspond to plant cat:
Text Symbol: 101 = Plant will not be deleted from sel.
Text Symbol: 102 = Not included in F&R forecast
Text Symbol: 103 = Incorrect selection of plants/plant cateegories. New entry req.
Text Symbol: 104 = Random wait time of:
Text Symbol: 105 = Seconds between two attempts activated
Text Symbol: 106 = Fixed wait time of:
Text Symbol: 107 = Seconds between two attempts activated
Text Symbol: 108 = Max. no. of lock attempts:
Text Symbol: 109 = Start of job processing
Text Symbol: 110 = End of job processing
Text Symbol: 111 = Error after call function. Job will not be restarted:
Text Symbol: 112 = Call function error status:
Text Symbol: 037 = Runtime parameter:
Text Symbol: 036 = StartTime:
Text Symbol: 035 = Start of processing





Text Symbol: 034 = Host:
Text Symbol: 033 = System ID:
Text Symbol: 032 = SAP Release:
Text Symbol: 031 = Op. System:
Text Symbol: 030 = Database:
Text Symbol: 029 = User:
Text Symbol: 028 = Variant:
Text Symbol: 027 = Transaction:
Text Symbol: 026 = Report:
Text Symbol: 025 = Environment
Text Symbol: 024 = Runtime environment for
Text Symbol: 023 = Daily sales figures should be sent
Text Symbol: 022 = End of run on:
Text Symbol: 021 = End of processing
Text Symbol: 020 = Local server
Text Symbol: 019 = Not all plants are included in the F&R forecast
Text Symbol: 018 = Outbound and inbound promotions without F&R forecast run are not permitted
Text Symbol: 017 = Not all plants correspond to category given
Text Symbol: 016 = Plausability check for worklist for main program
Text Symbol: 015 = Make another selection
Text Symbol: 014 = No plants found for plant selection
Text Symbol: 013 = F&R Processor
Text Symbol: 012 = Internal Control
Text Symbol: 011 = Parallel Processing
Text Symbol: 010 = Job Control
Text Symbol: 009 = Save Forecast Data and Application Log
Text Symbol: 008 = Transfer F&R Data to ECC
Text Symbol: 007 = Calendar Events
Text Symbol: 006 = Public Holidays
Text Symbol: 005 = Promo. Predictor
Text Symbol: 004 = Daily Consumpt.
Text Symbol: 003 = Mat. Master Data
Text Symbol: 002 = Transfer ECC Data to F&R
Text Symbol: 001 = Data Selection
Text Symbol: 081 = Start resource check
Text Symbol: 077 = Time used for status conversion 1 .....:
Text Symbol: 076 = Time used for data formatting .........:
Text Symbol: 075 = Time used for BDCPS selection:
Text Symbol: 074 = Time used for BDCPS selection:



Text Symbol: 073 = Material change data (BDCPS table)
Text Symbol: 072 = Material change data (BDCP table)
Text Symbol: 069 = Started in total:
Text Symbol: 068 = Active processes
Text Symbol: 067 = ** Info Processes -
Text Symbol: 066 = No. of attempts for res.:
Text Symbol: 065 = Host:
Text Symbol: 064 = ** Info Server Group:
Text Symbol: 063 = started
Text Symbol: 060 = No material change data could be selected
Text Symbol: 059 = Processing task: select change pointer for material data
Text Symbol: 058 = Intern.package size:
Text Symbol: 057 = All logs have been activated
Text Symbol: 056 = Seconds
Text Symbol: 055 = Waiting time btwn attempts:
Text Symbol: 054 = No. of attempts:
Text Symbol: 053 = Max.level of par.proc.:
Text Symbol: 052 = Server group:
Text Symbol: 051 = Parameter:
Text Symbol: 050 = The run should be performed in parallel
Text Symbol: 049 = Field HSNUM has value:
Text Symbol: 048 = Forecast data should be transferred to ECC
Text Symbol: 047 = F&R run should be performed
Text Symbol: 046 = Calendar events should be sent
Text Symbol: 045 = Public holidays should be sent
Text Symbol: 044 = Promotion predictors should be sent
Text Symbol: 043 = to
Text Symbol: 042 = Date from:
Text Symbol: 041 = Full provision
Text Symbol: 040 = Delta provision
Text Symbol: 039 = Material master data should be sent
Text Symbol: 038 = Selection using plant, plant cat. and add. mat.


INCLUDES used within this REPORT RWSAF001

INCLUDE WSAFCONST.
INCLUDE RWSAF001_TOP.
INCLUDE SCREEN_OUT.
INCLUDE RWSAF001_FORMS.
INCLUDE RWSAF001_FORM_GET_ARFC.
INCLUDE RWSAF001_FORM_ARTIKEL_STAMM.
INCLUDE RWSAF001_FORM_NEW_TASK.
INCLUDE RWSAF001_SCREEN.


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:

No SAP FUNCTION MODULES are executed within this report code!



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