SAP Function Modules

LSO_PARTICIPATION_CHECK_ETRA_C SAP Function module







LSO_PARTICIPATION_CHECK_ETRA_C is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name LSO_PARTICIPATION_CHECK_ETRA_C into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: LSO_PARTICIPATION_C
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM LSO_PARTICIPATION_CHECK_ETRA_C - LSO PARTICIPATION CHECK ETRA C





CALL FUNCTION 'LSO_PARTICIPATION_CHECK_ETRA_C' "
  EXPORTING
*   planversion =               " plvar         Plan Version
    trainingtype_id =           " hrobjid       Object ID
*   learner_type =              " otype         Object Type
*   learner_id =                " sobid         ID of Related Object
*   language =                  " langu         Language Key
*   setdate = SY-DATUM          " begda         Valid-From Date
*   with_auth = 'X'             " lso_x_c       Checkbox
*   with_vv_free = 'X'          " lso_x_c       Checkbox
*   with_prereq = 'X'           " lso_x_c       Checkbox
*   fcode =                     " fcode         Function Code
*   booking_priority =          " priox         Priority
*   user_role = 'ADMIN'         " lso_user_role  Role of User Logged On (Learner, Admin, Trainer)
*   curriculum_type =           " otype
*   curriculum_id =             " hrobjid
  IMPORTING
    begindate =                 " begda         Valid-From Date
    enddate =                   " endda         End of Validity Period
    error_occured =             " lso_x_c       Checkbox
* TABLES
*   return =                    " bapiret2      Return Parameter(s)
    .  "  LSO_PARTICIPATION_CHECK_ETRA_C

ABAP code example for Function Module LSO_PARTICIPATION_CHECK_ETRA_C





The ABAP code below is a full code listing to execute function module LSO_PARTICIPATION_CHECK_ETRA_C including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_begindate  TYPE BEGDA ,
ld_enddate  TYPE ENDDA ,
ld_error_occured  TYPE LSO_X_C ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_planversion) = 'Check type of data required'.
DATA(ld_trainingtype_id) = 'Check type of data required'.
DATA(ld_learner_type) = 'Check type of data required'.
DATA(ld_learner_id) = 'Check type of data required'.
DATA(ld_language) = 'Check type of data required'.
DATA(ld_setdate) = 'Check type of data required'.
DATA(ld_with_auth) = 'Check type of data required'.
DATA(ld_with_vv_free) = 'Check type of data required'.
DATA(ld_with_prereq) = 'Check type of data required'.
DATA(ld_fcode) = 'Check type of data required'.
DATA(ld_booking_priority) = 'Check type of data required'.
DATA(ld_user_role) = 'Check type of data required'.
DATA(ld_curriculum_type) = 'Check type of data required'.
DATA(ld_curriculum_id) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'LSO_PARTICIPATION_CHECK_ETRA_C' EXPORTING * planversion = ld_planversion trainingtype_id = ld_trainingtype_id * learner_type = ld_learner_type * learner_id = ld_learner_id * language = ld_language * setdate = ld_setdate * with_auth = ld_with_auth * with_vv_free = ld_with_vv_free * with_prereq = ld_with_prereq * fcode = ld_fcode * booking_priority = ld_booking_priority * user_role = ld_user_role * curriculum_type = ld_curriculum_type * curriculum_id = ld_curriculum_id IMPORTING begindate = ld_begindate enddate = ld_enddate error_occured = ld_error_occured * TABLES * return = it_return . " LSO_PARTICIPATION_CHECK_ETRA_C
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_begindate  TYPE BEGDA ,
ld_planversion  TYPE PLVAR ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_enddate  TYPE ENDDA ,
ld_trainingtype_id  TYPE HROBJID ,
ld_error_occured  TYPE LSO_X_C ,
ld_learner_type  TYPE OTYPE ,
ld_learner_id  TYPE SOBID ,
ld_language  TYPE LANGU ,
ld_setdate  TYPE BEGDA ,
ld_with_auth  TYPE LSO_X_C ,
ld_with_vv_free  TYPE LSO_X_C ,
ld_with_prereq  TYPE LSO_X_C ,
ld_fcode  TYPE FCODE ,
ld_booking_priority  TYPE PRIOX ,
ld_user_role  TYPE LSO_USER_ROLE ,
ld_curriculum_type  TYPE OTYPE ,
ld_curriculum_id  TYPE HROBJID .

ld_planversion = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.
ld_trainingtype_id = 'Check type of data required'.
ld_learner_type = 'Check type of data required'.
ld_learner_id = 'Check type of data required'.
ld_language = 'Check type of data required'.
ld_setdate = 'Check type of data required'.
ld_with_auth = 'Check type of data required'.
ld_with_vv_free = 'Check type of data required'.
ld_with_prereq = 'Check type of data required'.
ld_fcode = 'Check type of data required'.
ld_booking_priority = 'Check type of data required'.
ld_user_role = 'Check type of data required'.
ld_curriculum_type = 'Check type of data required'.
ld_curriculum_id = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name LSO_PARTICIPATION_CHECK_ETRA_C or its description.