SAP LSO_PARTICIPATION_CHECK_C Function Module for









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

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



Function LSO_PARTICIPATION_CHECK_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_PARTICIPATION_CHECK_C'"
EXPORTING
* PLANVERSION = "Plan Version
* WITH_AUTH = 'X' "
* WITH_CAPACITY = 'E' "
* WITH_PART_FREE = 'X' "
* WITH_VV_FREE = 'X' "
* WITH_PREREQ = 'X' "Incl. Prerequisites Check
* WITH_PREREQ_B = 'X' "Incl. Prerequisites Check Parallel Booking
* WITH_PREREQ_V = 'X' "Incl. Prerequisites Check Prebooking
* WITH_PREREQ_K = 'X' "Incl. Prerequisites Check Courses
* WITH_PREREQ_Q = 'X' "Incl. Prerequisites Check Qualifications
* FCODE = "
* TRAININGTYPE_OTYPE = "Object Type
* BOOKING_PRIORITY = "
* TRAINING_BEGDA = "
* TRAINING_ENDDA = "
* IMODE = 'A' "
* USER_ROLE = 'ADMIN' "Role of User Logged On (Learner, Admin, Trainer)
* CURRICULUM_OTYPE = "
* CURRICULUM_ID = "
* EXCL_TRAINING_ID = "Object ID
TRAININGTYPE_ID = "Course Type
* TRAINING_OTYPE = "Object Type
* TRAINING_ID = "Course
* LEARNER_OTYPE = "Learner Type
* LEARNER_ID = "
* LANGUAGE = "Course Language
* SETDATE = SY-DATUM "Key Date

IMPORTING
ERROR_OCCURED = "Errors have occurred
ERROR_TAB = "Results of Bookability Check for Course

TABLES
* RETURN = "Return Parameter(s)
* TRAININGS = "Curriculum Type Element with Courses (Flat List)
.



IMPORTING Parameters details for LSO_PARTICIPATION_CHECK_C

PLANVERSION - Plan Version

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

WITH_AUTH -

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

WITH_CAPACITY -

Data type: CHAR1
Default: 'E'
Optional: Yes
Call by Reference: Yes

WITH_PART_FREE -

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

WITH_VV_FREE -

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

WITH_PREREQ - Incl. Prerequisites Check

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

WITH_PREREQ_B - Incl. Prerequisites Check Parallel Booking

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

WITH_PREREQ_V - Incl. Prerequisites Check Prebooking

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

WITH_PREREQ_K - Incl. Prerequisites Check Courses

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

WITH_PREREQ_Q - Incl. Prerequisites Check Qualifications

Data type: LSO_X_C
Default: 'X'
Optional: Yes
Call by Reference: Yes

FCODE -

Data type: FCODE
Optional: Yes
Call by Reference: Yes

TRAININGTYPE_OTYPE - Object Type

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

BOOKING_PRIORITY -

Data type: PRIOX
Optional: Yes
Call by Reference: Yes

TRAINING_BEGDA -

Data type: BEGDA
Optional: Yes
Call by Reference: Yes

TRAINING_ENDDA -

Data type: ENDDA
Optional: Yes
Call by Reference: Yes

IMODE -

Data type:
Default: 'A'
Optional: Yes
Call by Reference: Yes

USER_ROLE - Role of User Logged On (Learner, Admin, Trainer)

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

CURRICULUM_OTYPE -

Data type: OTYPE
Optional: Yes
Call by Reference: Yes

CURRICULUM_ID -

Data type: HROBJID
Optional: Yes
Call by Reference: Yes

EXCL_TRAINING_ID - Object ID

Data type: HROBJID
Optional: Yes
Call by Reference: Yes

TRAININGTYPE_ID - Course Type

Data type: HROBJID
Optional: No
Call by Reference: Yes

TRAINING_OTYPE - Object Type

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

TRAINING_ID - Course

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

LEARNER_OTYPE - Learner Type

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

LEARNER_ID -

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

LANGUAGE - Course Language

Data type: LANGU
Optional: Yes
Call by Reference: Yes

SETDATE - Key Date

Data type: BEGDA
Default: SY-DATUM
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for LSO_PARTICIPATION_CHECK_C

ERROR_OCCURED - Errors have occurred

Data type: LSO_X_C
Optional: No
Call by Reference: Yes

ERROR_TAB - Results of Bookability Check for Course

Data type: LSO_BOOKING_CHECK_RESULT_TAB
Optional: No
Call by Reference: Yes

TABLES Parameters details for LSO_PARTICIPATION_CHECK_C

RETURN - Return Parameter(s)

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

TRAININGS - Curriculum Type Element with Courses (Flat List)

Data type: LSO_CURR_TRAINING
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for LSO_PARTICIPATION_CHECK_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:
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_planversion  TYPE PLVAR, "   
lv_error_occured  TYPE LSO_X_C, "   
lv_with_auth  TYPE LSO_X_C, "   'X'
lv_with_capacity  TYPE CHAR1, "   'E'
lv_with_part_free  TYPE LSO_X_C, "   'X'
lv_with_vv_free  TYPE LSO_X_C, "   'X'
lv_with_prereq  TYPE LSO_X_C, "   'X'
lv_with_prereq_b  TYPE LSO_X_C, "   'X'
lv_with_prereq_v  TYPE LSO_X_C, "   'X'
lv_with_prereq_k  TYPE LSO_X_C, "   'X'
lv_with_prereq_q  TYPE LSO_X_C, "   'X'
lv_fcode  TYPE FCODE, "   
lv_error_tab  TYPE LSO_BOOKING_CHECK_RESULT_TAB, "   
lt_trainings  TYPE STANDARD TABLE OF LSO_CURR_TRAINING, "   
lv_trainingtype_otype  TYPE OTYPE, "   
lv_booking_priority  TYPE PRIOX, "   
lv_training_begda  TYPE BEGDA, "   
lv_training_endda  TYPE ENDDA, "   
lv_imode  TYPE ENDDA, "   'A'
lv_user_role  TYPE LSO_USER_ROLE, "   'ADMIN'
lv_curriculum_otype  TYPE OTYPE, "   
lv_curriculum_id  TYPE HROBJID, "   
lv_excl_training_id  TYPE HROBJID, "   
lv_trainingtype_id  TYPE HROBJID, "   
lv_training_otype  TYPE OTYPE, "   
lv_training_id  TYPE HROBJID, "   
lv_learner_otype  TYPE OTYPE, "   
lv_learner_id  TYPE SOBID, "   
lv_language  TYPE LANGU, "   
lv_setdate  TYPE BEGDA. "   SY-DATUM

  CALL FUNCTION 'LSO_PARTICIPATION_CHECK_C'  "
    EXPORTING
         PLANVERSION = lv_planversion
         WITH_AUTH = lv_with_auth
         WITH_CAPACITY = lv_with_capacity
         WITH_PART_FREE = lv_with_part_free
         WITH_VV_FREE = lv_with_vv_free
         WITH_PREREQ = lv_with_prereq
         WITH_PREREQ_B = lv_with_prereq_b
         WITH_PREREQ_V = lv_with_prereq_v
         WITH_PREREQ_K = lv_with_prereq_k
         WITH_PREREQ_Q = lv_with_prereq_q
         FCODE = lv_fcode
         TRAININGTYPE_OTYPE = lv_trainingtype_otype
         BOOKING_PRIORITY = lv_booking_priority
         TRAINING_BEGDA = lv_training_begda
         TRAINING_ENDDA = lv_training_endda
         IMODE = lv_imode
         USER_ROLE = lv_user_role
         CURRICULUM_OTYPE = lv_curriculum_otype
         CURRICULUM_ID = lv_curriculum_id
         EXCL_TRAINING_ID = lv_excl_training_id
         TRAININGTYPE_ID = lv_trainingtype_id
         TRAINING_OTYPE = lv_training_otype
         TRAINING_ID = lv_training_id
         LEARNER_OTYPE = lv_learner_otype
         LEARNER_ID = lv_learner_id
         LANGUAGE = lv_language
         SETDATE = lv_setdate
    IMPORTING
         ERROR_OCCURED = lv_error_occured
         ERROR_TAB = lv_error_tab
    TABLES
         RETURN = lt_return
         TRAININGS = lt_trainings
. " LSO_PARTICIPATION_CHECK_C




ABAP code using 7.40 inline data declarations to call FM LSO_PARTICIPATION_CHECK_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.

 
 
 
DATA(ld_with_auth) = 'X'.
 
DATA(ld_with_capacity) = 'E'.
 
DATA(ld_with_part_free) = 'X'.
 
DATA(ld_with_vv_free) = 'X'.
 
DATA(ld_with_prereq) = 'X'.
 
DATA(ld_with_prereq_b) = 'X'.
 
DATA(ld_with_prereq_v) = 'X'.
 
DATA(ld_with_prereq_k) = 'X'.
 
DATA(ld_with_prereq_q) = 'X'.
 
 
 
 
 
 
 
 
DATA(ld_imode) = 'A'.
 
DATA(ld_user_role) = 'ADMIN'.
 
 
 
 
 
 
 
 
 
 
DATA(ld_setdate) = SY-DATUM.
 


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!