SAP RH_PARTICIPATION_INSERT Function Module for









RH_PARTICIPATION_INSERT is a standard rh participation insert 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 participation insert FM, simply by entering the name RH_PARTICIPATION_INSERT into the relevant SAP transaction such as SE37 or SE38.

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



Function RH_PARTICIPATION_INSERT 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_PARTICIPATION_INSERT'"
EXPORTING
* PLVAR = "Plan version
* BUDAT = SY-DATUM "
* MANZL = "Number of attendees booked
* LOCID = "
* ADD_DATA = "
* VTASK = ' ' "
* MODE = 'A' "Execution mode of FM
* WITH_AUT = 'X' "
* ETYID = "Business event type
* EVBGD = "Start date of selection period
* EVEND = "End date of selection period
* EVLNG = SY-LANGU "Language in which business event is held
* EVEID = "Business event
* PARTY = "Attendee type
* PARID = "Attendee
* BPRIO = "Booking Priority

IMPORTING
RANZL = "

TABLES
* UPDATE_LIST = "

EXCEPTIONS
NO_AUTHORITY = 1 EVENT_LOCKED = 10 ATTENDEE_BOOKED_ON_OTHER_EVENT = 11 PARTLY_BOOKED = 12 PARTLY_BOOKED_USE_WAITLIST = 13 NOT_BOOKED_USE_WAITL_OR_OBL = 14 NOT_BOOKED_USE_WAITLIST = 15 MAX_WAITLIST_REACHED = 16 INVALID_ATTENDEE = 2 INVALID_SCHEDULE = 3 INVALID_BUS_EVENT = 4 ATTENDEE_IS_INSTRUCTOR = 5 ATTENDEE_NOT_AVAILABLE = 6 INTERNAL_ERROR = 7 ATTENDEE_LOCKED = 8 INVALID_PLANVERSION = 9
.



IMPORTING Parameters details for RH_PARTICIPATION_INSERT

PLVAR - Plan version

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

BUDAT -

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

MANZL - Number of attendees booked

Data type: HRVPV-MANZL
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOCID -

Data type: PAD27-LOCID
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADD_DATA -

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

VTASK -

Data type: PPPAR-VTASK
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MODE - Execution mode of FM

Data type:
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITH_AUT -

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

ETYID - Business event type

Data type: HRVPV-ETYID
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVBGD - Start date of selection period

Data type: HRVPV-EVBGD
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVEND - End date of selection period

Data type: HRVPV-EVEND
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVLNG - Language in which business event is held

Data type: HRVPAR-EVLNG
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

EVEID - Business event

Data type: HRVPV-EVEID
Optional: Yes
Call by Reference: No ( called with pass by value option)

PARTY - Attendee type

Data type: OBJEC-OTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PARID - Attendee

Data type: OBJEC-REALO
Optional: Yes
Call by Reference: No ( called with pass by value option)

BPRIO - Booking Priority

Data type: HRVPV-BPRIO
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RH_PARTICIPATION_INSERT

RANZL -

Data type: HRVPV-MANZL
Optional: No
Call by Reference: Yes

TABLES Parameters details for RH_PARTICIPATION_INSERT

UPDATE_LIST -

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

EXCEPTIONS details

NO_AUTHORITY - No authorization for this function

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

EVENT_LOCKED -

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

ATTENDEE_BOOKED_ON_OTHER_EVENT -

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

PARTLY_BOOKED -

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

PARTLY_BOOKED_USE_WAITLIST -

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

NOT_BOOKED_USE_WAITL_OR_OBL -

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

NOT_BOOKED_USE_WAITLIST -

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

MAX_WAITLIST_REACHED -

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

INVALID_ATTENDEE -

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

INVALID_SCHEDULE -

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

INVALID_BUS_EVENT -

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

ATTENDEE_IS_INSTRUCTOR -

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

ATTENDEE_NOT_AVAILABLE -

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

INTERNAL_ERROR -

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

ATTENDEE_LOCKED -

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

INVALID_PLANVERSION -

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

Copy and paste ABAP code example for RH_PARTICIPATION_INSERT 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 HRVPAR-PLVAR, "   
lv_ranzl  TYPE HRVPV-MANZL, "   
lt_update_list  TYPE STANDARD TABLE OF P1001, "   
lv_no_authority  TYPE P1001, "   
lv_budat  TYPE HRVPV-BUDAT, "   SY-DATUM
lv_event_locked  TYPE HRVPV, "   
lv_manzl  TYPE HRVPV-MANZL, "   
lv_attendee_booked_on_other_event  TYPE HRVPV, "   
lv_locid  TYPE PAD27-LOCID, "   
lv_partly_booked  TYPE PAD27, "   
lv_add_data  TYPE PAD25, "   
lv_partly_booked_use_waitlist  TYPE PAD25, "   
lv_vtask  TYPE PPPAR-VTASK, "   ' '
lv_not_booked_use_waitl_or_obl  TYPE PPPAR, "   
lv_mode  TYPE PPPAR, "   'A'
lv_not_booked_use_waitlist  TYPE PPPAR, "   
lv_with_aut  TYPE PPPAR, "   'X'
lv_max_waitlist_reached  TYPE PPPAR, "   
lv_etyid  TYPE HRVPV-ETYID, "   
lv_invalid_attendee  TYPE HRVPV, "   
lv_evbgd  TYPE HRVPV-EVBGD, "   
lv_invalid_schedule  TYPE HRVPV, "   
lv_evend  TYPE HRVPV-EVEND, "   
lv_invalid_bus_event  TYPE HRVPV, "   
lv_evlng  TYPE HRVPAR-EVLNG, "   SY-LANGU
lv_attendee_is_instructor  TYPE HRVPAR, "   
lv_eveid  TYPE HRVPV-EVEID, "   
lv_attendee_not_available  TYPE HRVPV, "   
lv_party  TYPE OBJEC-OTYPE, "   
lv_internal_error  TYPE OBJEC, "   
lv_parid  TYPE OBJEC-REALO, "   
lv_attendee_locked  TYPE OBJEC, "   
lv_bprio  TYPE HRVPV-BPRIO, "   
lv_invalid_planversion  TYPE HRVPV. "   

  CALL FUNCTION 'RH_PARTICIPATION_INSERT'  "
    EXPORTING
         PLVAR = lv_plvar
         BUDAT = lv_budat
         MANZL = lv_manzl
         LOCID = lv_locid
         ADD_DATA = lv_add_data
         VTASK = lv_vtask
         MODE = lv_mode
         WITH_AUT = lv_with_aut
         ETYID = lv_etyid
         EVBGD = lv_evbgd
         EVEND = lv_evend
         EVLNG = lv_evlng
         EVEID = lv_eveid
         PARTY = lv_party
         PARID = lv_parid
         BPRIO = lv_bprio
    IMPORTING
         RANZL = lv_ranzl
    TABLES
         UPDATE_LIST = lt_update_list
    EXCEPTIONS
        NO_AUTHORITY = 1
        EVENT_LOCKED = 10
        ATTENDEE_BOOKED_ON_OTHER_EVENT = 11
        PARTLY_BOOKED = 12
        PARTLY_BOOKED_USE_WAITLIST = 13
        NOT_BOOKED_USE_WAITL_OR_OBL = 14
        NOT_BOOKED_USE_WAITLIST = 15
        MAX_WAITLIST_REACHED = 16
        INVALID_ATTENDEE = 2
        INVALID_SCHEDULE = 3
        INVALID_BUS_EVENT = 4
        ATTENDEE_IS_INSTRUCTOR = 5
        ATTENDEE_NOT_AVAILABLE = 6
        INTERNAL_ERROR = 7
        ATTENDEE_LOCKED = 8
        INVALID_PLANVERSION = 9
. " RH_PARTICIPATION_INSERT




ABAP code using 7.40 inline data declarations to call FM RH_PARTICIPATION_INSERT

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 HRVPAR INTO @DATA(ld_plvar).
 
"SELECT single MANZL FROM HRVPV INTO @DATA(ld_ranzl).
 
 
 
"SELECT single BUDAT FROM HRVPV INTO @DATA(ld_budat).
DATA(ld_budat) = SY-DATUM.
 
 
"SELECT single MANZL FROM HRVPV INTO @DATA(ld_manzl).
 
 
"SELECT single LOCID FROM PAD27 INTO @DATA(ld_locid).
 
 
 
 
"SELECT single VTASK FROM PPPAR INTO @DATA(ld_vtask).
DATA(ld_vtask) = ' '.
 
 
DATA(ld_mode) = 'A'.
 
 
DATA(ld_with_aut) = 'X'.
 
 
"SELECT single ETYID FROM HRVPV INTO @DATA(ld_etyid).
 
 
"SELECT single EVBGD FROM HRVPV INTO @DATA(ld_evbgd).
 
 
"SELECT single EVEND FROM HRVPV INTO @DATA(ld_evend).
 
 
"SELECT single EVLNG FROM HRVPAR INTO @DATA(ld_evlng).
DATA(ld_evlng) = SY-LANGU.
 
 
"SELECT single EVEID FROM HRVPV INTO @DATA(ld_eveid).
 
 
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_party).
 
 
"SELECT single REALO FROM OBJEC INTO @DATA(ld_parid).
 
 
"SELECT single BPRIO FROM HRVPV INTO @DATA(ld_bprio).
 
 


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!