SAP BAPI_SLS_BOOK_BOOKING_LIST Function Module for Read bookings of participants









BAPI_SLS_BOOK_BOOKING_LIST is a standard bapi sls book booking list SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read bookings of participants 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 bapi sls book booking list FM, simply by entering the name BAPI_SLS_BOOK_BOOKING_LIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: SLSB
Program Name: SAPLSLSB
Main Program:
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_SLS_BOOK_BOOKING_LIST 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 'BAPI_SLS_BOOK_BOOKING_LIST'"Read bookings of participants
EXPORTING
* EGRID = "Event group id
LOCID = "Location id
* EVEID = "
* BEGIN_DATE = "Begin date
* END_DATE = "End date

IMPORTING
RETURN = "

TABLES
P_PARTIC = "Table for selected bookings
P_PARTIC_NO = "

EXCEPTIONS
NO_HR_SYSTEM_FOUND = 1 NO_LOCATION_ASSIGNMENT = 10 WRONG_PLVAR = 11 NO_TEST_TYPE_SOURCE = 12 UNKNOWN_EXCEPTION = 13 NO_PLVAR_FOUND = 2 NO_PARTICIPANT_FUNCTION_FOUND = 3 NO_PARTICIPANT = 4 NO_EVENTGROUP = 5 NO_EVENT_TYPE = 6 NO_EVENT = 7 ROOT_NOT_FOUND = 8 WEGID_NOT_FOUND = 9
.



IMPORTING Parameters details for BAPI_SLS_BOOK_BOOKING_LIST

EGRID - Event group id

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

LOCID - Location id

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

EVEID -

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

BEGIN_DATE - Begin date

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

END_DATE - End date

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

EXPORTING Parameters details for BAPI_SLS_BOOK_BOOKING_LIST

RETURN -

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

TABLES Parameters details for BAPI_SLS_BOOK_BOOKING_LIST

P_PARTIC - Table for selected bookings

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

P_PARTIC_NO -

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

EXCEPTIONS details

NO_HR_SYSTEM_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_LOCATION_ASSIGNMENT - No assignments available for location

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

WRONG_PLVAR - Wrong plan version

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

NO_TEST_TYPE_SOURCE - No customizing for kind of reading test type

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

UNKNOWN_EXCEPTION - Other error

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

NO_PLVAR_FOUND - There is no active plan version

Data type:
Optional: No
Call by Reference: Yes

NO_PARTICIPANT_FUNCTION_FOUND -

Data type:
Optional: No
Call by Reference: Yes

NO_PARTICIPANT -

Data type:
Optional: No
Call by Reference: Yes

NO_EVENTGROUP -

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

NO_EVENT_TYPE -

Data type:
Optional: No
Call by Reference: Yes

NO_EVENT -

Data type:
Optional: No
Call by Reference: Yes

ROOT_NOT_FOUND - You did not specify a valid business event group

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

WEGID_NOT_FOUND - There is no valid hierarchy definition

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

Copy and paste ABAP code example for BAPI_SLS_BOOK_BOOKING_LIST 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_egrid  TYPE SLS_BAPIBK-EGRID, "   
lv_return  TYPE SLS_BAPIRE, "   
lt_p_partic  TYPE STANDARD TABLE OF SLS_BAPIBO, "   
lv_no_hr_system_found  TYPE SLS_BAPIBO, "   
lv_no_location_assignment  TYPE SLS_BAPIBO, "   
lv_wrong_plvar  TYPE SLS_BAPIBO, "   
lv_no_test_type_source  TYPE SLS_BAPIBO, "   
lv_unknown_exception  TYPE SLS_BAPIBO, "   
lv_locid  TYPE SLS_BAPIBK-LOCID, "   
lt_p_partic_no  TYPE STANDARD TABLE OF SLS_BAPIBO, "   
lv_no_plvar_found  TYPE SLS_BAPIBO, "   
lv_eveid  TYPE SLS_BAPIBO-EVEID, "   
lv_no_participant_function_found  TYPE SLS_BAPIBO, "   
lv_begin_date  TYPE SLS_BAPIBK-BEGIN_DATE, "   
lv_no_participant  TYPE SLS_BAPIBK, "   
lv_end_date  TYPE SLS_BAPIBK-END_DATE, "   
lv_no_eventgroup  TYPE SLS_BAPIBK, "   
lv_no_event_type  TYPE SLS_BAPIBK, "   
lv_no_event  TYPE SLS_BAPIBK, "   
lv_root_not_found  TYPE SLS_BAPIBK, "   
lv_wegid_not_found  TYPE SLS_BAPIBK. "   

  CALL FUNCTION 'BAPI_SLS_BOOK_BOOKING_LIST'  "Read bookings of participants
    EXPORTING
         EGRID = lv_egrid
         LOCID = lv_locid
         EVEID = lv_eveid
         BEGIN_DATE = lv_begin_date
         END_DATE = lv_end_date
    IMPORTING
         RETURN = lv_return
    TABLES
         P_PARTIC = lt_p_partic
         P_PARTIC_NO = lt_p_partic_no
    EXCEPTIONS
        NO_HR_SYSTEM_FOUND = 1
        NO_LOCATION_ASSIGNMENT = 10
        WRONG_PLVAR = 11
        NO_TEST_TYPE_SOURCE = 12
        UNKNOWN_EXCEPTION = 13
        NO_PLVAR_FOUND = 2
        NO_PARTICIPANT_FUNCTION_FOUND = 3
        NO_PARTICIPANT = 4
        NO_EVENTGROUP = 5
        NO_EVENT_TYPE = 6
        NO_EVENT = 7
        ROOT_NOT_FOUND = 8
        WEGID_NOT_FOUND = 9
. " BAPI_SLS_BOOK_BOOKING_LIST




ABAP code using 7.40 inline data declarations to call FM BAPI_SLS_BOOK_BOOKING_LIST

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 EGRID FROM SLS_BAPIBK INTO @DATA(ld_egrid).
 
 
 
 
 
 
 
 
"SELECT single LOCID FROM SLS_BAPIBK INTO @DATA(ld_locid).
 
 
 
"SELECT single EVEID FROM SLS_BAPIBO INTO @DATA(ld_eveid).
 
 
"SELECT single BEGIN_DATE FROM SLS_BAPIBK INTO @DATA(ld_begin_date).
 
 
"SELECT single END_DATE FROM SLS_BAPIBK INTO @DATA(ld_end_date).
 
 
 
 
 
 


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!