SAP LSO_IF_PREBOOKING_CREATE_C Function Module for Prebook Participation
LSO_IF_PREBOOKING_CREATE_C is a standard lso if prebooking create c SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Prebook Participation 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 lso if prebooking create c FM, simply by entering the name LSO_IF_PREBOOKING_CREATE_C into the relevant SAP transaction such as SE37 or SE38.
Function Group: LSO_IF_PORTAL_C
Program Name: SAPLLSO_IF_PORTAL_C
Main Program: SAPLLSO_IF_PORTAL_C
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function LSO_IF_PREBOOKING_CREATE_C 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 'LSO_IF_PREBOOKING_CREATE_C'"Prebook Participation.
EXPORTING
* PLVAR = "Plan Version
* ENDDATE = "End date of prebook period
* LEARNERID = "Attendee key (personnel number etc.)
* LEARNERTYPE = "Participant Type
TRAININGTYPEID = "
* PREBOOK_LANGUAGE = "Requested language of prebooking
* PREBOOK_LOCATION = "Requested location of prebooking
* PREBOOK_PRIORITY = "Booking priority of prebooking
* PREBOOK_COUNT = "Number of requested bookings
* BEGINDATE = "Start date of prebook period
IMPORTING
RETURN = "Structure for Return Parameters (Code, Text)
IMPORTING Parameters details for LSO_IF_PREBOOKING_CREATE_C
PLVAR - Plan Version
Data type: PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
ENDDATE - End date of prebook period
Data type: BAPIDATE-ENDDAOptional: Yes
Call by Reference: No ( called with pass by value option)
LEARNERID - Attendee key (personnel number etc.)
Data type: LSO_LEARNER_C-LEARNERIDOptional: Yes
Call by Reference: No ( called with pass by value option)
LEARNERTYPE - Participant Type
Data type: LSO_LEARNER_C-LEARNERTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
TRAININGTYPEID -
Data type: LSO_TRAININGTYPE_C-OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
PREBOOK_LANGUAGE - Requested language of prebooking
Data type: BAPIEVDAT-EVLNGOptional: Yes
Call by Reference: No ( called with pass by value option)
PREBOOK_LOCATION - Requested location of prebooking
Data type: BAPILOCDAT-LOCIDOptional: Yes
Call by Reference: No ( called with pass by value option)
PREBOOK_PRIORITY - Booking priority of prebooking
Data type: BAPIATDAT-PRIOXOptional: Yes
Call by Reference: No ( called with pass by value option)
PREBOOK_COUNT - Number of requested bookings
Data type: BAPIATDAT-MANZLOptional: Yes
Call by Reference: No ( called with pass by value option)
BEGINDATE - Start date of prebook period
Data type: BAPIDATE-BEGDAOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LSO_IF_PREBOOKING_CREATE_C
RETURN - Structure for Return Parameters (Code, Text)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LSO_IF_PREBOOKING_CREATE_C 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 PLVAR, " | |||
| lv_return | TYPE BAPIRET2, " | |||
| lv_enddate | TYPE BAPIDATE-ENDDA, " | |||
| lv_learnerid | TYPE LSO_LEARNER_C-LEARNERID, " | |||
| lv_learnertype | TYPE LSO_LEARNER_C-LEARNERTYPE, " | |||
| lv_trainingtypeid | TYPE LSO_TRAININGTYPE_C-OBJID, " | |||
| lv_prebook_language | TYPE BAPIEVDAT-EVLNG, " | |||
| lv_prebook_location | TYPE BAPILOCDAT-LOCID, " | |||
| lv_prebook_priority | TYPE BAPIATDAT-PRIOX, " | |||
| lv_prebook_count | TYPE BAPIATDAT-MANZL, " | |||
| lv_begindate | TYPE BAPIDATE-BEGDA. " |
|   CALL FUNCTION 'LSO_IF_PREBOOKING_CREATE_C' "Prebook Participation |
| EXPORTING | ||
| PLVAR | = lv_plvar | |
| ENDDATE | = lv_enddate | |
| LEARNERID | = lv_learnerid | |
| LEARNERTYPE | = lv_learnertype | |
| TRAININGTYPEID | = lv_trainingtypeid | |
| PREBOOK_LANGUAGE | = lv_prebook_language | |
| PREBOOK_LOCATION | = lv_prebook_location | |
| PREBOOK_PRIORITY | = lv_prebook_priority | |
| PREBOOK_COUNT | = lv_prebook_count | |
| BEGINDATE | = lv_begindate | |
| IMPORTING | ||
| RETURN | = lv_return | |
| . " LSO_IF_PREBOOKING_CREATE_C | ||
ABAP code using 7.40 inline data declarations to call FM LSO_IF_PREBOOKING_CREATE_C
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 ENDDA FROM BAPIDATE INTO @DATA(ld_enddate). | ||||
| "SELECT single LEARNERID FROM LSO_LEARNER_C INTO @DATA(ld_learnerid). | ||||
| "SELECT single LEARNERTYPE FROM LSO_LEARNER_C INTO @DATA(ld_learnertype). | ||||
| "SELECT single OBJID FROM LSO_TRAININGTYPE_C INTO @DATA(ld_trainingtypeid). | ||||
| "SELECT single EVLNG FROM BAPIEVDAT INTO @DATA(ld_prebook_language). | ||||
| "SELECT single LOCID FROM BAPILOCDAT INTO @DATA(ld_prebook_location). | ||||
| "SELECT single PRIOX FROM BAPIATDAT INTO @DATA(ld_prebook_priority). | ||||
| "SELECT single MANZL FROM BAPIATDAT INTO @DATA(ld_prebook_count). | ||||
| "SELECT single BEGDA FROM BAPIDATE INTO @DATA(ld_begindate). | ||||
Search for further information about these or an SAP related objects