SAP BAPI_SLS_BOOK_GET_PARTICIPANT Function Module for Selection module for participants of an event









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

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



Function BAPI_SLS_BOOK_GET_PARTICIPANT 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_GET_PARTICIPANT'"Selection module for participants of an event
EXPORTING
* BEGDA = '19000101' "Beginndatum
* NPRIO = 'X' "Normalbuchungen lesen (Priorität)
* MINWL = 'X' "Wartelistebuchungen lesen (Priorität)
* ORTID = "Eight-digit numeric value
* ORGA_OTYPE = "Version number components
* ORGA_REALO = "Char45
* ENDDA = '99991231' "Endedatum
* LSISTAT = ' ' "Status
* SORT = 'X' "Sortieren der Rückgabetabelle (Prio)
* ALPHA_SORT = ' ' "Sortieren der Rückgabetabelle (Teiln.Text)
* FLAGP = ' ' "Preis + Kostenstelle lesen
* CHECK_1031 = ' ' "gegen Raumbelegung prüfen
* PARTEVENT = ' ' "Mit Teilveranstaltungen
* MAXMU = 'X' "Mußbuchen lesen (Priorität)

TABLES
EVENT_TAB = "Veranstaltungstabelle (import)
PARTIC_TAB = "Teilnehmertabelle (export)

EXCEPTIONS
NO_PARTICIPANT = 1 NO_EVENT_FOUND = 2 WRONG_CONDITION = 3
.



IMPORTING Parameters details for BAPI_SLS_BOOK_GET_PARTICIPANT

BEGDA - Beginndatum

Data type: SLS_BPART-BEGDA
Default: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NPRIO - Normalbuchungen lesen (Priorität)

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

MINWL - Wartelistebuchungen lesen (Priorität)

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

ORTID - Eight-digit numeric value

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

ORGA_OTYPE - Version number components

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

ORGA_REALO - Char45

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

ENDDA - Endedatum

Data type: SLS_BPART-ENDDA
Default: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LSISTAT - Status

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

SORT - Sortieren der Rückgabetabelle (Prio)

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

ALPHA_SORT - Sortieren der Rückgabetabelle (Teiln.Text)

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

FLAGP - Preis + Kostenstelle lesen

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

CHECK_1031 - gegen Raumbelegung prüfen

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

PARTEVENT - Mit Teilveranstaltungen

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

MAXMU - Mußbuchen lesen (Priorität)

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

TABLES Parameters details for BAPI_SLS_BOOK_GET_PARTICIPANT

EVENT_TAB - Veranstaltungstabelle (import)

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

PARTIC_TAB - Teilnehmertabelle (export)

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

EXCEPTIONS details

NO_PARTICIPANT -

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

NO_EVENT_FOUND -

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

WRONG_CONDITION - unzulässige Kombination von Prioritäten

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

Copy and paste ABAP code example for BAPI_SLS_BOOK_GET_PARTICIPANT 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_begda  TYPE SLS_BPART-BEGDA, "   '19000101'
lt_event_tab  TYPE STANDARD TABLE OF HROBJECT, "   
lv_no_participant  TYPE HROBJECT, "   
lv_nprio  TYPE SLS_BPART-NPRIO, "   'X'
lv_minwl  TYPE SLS_BPART-MINWL, "   'X'
lv_ortid  TYPE SLS_BPART-ORTID, "   
lv_orga_otype  TYPE SLS_BPART-ORGA_OTYPE, "   
lv_orga_realo  TYPE SLS_BPART-ORGA_REALO, "   
lv_endda  TYPE SLS_BPART-ENDDA, "   '99991231'
lt_partic_tab  TYPE STANDARD TABLE OF SLS_HRPART, "   
lv_no_event_found  TYPE SLS_HRPART, "   
lv_lsistat  TYPE SLS_BPART-ISTAT, "   ' '
lv_wrong_condition  TYPE SLS_BPART, "   
lv_sort  TYPE SLS_BPART-SORT, "   'X'
lv_alpha_sort  TYPE SLS_BPART-SORT, "   ' '
lv_flagp  TYPE SLS_BPART-FLAGP, "   ' '
lv_check_1031  TYPE SLS_BPART-CHECK_1031, "   ' '
lv_partevent  TYPE SLS_BPART-PARTEVENT, "   ' '
lv_maxmu  TYPE SLS_BPART-MAXMU. "   'X'

  CALL FUNCTION 'BAPI_SLS_BOOK_GET_PARTICIPANT'  "Selection module for participants of an event
    EXPORTING
         BEGDA = lv_begda
         NPRIO = lv_nprio
         MINWL = lv_minwl
         ORTID = lv_ortid
         ORGA_OTYPE = lv_orga_otype
         ORGA_REALO = lv_orga_realo
         ENDDA = lv_endda
         LSISTAT = lv_lsistat
         SORT = lv_sort
         ALPHA_SORT = lv_alpha_sort
         FLAGP = lv_flagp
         CHECK_1031 = lv_check_1031
         PARTEVENT = lv_partevent
         MAXMU = lv_maxmu
    TABLES
         EVENT_TAB = lt_event_tab
         PARTIC_TAB = lt_partic_tab
    EXCEPTIONS
        NO_PARTICIPANT = 1
        NO_EVENT_FOUND = 2
        WRONG_CONDITION = 3
. " BAPI_SLS_BOOK_GET_PARTICIPANT




ABAP code using 7.40 inline data declarations to call FM BAPI_SLS_BOOK_GET_PARTICIPANT

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 BEGDA FROM SLS_BPART INTO @DATA(ld_begda).
DATA(ld_begda) = '19000101'.
 
 
 
"SELECT single NPRIO FROM SLS_BPART INTO @DATA(ld_nprio).
DATA(ld_nprio) = 'X'.
 
"SELECT single MINWL FROM SLS_BPART INTO @DATA(ld_minwl).
DATA(ld_minwl) = 'X'.
 
"SELECT single ORTID FROM SLS_BPART INTO @DATA(ld_ortid).
 
"SELECT single ORGA_OTYPE FROM SLS_BPART INTO @DATA(ld_orga_otype).
 
"SELECT single ORGA_REALO FROM SLS_BPART INTO @DATA(ld_orga_realo).
 
"SELECT single ENDDA FROM SLS_BPART INTO @DATA(ld_endda).
DATA(ld_endda) = '99991231'.
 
 
 
"SELECT single ISTAT FROM SLS_BPART INTO @DATA(ld_lsistat).
DATA(ld_lsistat) = ' '.
 
 
"SELECT single SORT FROM SLS_BPART INTO @DATA(ld_sort).
DATA(ld_sort) = 'X'.
 
"SELECT single SORT FROM SLS_BPART INTO @DATA(ld_alpha_sort).
DATA(ld_alpha_sort) = ' '.
 
"SELECT single FLAGP FROM SLS_BPART INTO @DATA(ld_flagp).
DATA(ld_flagp) = ' '.
 
"SELECT single CHECK_1031 FROM SLS_BPART INTO @DATA(ld_check_1031).
DATA(ld_check_1031) = ' '.
 
"SELECT single PARTEVENT FROM SLS_BPART INTO @DATA(ld_partevent).
DATA(ld_partevent) = ' '.
 
"SELECT single MAXMU FROM SLS_BPART INTO @DATA(ld_maxmu).
DATA(ld_maxmu) = '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!