SAP LSO_PARTICIPATION_CHECK_CP Function Module for









LSO_PARTICIPATION_CHECK_CP is a standard lso participation check cp 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 cp FM, simply by entering the name LSO_PARTICIPATION_CHECK_CP 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_CP 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_CP'"
EXPORTING
* PLANVERSION = "Plan Version
* CHECK_AVAILABILITY = 'X' "Checkbox
* CHECK_BILLING = 'X' "Checkbox
* CHECK_PREREQUISITES = 'X' "Checkbox
* I_FCODE = "Function Code
* BOOKING_PRIORITY = "Priority
* IMODE = 'A' "
* USER_ROLE = 'ADMIN' "Role of User Logged On (Learner, Admin, Trainer)
CP_OTYPE = "Object Type
CP_ID = "Object ID
* LEARNER_OTYPE = "Object Type
* LEARNER_ID = "ID of Related Object
* LANGUAGE = "Language Key
* SETDATE = SY-DATUM "Valid-From Date
* CHECK_AUTHORITY = 'X' "Checkbox
* CHECK_CAPACITY = 'E' "Checkbox

IMPORTING
ERROR_OCCURED = "Checkbox
ERROR_TAB = "Results of Bookability Check for Course

CHANGING
TRAININGS = "
.



IMPORTING Parameters details for LSO_PARTICIPATION_CHECK_CP

PLANVERSION - Plan Version

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

CHECK_AVAILABILITY - Checkbox

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

CHECK_BILLING - Checkbox

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

CHECK_PREREQUISITES - Checkbox

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

I_FCODE - Function Code

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

BOOKING_PRIORITY - Priority

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

IMODE -

Data type:
Default: 'A'
Optional: No
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: Yes

CP_OTYPE - Object Type

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

CP_ID - Object ID

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

LEARNER_OTYPE - Object Type

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

LEARNER_ID - ID of Related Object

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

LANGUAGE - Language Key

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

SETDATE - Valid-From Date

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

CHECK_AUTHORITY - Checkbox

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

CHECK_CAPACITY - Checkbox

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

EXPORTING Parameters details for LSO_PARTICIPATION_CHECK_CP

ERROR_OCCURED - Checkbox

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

CHANGING Parameters details for LSO_PARTICIPATION_CHECK_CP

TRAININGS -

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

Copy and paste ABAP code example for LSO_PARTICIPATION_CHECK_CP 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_trainings  TYPE LSO_CURR_TRAINING_TAB, "   
lv_planversion  TYPE PLVAR, "   
lv_error_occured  TYPE LSO_X_C, "   
lv_check_availability  TYPE LSO_X_C, "   'X'
lv_check_billing  TYPE LSO_X_C, "   'X'
lv_check_prerequisites  TYPE LSO_X_C, "   'X'
lv_i_fcode  TYPE FCODE, "   
lv_booking_priority  TYPE PRIOX, "   
lv_imode  TYPE PRIOX, "   'A'
lv_user_role  TYPE LSO_USER_ROLE, "   'ADMIN'
lv_cp_otype  TYPE OTYPE, "   
lv_error_tab  TYPE LSO_BOOKING_CHECK_RESULT_TAB, "   
lv_cp_id  TYPE HROBJID, "   
lv_learner_otype  TYPE OTYPE, "   
lv_learner_id  TYPE SOBID, "   
lv_language  TYPE LANGU, "   
lv_setdate  TYPE BEGDA, "   SY-DATUM
lv_check_authority  TYPE LSO_X_C, "   'X'
lv_check_capacity  TYPE CHAR1. "   'E'

  CALL FUNCTION 'LSO_PARTICIPATION_CHECK_CP'  "
    EXPORTING
         PLANVERSION = lv_planversion
         CHECK_AVAILABILITY = lv_check_availability
         CHECK_BILLING = lv_check_billing
         CHECK_PREREQUISITES = lv_check_prerequisites
         I_FCODE = lv_i_fcode
         BOOKING_PRIORITY = lv_booking_priority
         IMODE = lv_imode
         USER_ROLE = lv_user_role
         CP_OTYPE = lv_cp_otype
         CP_ID = lv_cp_id
         LEARNER_OTYPE = lv_learner_otype
         LEARNER_ID = lv_learner_id
         LANGUAGE = lv_language
         SETDATE = lv_setdate
         CHECK_AUTHORITY = lv_check_authority
         CHECK_CAPACITY = lv_check_capacity
    IMPORTING
         ERROR_OCCURED = lv_error_occured
         ERROR_TAB = lv_error_tab
    CHANGING
         TRAININGS = lv_trainings
. " LSO_PARTICIPATION_CHECK_CP




ABAP code using 7.40 inline data declarations to call FM LSO_PARTICIPATION_CHECK_CP

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_check_availability) = 'X'.
 
DATA(ld_check_billing) = 'X'.
 
DATA(ld_check_prerequisites) = 'X'.
 
 
 
DATA(ld_imode) = 'A'.
 
DATA(ld_user_role) = 'ADMIN'.
 
 
 
 
 
 
 
DATA(ld_setdate) = SY-DATUM.
 
DATA(ld_check_authority) = 'X'.
 
DATA(ld_check_capacity) = 'E'.
 


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!