SAP LSO_LEARNER_SET_SETTINGS Function Module for
LSO_LEARNER_SET_SETTINGS is a standard lso learner set settings 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 learner set settings FM, simply by entering the name LSO_LEARNER_SET_SETTINGS into the relevant SAP transaction such as SE37 or SE38.
Function Group: LSO_IF_PORTAL_C
Program Name: SAPLLSO_IF_PORTAL_C
Main Program: SAPLLSO_IF_PORTAL_C
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function LSO_LEARNER_SET_SETTINGS 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_LEARNER_SET_SETTINGS'".
EXPORTING
* LEARNER_PLVAR = "
* SEARCH_USE_SETTINGS = "Find: Use Settings
* DISP_PERNR_ASGMT = "
* CATALOG_VIEW = "Catalog: Default View
* CATALOG_TTYPES = "Catalog: Display Course Types
* LEARNER_OTYPE = "
* LEARNER_SOBID = "
* MICID = "Learning Micro Strategy
* MACID = "Learning Macro Strategy
* SEARCH_LOCATION = "Find: Preferred Location
* SEARCH_LOCATION_LEVEL = "
* SEARCH_LANGUAGE = "Find: Preferred Language
* TRAINING_READ_NDAYS = "
IMPORTING
RETURN = "Return Parameter(s)
IMPORTING Parameters details for LSO_LEARNER_SET_SETTINGS
LEARNER_PLVAR -
Data type: PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
SEARCH_USE_SETTINGS - Find: Use Settings
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
DISP_PERNR_ASGMT -
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
CATALOG_VIEW - Catalog: Default View
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
CATALOG_TTYPES - Catalog: Display Course Types
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
LEARNER_OTYPE -
Data type: OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
LEARNER_SOBID -
Data type: SOBIDOptional: Yes
Call by Reference: No ( called with pass by value option)
MICID - Learning Micro Strategy
Data type: LSO_MICSTRAT_COptional: Yes
Call by Reference: No ( called with pass by value option)
MACID - Learning Macro Strategy
Data type: LSO_MACSTRAT_COptional: Yes
Call by Reference: No ( called with pass by value option)
SEARCH_LOCATION - Find: Preferred Location
Data type: HROBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
SEARCH_LOCATION_LEVEL -
Data type: TDEPTHOptional: Yes
Call by Reference: No ( called with pass by value option)
SEARCH_LANGUAGE - Find: Preferred Language
Data type: SPRASOptional: Yes
Call by Reference: No ( called with pass by value option)
TRAINING_READ_NDAYS -
Data type: NUMC5Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LSO_LEARNER_SET_SETTINGS
RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LSO_LEARNER_SET_SETTINGS 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_learner_plvar | TYPE PLVAR, " | |||
| lv_search_use_settings | TYPE BOOLE_D, " | |||
| lv_disp_pernr_asgmt | TYPE BOOLE_D, " | |||
| lv_catalog_view | TYPE I, " | |||
| lv_catalog_ttypes | TYPE BOOLE_D, " | |||
| lv_learner_otype | TYPE OTYPE, " | |||
| lv_learner_sobid | TYPE SOBID, " | |||
| lv_micid | TYPE LSO_MICSTRAT_C, " | |||
| lv_macid | TYPE LSO_MACSTRAT_C, " | |||
| lv_search_location | TYPE HROBJECT, " | |||
| lv_search_location_level | TYPE TDEPTH, " | |||
| lv_search_language | TYPE SPRAS, " | |||
| lv_training_read_ndays | TYPE NUMC5. " |
|   CALL FUNCTION 'LSO_LEARNER_SET_SETTINGS' " |
| EXPORTING | ||
| LEARNER_PLVAR | = lv_learner_plvar | |
| SEARCH_USE_SETTINGS | = lv_search_use_settings | |
| DISP_PERNR_ASGMT | = lv_disp_pernr_asgmt | |
| CATALOG_VIEW | = lv_catalog_view | |
| CATALOG_TTYPES | = lv_catalog_ttypes | |
| LEARNER_OTYPE | = lv_learner_otype | |
| LEARNER_SOBID | = lv_learner_sobid | |
| MICID | = lv_micid | |
| MACID | = lv_macid | |
| SEARCH_LOCATION | = lv_search_location | |
| SEARCH_LOCATION_LEVEL | = lv_search_location_level | |
| SEARCH_LANGUAGE | = lv_search_language | |
| TRAINING_READ_NDAYS | = lv_training_read_ndays | |
| IMPORTING | ||
| RETURN | = lv_return | |
| . " LSO_LEARNER_SET_SETTINGS | ||
ABAP code using 7.40 inline data declarations to call FM LSO_LEARNER_SET_SETTINGS
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.Search for further information about these or an SAP related objects