SAP LSO_PARTICIPATION_REPLACE Function Module for









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

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



Function LSO_PARTICIPATION_REPLACE 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_REPLACE'"
EXPORTING
* PLVAR = "Plan Version
* MANZL = "Number
* SEQNR = "
* VTASK = "
* MODE = 'A' "Execution Mode
* WITH_EC_CHECK = 'X' "
* EVBGD = "Start date of selection period
* EVEND = "End date of selection period
* EVEOT = "Object Type of Course
* EVEID = "Course
* PARTY = "Participant Type
* PARID = "Participant
* BPRIO = "
* BUDAT = "

TABLES
* RETURN_TAB = "BAPIRET2 Table
* TAB_COSTDISTRIBUTION = "
* TAB_HRVKOSTL = "
* TAB_HRVREFDOC = "

EXCEPTIONS
NO_AUTHORITY = 1 CURRICULUM_BOOKING = 2 NO_TFORM = 3
.



IMPORTING Parameters details for LSO_PARTICIPATION_REPLACE

PLVAR - Plan Version

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

MANZL - Number

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

SEQNR -

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

VTASK -

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

MODE - Execution Mode

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

WITH_EC_CHECK -

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

EVBGD - Start date of selection period

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

EVEND - End date of selection period

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

EVEOT - Object Type of Course

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

EVEID - Course

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

PARTY - Participant Type

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

PARID - Participant

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

BPRIO -

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

BUDAT -

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

TABLES Parameters details for LSO_PARTICIPATION_REPLACE

RETURN_TAB - BAPIRET2 Table

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

TAB_COSTDISTRIBUTION -

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

TAB_HRVKOSTL -

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

TAB_HRVREFDOC -

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

EXCEPTIONS details

NO_AUTHORITY - No authorization for this function

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

CURRICULUM_BOOKING -

Data type:
Optional: No
Call by Reference: Yes

NO_TFORM - No delivery method could be found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LSO_PARTICIPATION_REPLACE 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_plvar  TYPE HRVPAR-PLVAR, "   
lt_return_tab  TYPE STANDARD TABLE OF LSO_BAPIRET2_TAB, "   
lv_no_authority  TYPE LSO_BAPIRET2_TAB, "   
lv_manzl  TYPE HRVPV-MANZL, "   
lv_seqnr  TYPE P1001-SEQNR, "   
lv_vtask  TYPE PPPAR-VTASK, "   
lv_mode  TYPE PPPAR, "   'A'
lv_with_ec_check  TYPE LSO_X_C, "   'X'
lv_evbgd  TYPE HRVPV-EVBGD, "   
lv_curriculum_booking  TYPE HRVPV, "   
lt_tab_costdistribution  TYPE STANDARD TABLE OF LSO_ADMN_RHCOST_DISTR_T, "   
lv_evend  TYPE HRVPV-EVEND, "   
lv_no_tform  TYPE HRVPV, "   
lt_tab_hrvkostl  TYPE STANDARD TABLE OF LSO_ADMN_HRVKOSTL_T, "   
lv_eveot  TYPE OBJEC-OTYPE, "   
lt_tab_hrvrefdoc  TYPE STANDARD TABLE OF LSO_ADMN_HRVREFDOC_T, "   
lv_eveid  TYPE HRVPV-EVEID, "   
lv_party  TYPE OBJEC-OTYPE, "   
lv_parid  TYPE OBJEC-REALO, "   
lv_bprio  TYPE HRVPV-BPRIO, "   
lv_budat  TYPE HRVPV-BUDAT. "   

  CALL FUNCTION 'LSO_PARTICIPATION_REPLACE'  "
    EXPORTING
         PLVAR = lv_plvar
         MANZL = lv_manzl
         SEQNR = lv_seqnr
         VTASK = lv_vtask
         MODE = lv_mode
         WITH_EC_CHECK = lv_with_ec_check
         EVBGD = lv_evbgd
         EVEND = lv_evend
         EVEOT = lv_eveot
         EVEID = lv_eveid
         PARTY = lv_party
         PARID = lv_parid
         BPRIO = lv_bprio
         BUDAT = lv_budat
    TABLES
         RETURN_TAB = lt_return_tab
         TAB_COSTDISTRIBUTION = lt_tab_costdistribution
         TAB_HRVKOSTL = lt_tab_hrvkostl
         TAB_HRVREFDOC = lt_tab_hrvrefdoc
    EXCEPTIONS
        NO_AUTHORITY = 1
        CURRICULUM_BOOKING = 2
        NO_TFORM = 3
. " LSO_PARTICIPATION_REPLACE




ABAP code using 7.40 inline data declarations to call FM LSO_PARTICIPATION_REPLACE

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 PLVAR FROM HRVPAR INTO @DATA(ld_plvar).
 
 
 
"SELECT single MANZL FROM HRVPV INTO @DATA(ld_manzl).
 
"SELECT single SEQNR FROM P1001 INTO @DATA(ld_seqnr).
 
"SELECT single VTASK FROM PPPAR INTO @DATA(ld_vtask).
 
DATA(ld_mode) = 'A'.
 
DATA(ld_with_ec_check) = 'X'.
 
"SELECT single EVBGD FROM HRVPV INTO @DATA(ld_evbgd).
 
 
 
"SELECT single EVEND FROM HRVPV INTO @DATA(ld_evend).
 
 
 
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_eveot).
 
 
"SELECT single EVEID FROM HRVPV INTO @DATA(ld_eveid).
 
"SELECT single OTYPE FROM OBJEC INTO @DATA(ld_party).
 
"SELECT single REALO FROM OBJEC INTO @DATA(ld_parid).
 
"SELECT single BPRIO FROM HRVPV INTO @DATA(ld_bprio).
 
"SELECT single BUDAT FROM HRVPV INTO @DATA(ld_budat).
 


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!