SAP RH_WEB_BENCH Function Module for









RH_WEB_BENCH is a standard rh web bench SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rh web bench FM, simply by entering the name RH_WEB_BENCH into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRTEM00NET
Program Name: SAPLHRTEM00NET
Main Program: SAPLHRTEM00NET
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RH_WEB_BENCH pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RH_WEB_BENCH'"
EXPORTING
* MODE = 'E' "
* PROCEDURE = 'N' "
* PLANVERSION = "
* PERIOD = 00 "
* EVLOCATION = "
* LANGUAGE = SY-LANGU "
* TO_BASKET = "

TABLES
* EVENTTYPE_EXT = "
* EVENT_EXT = "
* EVENT_LIST = "
* SHOPPING_BASKET = "

EXCEPTIONS
NO_EVENT_OFFER = 1 CANCELLED = 2
.



IMPORTING Parameters details for RH_WEB_BENCH

MODE -

Data type:
Default: 'E'
Optional: No
Call by Reference: Yes

PROCEDURE -

Data type:
Default: 'N'
Optional: No
Call by Reference: Yes

PLANVERSION -

Data type: HRTEM00NET-PLVAR
Optional: Yes
Call by Reference: Yes

PERIOD -

Data type: HRTEM00NET-PERIOD
Default: 00
Optional: Yes
Call by Reference: Yes

EVLOCATION -

Data type: HRTEM00NET-LOCID
Optional: Yes
Call by Reference: Yes

LANGUAGE -

Data type: HRTEM00NET-EVLNG
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

TO_BASKET -

Data type:
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for RH_WEB_BENCH

EVENTTYPE_EXT -

Data type: HROBJECT
Optional: Yes
Call by Reference: Yes

EVENT_EXT -

Data type: HROBJECT
Optional: Yes
Call by Reference: Yes

EVENT_LIST -

Data type: HRTEMEVENT
Optional: Yes
Call by Reference: Yes

SHOPPING_BASKET -

Data type: HRTEMEVENT
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

NO_EVENT_OFFER -

Data type:
Optional: No
Call by Reference: Yes

CANCELLED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RH_WEB_BENCH Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_mode  TYPE STRING, "   'E'
lt_eventtype_ext  TYPE STANDARD TABLE OF HROBJECT, "   
lv_no_event_offer  TYPE HROBJECT, "   
lv_cancelled  TYPE HROBJECT, "   
lt_event_ext  TYPE STANDARD TABLE OF HROBJECT, "   
lv_procedure  TYPE HROBJECT, "   'N'
lt_event_list  TYPE STANDARD TABLE OF HRTEMEVENT, "   
lv_planversion  TYPE HRTEM00NET-PLVAR, "   
lv_period  TYPE HRTEM00NET-PERIOD, "   00
lt_shopping_basket  TYPE STANDARD TABLE OF HRTEMEVENT, "   
lv_evlocation  TYPE HRTEM00NET-LOCID, "   
lv_language  TYPE HRTEM00NET-EVLNG, "   SY-LANGU
lv_to_basket  TYPE HRTEM00NET. "   

  CALL FUNCTION 'RH_WEB_BENCH'  "
    EXPORTING
         MODE = lv_mode
         PROCEDURE = lv_procedure
         PLANVERSION = lv_planversion
         PERIOD = lv_period
         EVLOCATION = lv_evlocation
         LANGUAGE = lv_language
         TO_BASKET = lv_to_basket
    TABLES
         EVENTTYPE_EXT = lt_eventtype_ext
         EVENT_EXT = lt_event_ext
         EVENT_LIST = lt_event_list
         SHOPPING_BASKET = lt_shopping_basket
    EXCEPTIONS
        NO_EVENT_OFFER = 1
        CANCELLED = 2
. " RH_WEB_BENCH




ABAP code using 7.40 inline data declarations to call FM RH_WEB_BENCH

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

DATA(ld_mode) = 'E'.
 
 
 
 
 
DATA(ld_procedure) = 'N'.
 
 
"SELECT single PLVAR FROM HRTEM00NET INTO @DATA(ld_planversion).
 
"SELECT single PERIOD FROM HRTEM00NET INTO @DATA(ld_period).
DATA(ld_period) = 00.
 
 
"SELECT single LOCID FROM HRTEM00NET INTO @DATA(ld_evlocation).
 
"SELECT single EVLNG FROM HRTEM00NET INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!