SAP RH_EVENT_FIX Function Module for Firmly book / cancel business event









RH_EVENT_FIX is a standard rh event fix SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Firmly book / cancel business event processing and below is the pattern details for this FM, 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 event fix FM, simply by entering the name RH_EVENT_FIX into the relevant SAP transaction such as SE37 or SE38.

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



Function RH_EVENT_FIX 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_EVENT_FIX'"Firmly book / cancel business event
EXPORTING
PLVAR = "Plan version
EV_ID = "Business event (ID)
FIXOPT = "Edit: firmly book with optimum capacity
FIXMAX = "Edit: firmly book with maximum capacity
* REBSTART = SY-DATUM "Start date for rebookings
* MODE = 'X' "Editing mode

IMPORTING
WORK_DONE = "

EXCEPTIONS
NO_PLVAR = 1 NO_AUTHORITY = 10 UPDATE_CANCELLED = 11 NO_EVENT = 2 EVENT_NOT_FOUND = 3 ROOM_RESERVATION = 4 EVENT_HISTO = 5 NO_I1026 = 6 EVENT_CANCELLED = 7 MORE_THAN_ONE_I1026 = 8 NOT_SUPPORTED = 9
.



IMPORTING Parameters details for RH_EVENT_FIX

PLVAR - Plan version

Data type: HRVPVF-PLVAR
Optional: No
Call by Reference: No ( called with pass by value option)

EV_ID - Business event (ID)

Data type: HRVPVF-EV_ID
Optional: No
Call by Reference: No ( called with pass by value option)

FIXOPT - Edit: firmly book with optimum capacity

Data type: HRVPVF-FIXOPT
Optional: No
Call by Reference: No ( called with pass by value option)

FIXMAX - Edit: firmly book with maximum capacity

Data type: HRVPVF-FIXMAX
Optional: No
Call by Reference: No ( called with pass by value option)

REBSTART - Start date for rebookings

Data type: HRVPVF-EV_UMBDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE - Editing mode

Data type: HRVPVF-MODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RH_EVENT_FIX

WORK_DONE -

Data type: PD00_BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_PLVAR - Plan version has not been set

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: Yes

UPDATE_CANCELLED -

Data type:
Optional: No
Call by Reference: Yes

NO_EVENT - Business event not set

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EVENT_NOT_FOUND - Business event could not be found

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ROOM_RESERVATION - Business event belongs to Room Reservations

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EVENT_HISTO - Business event has historical record

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_I1026 - There is no additional information

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EVENT_CANCELLED - Business event is canceled

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

MORE_THAN_ONE_I1026 - Infotype 1026 occurs more than once in the period

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOT_SUPPORTED - Editing not possible

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RH_EVENT_FIX 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_plvar  TYPE HRVPVF-PLVAR, "   
lv_no_plvar  TYPE HRVPVF, "   
lv_work_done  TYPE PD00_BOOLEAN, "   
lv_no_authority  TYPE PD00_BOOLEAN, "   
lv_update_cancelled  TYPE PD00_BOOLEAN, "   
lv_ev_id  TYPE HRVPVF-EV_ID, "   
lv_no_event  TYPE HRVPVF, "   
lv_fixopt  TYPE HRVPVF-FIXOPT, "   
lv_event_not_found  TYPE HRVPVF, "   
lv_fixmax  TYPE HRVPVF-FIXMAX, "   
lv_room_reservation  TYPE HRVPVF, "   
lv_rebstart  TYPE HRVPVF-EV_UMBDAT, "   SY-DATUM
lv_event_histo  TYPE HRVPVF, "   
lv_mode  TYPE HRVPVF-MODE, "   'X'
lv_no_i1026  TYPE HRVPVF, "   
lv_event_cancelled  TYPE HRVPVF, "   
lv_more_than_one_i1026  TYPE HRVPVF, "   
lv_not_supported  TYPE HRVPVF. "   

  CALL FUNCTION 'RH_EVENT_FIX'  "Firmly book / cancel business event
    EXPORTING
         PLVAR = lv_plvar
         EV_ID = lv_ev_id
         FIXOPT = lv_fixopt
         FIXMAX = lv_fixmax
         REBSTART = lv_rebstart
         MODE = lv_mode
    IMPORTING
         WORK_DONE = lv_work_done
    EXCEPTIONS
        NO_PLVAR = 1
        NO_AUTHORITY = 10
        UPDATE_CANCELLED = 11
        NO_EVENT = 2
        EVENT_NOT_FOUND = 3
        ROOM_RESERVATION = 4
        EVENT_HISTO = 5
        NO_I1026 = 6
        EVENT_CANCELLED = 7
        MORE_THAN_ONE_I1026 = 8
        NOT_SUPPORTED = 9
. " RH_EVENT_FIX




ABAP code using 7.40 inline data declarations to call FM RH_EVENT_FIX

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.

"SELECT single PLVAR FROM HRVPVF INTO @DATA(ld_plvar).
 
 
 
 
 
"SELECT single EV_ID FROM HRVPVF INTO @DATA(ld_ev_id).
 
 
"SELECT single FIXOPT FROM HRVPVF INTO @DATA(ld_fixopt).
 
 
"SELECT single FIXMAX FROM HRVPVF INTO @DATA(ld_fixmax).
 
 
"SELECT single EV_UMBDAT FROM HRVPVF INTO @DATA(ld_rebstart).
DATA(ld_rebstart) = SY-DATUM.
 
 
"SELECT single MODE FROM HRVPVF INTO @DATA(ld_mode).
DATA(ld_mode) = 'X'.
 
 
 
 
 


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!