SAP Reports / Programs

R_HBS_PRELIM SAP ABAP Report - Enhanced Project Scheduling







R_HBS_PRELIM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter R_HBS_PRELIM 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

HB_CO44 - Enhanced project scheduling


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 R_HBS_PRELIM. "Basic submit
SUBMIT R_HBS_PRELIM AND RETURN. "Return to original report after report execution complete
SUBMIT R_HBS_PRELIM 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: TESTRUN = Test run
Selection Text: TASK_NUM = Number of work processes
Selection Text: P_DB = Networks with confirmations
Selection Text: P_DAY = Date to use for scheduling
Selection Text: PROT_EXT = Extended version of log
Selection Text: PRELIM = Preliminary scheduling
Selection Text: NEXT_DAY = Next day scheduling
Selection Text: MAXCOUNT = Maximum number of orders
Selection Text: FULL = Full scheduling
Title: Enhanced Project Scheduling
Text Symbol: TYP = Order categories
Text Symbol: TSK = Task
Text Symbol: TOT = Orders were processed together (incl. collective orders)
Text Symbol: TER = Max. 20 work processes permitted
Text Symbol: TEC = Technical data
Text Symbol: TCP = Orders deleted from selection since delivery date not exceeded
Text Symbol: TCL = Technically close
Text Symbol: SUC = Orders processed successfully
Text Symbol: STA = Start
Text Symbol: SOR = Single orders
Text Symbol: SEL = Orders selected
Text Symbol: SEC = Order selection
Text Symbol: RET = Return
Text Symbol: PRN = Collective order
Text Symbol: PRC = Missing authorization for process order changes
Text Symbol: ORD = Orders
Text Symbol: OAC = Select a maximum of one function
Text Symbol: MOR = Select at least one order
Text Symbol: MOD = Selection mode
Text Symbol: LIF = Exceeding delivery date
Text Symbol: FAI = Order incorrect
Text Symbol: FAF = Missing authorization for production order changes
Text Symbol: EXP = Sum not always correct if error in collective orders
Text Symbol: ENH = Additional selection options
Text Symbol: END = Finish
Text Symbol: COL = Collective orders
Text Symbol: AUT = Missing authorization for production orders or process orders
Text Symbol: AUF = Order..:





Text Symbol: ACT = Actions
Text Symbol: 003 = E
Text Symbol: 002 = W
Text Symbol: 001 = I


INCLUDES used within this REPORT R_HBS_PRELIM

INCLUDE RHBS_PRELIM_TOP.


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:

HB_SET_PRELIM_SCHEDULE call function 'HB_SET_PRELIM_SCHEDULE' exporting flag = 'X' date = p_day.

HB_SET_PRELIM_SCHEDULE call function 'HB_SET_PRELIM_SCHEDULE' exporting flag = ' ' date = sy-datlo.

HB_ORDER_CHANGE_FOR_ACTIVITY_W CALL FUNCTION 'HB_ORDER_CHANGE_FOR_ACTIVITY_W' EXPORTING TESTRUN = TESTRUN FLG_TERM = FLG_TERM * flg_btch = flg_btch FLG_COST = FLG_COST * flg_rele = flg_rele FLG_TECL = FLG_TECL * flg_tecr = flg_tecr * flg_prnt = flg_prnt * FLG_VERF = FLG_VERF FLG_CAPA = FLG_CAPA FLG_LVS = FLG_LVS FLG_CLOS = FLG_CLOS MAXNUMBER = MAXCOUNT INIT_TABLES = YX EXPORT_MSG_TO_MEMORY = ' ' I_PRELIM_DATE = p_day I_FLG_PRELIM = prelim * IMPORTING * RFC_INFO = TABLES CAUFV_TAB = P_CAUFV_TAB TABLE_OF_MESSAGES = message_table EXCEPTIONS NOTHING_TO_DO = 1 WRONG_SELID = 2 OTHERS = 3 .

HB_ORDER_CHANGE_FOR_ACTIVITY_W CALL FUNCTION 'HB_ORDER_CHANGE_FOR_ACTIVITY_W' STARTING NEW TASK TASKNAME DESTINATION IN GROUP DEFAULT PERFORMING RETURN_MSG ON END OF TASK EXPORTING TESTRUN = TESTRUN FLG_TERM = FLG_TERM * flg_btch = flg_btch FLG_COST = FLG_COST * flg_rele = flg_rele * flg_prnt = flg_prnt * FLG_VERF = FLG_VERF FLG_CAPA = FLG_CAPA FLG_TECL = FLG_TECL FLG_LVS = FLG_LVS FLG_CLOS = FLG_CLOS MAXNUMBER = MAXCOUNT INIT_TABLES = YX EXPORT_MSG_TO_MEMORY = ' ' i_prelim_date = p_day i_flg_prelim = prelim TABLES TABLE_OF_MESSAGES = MESSAGE_TABLE CAUFV_TAB = CAUFV_TASK EXCEPTIONS NOTHING_TO_DO = 01 WRONG_SELID = 02 COMMUNICATION_FAILURE = 03 SYSTEM_FAILURE = 04 RESOURCE_FAILURE = 05 OTHERS = 06.



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