SAP Reports / Programs

RHRBEL00 SAP ABAP Report - Resource Reservation







RHRBEL00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report generates a tabular display of the reservation of a selected resource type over a specified period of 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 RHRBEL00 into the relevant SAP transactions such as SE38 or SE80


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 RHRBEL00. "Basic submit
SUBMIT RHRBEL00 AND RETURN. "Return to original report after report execution complete
SUBMIT RHRBEL00 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: TXT_ID = ?...(TXT_ID)
Selection Text: OCCP = ?...(OCCP)
Selection Text: HOLIDAY = ?...(HOLIDAY)
Selection Text: WEEK = Week
Selection Text: PLANED = Planned business events
Selection Text: ORTSRK = Location
Selection Text: HOUR = Hour
Selection Text: FIXED = Firmly booked business events
Selection Text: EXPLOD = ?...(EXPLOD)
Selection Text: EVTSRK = Business event type
Selection Text: DAY = Day
Title: Resource Reservation
Text Symbol: ZTR = Period
Text Symbol: WED = Wednesday
Text Symbol: TUE = Tuesday
Text Symbol: TIT = Resource Reservation
Text Symbol: TIM = Time
Text Symbol: THU = Thursday
Text Symbol: SUN = Sunday
Text Symbol: SAT = Saturday
Text Symbol: ORT = Location
Text Symbol: MON = Monday
Text Symbol: KWO = Calendar week
Text Symbol: FRI = Friday
Text Symbol: FRE = Day off
Text Symbol: EVT = Business event type
Text Symbol: END = to
Text Symbol: DAY = Weekday
Text Symbol: DAT = Date
Text Symbol: BEG = from
Text Symbol: 011 = Display only one reservation per resource
Text Symbol: 010 = Display IDs
Text Symbol: 009 = 0 also shows non-reserved
Text Symbol: 007 = Min. reservation per resource
Text Symbol: 006 = Display days off (only daily period split)
Text Symbol: 005 = Selection options
Text Symbol: 004 = Hour
Text Symbol: 003 = Week





Text Symbol: 002 = Day
Text Symbol: 001 = Period split


INCLUDES used within this REPORT RHRBEL00

INCLUDE: BEL00TOP,
RHREPVAL.


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:

RH_READ_INFTY_NNNN CALL FUNCTION 'RH_READ_INFTY_NNNN' EXPORTING INFTY = '1027' ISTAT = '1' BEGDA = PC-BEGDA ENDDA = PC-ENDDA TABLES INNNN = I1027 OBJECTS = ORT_OBJECT EXCEPTIONS NOTHING_FOUND = 1 WRONG_CONDITION = 2 OTHERS = 3.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = PCHPLVAR OTYPE = $KURSO OBJID = ORT-OBJID IMPORTING SHORT = ORT-SHORT STEXT = ORT-STEXT EXCEPTIONS OTHERS = 0.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = PCHPLVAR OTYPE = $KURST OBJID = EVTYP-OBJID IMPORTING SHORT = EVTYP-SHORT STEXT = EVTYP-STEXT EXCEPTIONS OTHERS = 0.

RH_READ_INFTY_1001_EXT CALL FUNCTION 'RH_READ_INFTY_1001_EXT' EXPORTING AUTHORITY = 'DISP' WITH_STRU_AUTH = 'X' ISTAT = SEL_ISTAT EXTEND = 'X' SUBTY = $OCCPB "B023 / wird belegt von BEGDA = PC-BEGDA ENDDA = PC-ENDDA * CONDITION = '00000' SORT = 'X' * WITH_EV_FOR_INT = ' ' ADATA = 'X' TABLES I1001 = I1001_EXT OBJECTS = OBJ_TAB1 EXCEPTIONS NOTHING_FOUND = 01 WRONG_CONDITION = 02.

RH_CHECK_EVENTS_FOR_LOCATION CALL FUNCTION 'RH_CHECK_EVENTS_FOR_LOCATION' "XEY553632 EXPORTING ortid = ort-objid * BEGDA = '19000101' * ENDDA = '99991231' TABLES eventlist = event_tab EXCEPTIONS * LOCATION_NOT_FOUND = 1 events_not_found = 2 * INTERNAL_ERROR = 3 OTHERS = 4 .

RH_CHECK_EVENTS_FOR_1031 CALL FUNCTION 'RH_CHECK_EVENTS_FOR_1031' TABLES EVENTLIST = OBJ_TAB2 EXCEPTIONS OTHERS = 0.

RH_TEXT_BUFFER_FILL CALL FUNCTION 'RH_TEXT_BUFFER_FILL' EXPORTING CHECK_STRU_AUTH = 'X' TABLES OBJECTS = OBJ_TAB2.

RH_READ_OBJECT CALL FUNCTION 'RH_READ_OBJECT' EXPORTING PLVAR = OCCUPANCY-PLVAR OTYPE = OCCUPANCY-OTYPE * objid = occupancy-objid REALO = OCCUPANCY-OBJID ISTAT = SEL_ISTAT BEGDA = SY-DATUM ENDDA = SY-DATUM LANGU = SY-LANGU OINTERVAL = 'X' STORE = 'X' CHECK_STRU_AUTH = 'X' IMPORTING OBEG = OCCUPANCY-BEGDA OEND = OCCUPANCY-ENDDA OSTAT = OCCUPANCY-ISTAT HISTO = OCCUPANCY-HISTO SHORT = OCCUPANCY-SHORT STEXT = OCCUPANCY-STEXT EXCEPTIONS NOT_FOUND = 01.

RH_GRAPH_RESOURCE_OCCUPANCY * CALL FUNCTION 'RH_GRAPH_RESOURCE_OCCUPANCY' * EXPORTING * STATUS = STATUS * UNIT = UNIT * MODIFY = SPACE * RES_STEXT = RESTY-STEXT * BEGDA = PC-BEGDA * ENDDA = PC-ENDDA * TABLES * RES_BOXES = RESSOURCE * OCC_NODES = OCCUPANCY.

RH_BARC_EVENT_PLAN CALL FUNCTION 'RH_BARC_EVENT_PLAN' EXPORTING status = status unit = unit begda = pc-begda endda = pc-endda res_stext = resty-stext MODE = 'X' * IMPORTING * PTEST = * PPROT = TABLES res_boxes = ressource occ_nodes = occupancy.

RH_POPUP_PARTICIPANTS CALL FUNCTION 'RH_POPUP_PARTICIPANTS' EXPORTING PLVAR = RESTY-PLVAR EVEID = ACTUAL_ID WITH_PRICE = 'X' INSERT_PRICE = ' ' CANCEL_PARTIC = ' ' EXCEPTIONS NO_EVENT_FOUND = 01 SHOW_PARTIC_FAILED = 02.

RH_POPUP_SCHEDULE CALL FUNCTION 'RH_POPUP_SCHEDULE' EXPORTING PLVAR = RESTY-PLVAR OTYPE = 'E' OBJID = ACTUAL_ID * stext = * short = READ_EVE_TEXT = SPACE CUCOL = 10 CUROW = 10 EXCEPTIONS GET_SCHEDULE_FAILED = 01 OBJECT_NOT_FOUND = 02.

DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' "erste Kalenderwoche EXPORTING DATE = PC-BEGDA IMPORTING WEEK = KAL_WEEK EXCEPTIONS DATE_INVALID = 01.

WEEK_GET_FIRST_DAY CALL FUNCTION 'WEEK_GET_FIRST_DAY' EXPORTING WEEK = KAL_WEEK IMPORTING DATE = PC-BEGDA "<-erster Tag der..

DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' "letzte Kalenderwoche EXPORTING DATE = PC-ENDDA IMPORTING WEEK = KAL_WEEK EXCEPTIONS DATE_INVALID = 01.

WEEK_GET_FIRST_DAY CALL FUNCTION 'WEEK_GET_FIRST_DAY' EXPORTING WEEK = KAL_WEEK IMPORTING DATE = PC-ENDDA EXCEPTIONS WEEK_INVALID = 01.

DATE_COMPUTE_DAY





CALL FUNCTION 'DATE_COMPUTE_DAY' EXPORTING date = hdate IMPORTING day = hday.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING CORRECT_OPTION = '+' DATE = HDATE FACTORY_CALENDAR_ID = $ORTCA IMPORTING WORKINGDAY_INDICATOR = FEIERTAG EXCEPTIONS CALENDAR_BUFFER_NOT_LOADABLE = 01 CORRECT_OPTION_INVALID = 02 DATE_AFTER_RANGE = 03 DATE_BEFORE_RANGE = 04 DATE_INVALID = 05 FACTORY_CALENDAR_NOT_FOUND = 06.

DATE_GET_WEEK CALL FUNCTION 'DATE_GET_WEEK' "Kalenderwoche lesen EXPORTING DATE = KAL_TAB-BEGDA IMPORTING WEEK = KAL_TAB-WEEK EXCEPTIONS DATE_INVALID = 01.

RH_BUILD_OCCPA_SCHEDULE CALL FUNCTION 'RH_BUILD_OCCPA_SCHEDULE' TABLES IN_OCCPA_TAB = IVPAD23 OUT_TIME_TAB = IT1035 EXCEPTIONS OTHERS = 1.

RH_RESOURCES_FOR_RESTYS_READ CALL FUNCTION 'RH_RESOURCES_FOR_RESTYS_READ' EXPORTING ISTAT = PCHISTAT BEGDA = PCHBEGDA ENDDA = PCHENDDA ORTID = GR_ORTID EVTYP_ID = EVTYP-OBJID TABLES R_TAB = RESTYID_TAB RESOURCETYPES = RTTAB1 R_G_TAB = R_G_TAB EXCEPTIONS R_TAB_EMPTY = 1 OTHERS = 2.

RH_READ_INFTY_1001 * call function 'RH_READ_INFTY_1001' * exporting ** AUTHORITY = 'DISP' ** WITH_STRU_AUTH = 'X' * istat = pchistat ** EXTEND = 'X' * subty = $speca "A020 * begda = ressource-begda * endda = ressource-endda ** CONDITION = '00000' ** SORT = 'X' ** WITH_EV = ' ' ** ADATA = 'X' * tables * i1001 = i1001 * objects = call_object * exceptions * nothing_found = 1 * wrong_condition = 2 * others = 3.

RH_READ_OBJECT * call function 'RH_READ_OBJECT' * exporting * plvar = ressource-plvar * otype = i1001-sclas * objid = call_objid ** REALO = ' ' ** ISTAT = ' ' ** BEGDA = SY-DATUM ** ENDDA = SY-DATUM ** LANGU = SY-LANGU ** OINTERVAL = 'X' ** STORE = 'X' ** CHECK_STRU_AUTH = 'X' ** READ_DB = ' ' * importing * obeg = obeg * oend = oend * ostat = ostat * histo = histo * short = short * stext = stext * exceptions * not_found = 1 * others = 2.



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