SAP HRIQ_PREBOOKING_DELETE Function Module for Training and Event Management: Delete Prebooking
HRIQ_PREBOOKING_DELETE is a standard hriq prebooking delete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Training and Event Management: Delete Prebooking 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 hriq prebooking delete FM, simply by entering the name HRIQ_PREBOOKING_DELETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRPIQ00HRBASE_TEM
Program Name: SAPLHRPIQ00HRBASE_TEM
Main Program: SAPLHRPIQ00HRBASE_TEM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function HRIQ_PREBOOKING_DELETE 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 'HRIQ_PREBOOKING_DELETE'"Training and Event Management: Delete Prebooking.
EXPORTING
PLVAR = "Plan Version
LOCID = "Event Location
BEGDA = "Start date of selection period for business events
ENDDA = "End date of selection period for business events
* VTASK = ' ' "Type of update
* WITH_ENQ = 'X' "
* WITH_AUT = 'X' "
* MODE = 'A' "
ETTYP = "Object Type
ETYID = "Business Event Type: Key
PATYP = "Object Type
PARID = "Extended object ID
EVLNG = "Key for Business Event Language
BPRIO = "Booking Priority
BUDAT = "Booking Date
MANZL = "Number of Participations
EXCEPTIONS
NOTHING_FOUND = 1 NO_AUTHORITY = 2
IMPORTING Parameters details for HRIQ_PREBOOKING_DELETE
PLVAR - Plan Version
Data type: HRVPAR-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
LOCID - Event Location
Data type: PAD27-LOCIDOptional: No
Call by Reference: No ( called with pass by value option)
BEGDA - Start date of selection period for business events
Data type: HRVPV-EVBGDOptional: No
Call by Reference: No ( called with pass by value option)
ENDDA - End date of selection period for business events
Data type: HRVPV-EVENDOptional: No
Call by Reference: No ( called with pass by value option)
VTASK - Type of update
Data type: PPPAR-VTASKDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
WITH_ENQ -
Data type:Default: 'X'
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)
MODE -
Data type:Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ETTYP - Object Type
Data type: HRVEVDAT-ETTYPOptional: No
Call by Reference: No ( called with pass by value option)
ETYID - Business Event Type: Key
Data type: HRVEVDAT-ETYIDOptional: No
Call by Reference: No ( called with pass by value option)
PATYP - Object Type
Data type: OBJEC-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
PARID - Extended object ID
Data type: OBJEC-REALOOptional: No
Call by Reference: No ( called with pass by value option)
EVLNG - Key for Business Event Language
Data type: HRVEVDAT-EVLNGOptional: No
Call by Reference: No ( called with pass by value option)
BPRIO - Booking Priority
Data type: HRVPV-BPRIOOptional: No
Call by Reference: No ( called with pass by value option)
BUDAT - Booking Date
Data type: HRVPV-BUDATOptional: No
Call by Reference: No ( called with pass by value option)
MANZL - Number of Participations
Data type: HRVPV-MANZLOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOTHING_FOUND -
Data type:Optional: No
Call by Reference: Yes
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for HRIQ_PREBOOKING_DELETE 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_nothing_found | TYPE HRVPAR, " | |||
lv_locid | TYPE PAD27-LOCID, " | |||
lv_begda | TYPE HRVPV-EVBGD, " | |||
lv_endda | TYPE HRVPV-EVEND, " | |||
lv_vtask | TYPE PPPAR-VTASK, " ' ' | |||
lv_with_enq | TYPE PPPAR, " 'X' | |||
lv_with_aut | TYPE PPPAR, " 'X' | |||
lv_mode | TYPE PPPAR, " 'A' | |||
lv_ettyp | TYPE HRVEVDAT-ETTYP, " | |||
lv_no_authority | TYPE HRVEVDAT, " | |||
lv_etyid | TYPE HRVEVDAT-ETYID, " | |||
lv_patyp | TYPE OBJEC-OTYPE, " | |||
lv_parid | TYPE OBJEC-REALO, " | |||
lv_evlng | TYPE HRVEVDAT-EVLNG, " | |||
lv_bprio | TYPE HRVPV-BPRIO, " | |||
lv_budat | TYPE HRVPV-BUDAT, " | |||
lv_manzl | TYPE HRVPV-MANZL. " |
  CALL FUNCTION 'HRIQ_PREBOOKING_DELETE' "Training and Event Management: Delete Prebooking |
EXPORTING | ||
PLVAR | = lv_plvar | |
LOCID | = lv_locid | |
BEGDA | = lv_begda | |
ENDDA | = lv_endda | |
VTASK | = lv_vtask | |
WITH_ENQ | = lv_with_enq | |
WITH_AUT | = lv_with_aut | |
MODE | = lv_mode | |
ETTYP | = lv_ettyp | |
ETYID | = lv_etyid | |
PATYP | = lv_patyp | |
PARID | = lv_parid | |
EVLNG | = lv_evlng | |
BPRIO | = lv_bprio | |
BUDAT | = lv_budat | |
MANZL | = lv_manzl | |
EXCEPTIONS | ||
NOTHING_FOUND = 1 | ||
NO_AUTHORITY = 2 | ||
. " HRIQ_PREBOOKING_DELETE |
ABAP code using 7.40 inline data declarations to call FM HRIQ_PREBOOKING_DELETE
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 LOCID FROM PAD27 INTO @DATA(ld_locid). | ||||
"SELECT single EVBGD FROM HRVPV INTO @DATA(ld_begda). | ||||
"SELECT single EVEND FROM HRVPV INTO @DATA(ld_endda). | ||||
"SELECT single VTASK FROM PPPAR INTO @DATA(ld_vtask). | ||||
DATA(ld_vtask) | = ' '. | |||
DATA(ld_with_enq) | = 'X'. | |||
DATA(ld_with_aut) | = 'X'. | |||
DATA(ld_mode) | = 'A'. | |||
"SELECT single ETTYP FROM HRVEVDAT INTO @DATA(ld_ettyp). | ||||
"SELECT single ETYID FROM HRVEVDAT INTO @DATA(ld_etyid). | ||||
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_patyp). | ||||
"SELECT single REALO FROM OBJEC INTO @DATA(ld_parid). | ||||
"SELECT single EVLNG FROM HRVEVDAT INTO @DATA(ld_evlng). | ||||
"SELECT single BPRIO FROM HRVPV INTO @DATA(ld_bprio). | ||||
"SELECT single BUDAT FROM HRVPV INTO @DATA(ld_budat). | ||||
"SELECT single MANZL FROM HRVPV INTO @DATA(ld_manzl). | ||||
Search for further information about these or an SAP related objects