SAP LSO_IF_GET_TIME_INDEPENDENT Function Module for time independent bookings









LSO_IF_GET_TIME_INDEPENDENT is a standard lso if get time independent SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for time independent bookings 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 lso if get time independent FM, simply by entering the name LSO_IF_GET_TIME_INDEPENDENT into the relevant SAP transaction such as SE37 or SE38.

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



Function LSO_IF_GET_TIME_INDEPENDENT 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_IF_GET_TIME_INDEPENDENT'"time independent bookings
EXPORTING
PLANVERSION = "Plan Version
LEARNERTYPE = "Participant Type
LEARNERID = "Attendee ID
* IV_CONSIDER_CE = ' ' "Account for CE/GE
* ONLY_CURRENT_DAY = "General Flag
* IV_COURSEID = "course id

IMPORTING
RETURN = "Return Parameter(s)
EV_LEARNER_TIME_ZONE = "Time Zone

TABLES
* TIME_INDEPENDENT_TRAININGS = "time independent bookings
.



IMPORTING Parameters details for LSO_IF_GET_TIME_INDEPENDENT

PLANVERSION - Plan Version

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

LEARNERTYPE - Participant Type

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

LEARNERID - Attendee ID

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

IV_CONSIDER_CE - Account for CE/GE

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

ONLY_CURRENT_DAY - General Flag

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

IV_COURSEID - course id

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

EXPORTING Parameters details for LSO_IF_GET_TIME_INDEPENDENT

RETURN - Return Parameter(s)

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

EV_LEARNER_TIME_ZONE - Time Zone

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

TABLES Parameters details for LSO_IF_GET_TIME_INDEPENDENT

TIME_INDEPENDENT_TRAININGS - time independent bookings

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

Copy and paste ABAP code example for LSO_IF_GET_TIME_INDEPENDENT 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_return  TYPE BAPIRET2, "   
lv_planversion  TYPE BAPIATDAT-PLVAR, "   
lt_time_independent_trainings  TYPE STANDARD TABLE OF LSO_TIME_INDEPENDENT_BOOKINGS, "   
lv_learnertype  TYPE BAPIATNAME-PATYP, "   
lv_ev_learner_time_zone  TYPE TIMEZONE, "   
lv_learnerid  TYPE BAPIATNAME-PARID, "   
lv_iv_consider_ce  TYPE FLAG, "   ' '
lv_only_current_day  TYPE FLAG, "   
lv_iv_courseid  TYPE HROBJID. "   

  CALL FUNCTION 'LSO_IF_GET_TIME_INDEPENDENT'  "time independent bookings
    EXPORTING
         PLANVERSION = lv_planversion
         LEARNERTYPE = lv_learnertype
         LEARNERID = lv_learnerid
         IV_CONSIDER_CE = lv_iv_consider_ce
         ONLY_CURRENT_DAY = lv_only_current_day
         IV_COURSEID = lv_iv_courseid
    IMPORTING
         RETURN = lv_return
         EV_LEARNER_TIME_ZONE = lv_ev_learner_time_zone
    TABLES
         TIME_INDEPENDENT_TRAININGS = lt_time_independent_trainings
. " LSO_IF_GET_TIME_INDEPENDENT




ABAP code using 7.40 inline data declarations to call FM LSO_IF_GET_TIME_INDEPENDENT

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 BAPIATDAT INTO @DATA(ld_planversion).
 
 
"SELECT single PATYP FROM BAPIATNAME INTO @DATA(ld_learnertype).
 
 
"SELECT single PARID FROM BAPIATNAME INTO @DATA(ld_learnerid).
 
DATA(ld_iv_consider_ce) = ' '.
 
 
 


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!