SAP BUP_ROLES_GET_SELECTION Function Module for
BUP_ROLES_GET_SELECTION is a standard bup roles get selection 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 bup roles get selection FM, simply by entering the name BUP_ROLES_GET_SELECTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: BUDA
Program Name: SAPLBUDA
Main Program: SAPLBUDA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BUP_ROLES_GET_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 'BUP_ROLES_GET_SELECTION'".
EXPORTING
* I_PARTNERROLE = "BP Role
* I_PARTNERROLECATEGORY = "BP role category
* I_XSTANDARD = "
* I_XALL = "
IMPORTING
E_TB003 = "BP Roles
E_TB003A = "BP role categories
E_TB003T = "
TABLES
* T_TB003 = "BP Roles
* T_TB003T = "
* T_RETURN = "Messages
IMPORTING Parameters details for BUP_ROLES_GET_SELECTION
I_PARTNERROLE - BP Role
Data type: BU_PARTNERROLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PARTNERROLECATEGORY - BP role category
Data type: BU_PARTNERROLECATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XSTANDARD -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_XALL -
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BUP_ROLES_GET_SELECTION
E_TB003 - BP Roles
Data type: TB003Optional: No
Call by Reference: Yes
E_TB003A - BP role categories
Data type: TB003AOptional: No
Call by Reference: Yes
E_TB003T -
Data type: TB003TOptional: No
Call by Reference: Yes
TABLES Parameters details for BUP_ROLES_GET_SELECTION
T_TB003 - BP Roles
Data type: TB003Optional: Yes
Call by Reference: Yes
T_TB003T -
Data type: TB003TOptional: Yes
Call by Reference: Yes
T_RETURN - Messages
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BUP_ROLES_GET_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_e_tb003 | TYPE TB003, " | |||
| lt_t_tb003 | TYPE STANDARD TABLE OF TB003, " | |||
| lv_i_partnerrole | TYPE BU_PARTNERROLE, " | |||
| lv_e_tb003a | TYPE TB003A, " | |||
| lt_t_tb003t | TYPE STANDARD TABLE OF TB003T, " | |||
| lv_i_partnerrolecategory | TYPE BU_PARTNERROLECAT, " | |||
| lv_e_tb003t | TYPE TB003T, " | |||
| lt_t_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_i_xstandard | TYPE BOOLE-BOOLE, " | |||
| lv_i_xall | TYPE BOOLE-BOOLE. " |
|   CALL FUNCTION 'BUP_ROLES_GET_SELECTION' " |
| EXPORTING | ||
| I_PARTNERROLE | = lv_i_partnerrole | |
| I_PARTNERROLECATEGORY | = lv_i_partnerrolecategory | |
| I_XSTANDARD | = lv_i_xstandard | |
| I_XALL | = lv_i_xall | |
| IMPORTING | ||
| E_TB003 | = lv_e_tb003 | |
| E_TB003A | = lv_e_tb003a | |
| E_TB003T | = lv_e_tb003t | |
| TABLES | ||
| T_TB003 | = lt_t_tb003 | |
| T_TB003T | = lt_t_tb003t | |
| T_RETURN | = lt_t_return | |
| . " BUP_ROLES_GET_SELECTION | ||
ABAP code using 7.40 inline data declarations to call FM BUP_ROLES_GET_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.| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xstandard). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xall). | ||||
Search for further information about these or an SAP related objects