SAP APB_LAUNCHPAD_SELECTION Function Module for Launchpad selection
APB_LAUNCHPAD_SELECTION is a standard apb launchpad selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Launchpad selection 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 apb launchpad selection FM, simply by entering the name APB_LAUNCHPAD_SELECTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: APB_LAUNCHPAD
Program Name: SAPLAPB_LAUNCHPAD
Main Program: SAPLAPB_LAUNCHPAD
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function APB_LAUNCHPAD_SELECTION 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 'APB_LAUNCHPAD_SELECTION'"Launchpad selection.
EXPORTING
* ID_ROLE = "Role
* ID_INSTANCE = "Instance
* ID_UNAME = "
* ID_GUI_MODE = 'CHANGE' "GUI Mode
* ID_LPD_LIGHT = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* ID_VERSION = "Launchpad Version
* ID_SAP_CUST_INDICATOR = "SAP/Customer Launchpad Indicator
* IT_APPLICATION_IDS = "Application Ids
* ID_CALLER = "
EXCEPTIONS
LAUNCHPAD_READ_ERROR = 1
IMPORTING Parameters details for APB_LAUNCHPAD_SELECTION
ID_ROLE - Role
Data type: APB_LPD_ROLEOptional: Yes
Call by Reference: Yes
ID_INSTANCE - Instance
Data type: APB_LPD_INSTANCEOptional: Yes
Call by Reference: Yes
ID_UNAME -
Data type: SYUNAMEOptional: Yes
Call by Reference: Yes
ID_GUI_MODE - GUI Mode
Data type: APB_LPD_GUI_MODEDefault: 'CHANGE'
Optional: Yes
Call by Reference: Yes
ID_LPD_LIGHT - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
ID_VERSION - Launchpad Version
Data type: APB_LPD_VERSIONOptional: Yes
Call by Reference: Yes
ID_SAP_CUST_INDICATOR - SAP/Customer Launchpad Indicator
Data type: APB_LPD_SAP_CUST_INDICATOROptional: Yes
Call by Reference: Yes
IT_APPLICATION_IDS - Application Ids
Data type: APB_LPD_T_APPLICATION_IDSOptional: Yes
Call by Reference: Yes
ID_CALLER -
Data type: STRINGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
LAUNCHPAD_READ_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for APB_LAUNCHPAD_SELECTION 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_id_role | TYPE APB_LPD_ROLE, " | |||
lv_launchpad_read_error | TYPE APB_LPD_ROLE, " | |||
lv_id_instance | TYPE APB_LPD_INSTANCE, " | |||
lv_id_uname | TYPE SYUNAME, " | |||
lv_id_gui_mode | TYPE APB_LPD_GUI_MODE, " 'CHANGE' | |||
lv_id_lpd_light | TYPE BOOLE_D, " | |||
lv_id_version | TYPE APB_LPD_VERSION, " | |||
lv_id_sap_cust_indicator | TYPE APB_LPD_SAP_CUST_INDICATOR, " | |||
lv_it_application_ids | TYPE APB_LPD_T_APPLICATION_IDS, " | |||
lv_id_caller | TYPE STRING. " |
  CALL FUNCTION 'APB_LAUNCHPAD_SELECTION' "Launchpad selection |
EXPORTING | ||
ID_ROLE | = lv_id_role | |
ID_INSTANCE | = lv_id_instance | |
ID_UNAME | = lv_id_uname | |
ID_GUI_MODE | = lv_id_gui_mode | |
ID_LPD_LIGHT | = lv_id_lpd_light | |
ID_VERSION | = lv_id_version | |
ID_SAP_CUST_INDICATOR | = lv_id_sap_cust_indicator | |
IT_APPLICATION_IDS | = lv_it_application_ids | |
ID_CALLER | = lv_id_caller | |
EXCEPTIONS | ||
LAUNCHPAD_READ_ERROR = 1 | ||
. " APB_LAUNCHPAD_SELECTION |
ABAP code using 7.40 inline data declarations to call FM APB_LAUNCHPAD_SELECTION
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_id_gui_mode) | = 'CHANGE'. | |||
Search for further information about these or an SAP related objects