SAP PSBW_SELECT_ACT_ELEMENT_CUST Function Module for NOTRANSL: PSBW: Selection of Customer and User Fields for Activity Element
PSBW_SELECT_ACT_ELEMENT_CUST is a standard psbw select act element cust SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: PSBW: Selection of Customer and User Fields for Activity Element 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 psbw select act element cust FM, simply by entering the name PSBW_SELECT_ACT_ELEMENT_CUST into the relevant SAP transaction such as SE37 or SE38.
Function Group: PSBF
Program Name: SAPLPSBF
Main Program: SAPLPSBF
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PSBW_SELECT_ACT_ELEMENT_CUST 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 'PSBW_SELECT_ACT_ELEMENT_CUST'"NOTRANSL: PSBW: Selection of Customer and User Fields for Activity Element.
EXPORTING
* I_MAX_SIZE = "
* I_READ_ADD_DATA = ' ' "Generic Type
* I_UPDMODE = SBIWA_C_UPDMODE_FULL "
IMPORTING
E_T_ACTE_SELECT = "
E_T_ACTE_SELECT_N = "
CHANGING
C_COUNT_DATAPAK_ID = "
TABLES
I_T_SEL_TAB = "
I_T_FIELDS = "
EXCEPTIONS
NO_MORE_DATA = 1 UPDMODE_UNKNOWN = 2
IMPORTING Parameters details for PSBW_SELECT_ACT_ELEMENT_CUST
I_MAX_SIZE -
Data type: SBIWA_S_INTERFACE-MAXSIZEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_READ_ADD_DATA - Generic Type
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_UPDMODE -
Data type: SBIWA_S_INTERFACE-UPDMODEDefault: SBIWA_C_UPDMODE_FULL
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PSBW_SELECT_ACT_ELEMENT_CUST
E_T_ACTE_SELECT -
Data type: PSBF_T_BIW_ACTE_CUSTOptional: No
Call by Reference: Yes
E_T_ACTE_SELECT_N -
Data type: PSBF_T_BIW_ACTE_NOptional: No
Call by Reference: Yes
CHANGING Parameters details for PSBW_SELECT_ACT_ELEMENT_CUST
C_COUNT_DATAPAK_ID -
Data type: SBIWA_S_INTERFACE-DATAPAKIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for PSBW_SELECT_ACT_ELEMENT_CUST
I_T_SEL_TAB -
Data type: SBIWA_T_SELECTOptional: No
Call by Reference: No ( called with pass by value option)
I_T_FIELDS -
Data type: SBIWA_T_FIELDSOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_MORE_DATA -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UPDMODE_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PSBW_SELECT_ACT_ELEMENT_CUST 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_i_max_size | TYPE SBIWA_S_INTERFACE-MAXSIZE, " | |||
| lt_i_t_sel_tab | TYPE STANDARD TABLE OF SBIWA_T_SELECT, " | |||
| lv_no_more_data | TYPE SBIWA_T_SELECT, " | |||
| lv_e_t_acte_select | TYPE PSBF_T_BIW_ACTE_CUST, " | |||
| lv_c_count_datapak_id | TYPE SBIWA_S_INTERFACE-DATAPAKID, " | |||
| lt_i_t_fields | TYPE STANDARD TABLE OF SBIWA_T_FIELDS, " | |||
| lv_i_read_add_data | TYPE C, " SPACE | |||
| lv_updmode_unknown | TYPE C, " | |||
| lv_e_t_acte_select_n | TYPE PSBF_T_BIW_ACTE_N, " | |||
| lv_i_updmode | TYPE SBIWA_S_INTERFACE-UPDMODE. " SBIWA_C_UPDMODE_FULL |
|   CALL FUNCTION 'PSBW_SELECT_ACT_ELEMENT_CUST' "NOTRANSL: PSBW: Selection of Customer and User Fields for Activity Element |
| EXPORTING | ||
| I_MAX_SIZE | = lv_i_max_size | |
| I_READ_ADD_DATA | = lv_i_read_add_data | |
| I_UPDMODE | = lv_i_updmode | |
| IMPORTING | ||
| E_T_ACTE_SELECT | = lv_e_t_acte_select | |
| E_T_ACTE_SELECT_N | = lv_e_t_acte_select_n | |
| CHANGING | ||
| C_COUNT_DATAPAK_ID | = lv_c_count_datapak_id | |
| TABLES | ||
| I_T_SEL_TAB | = lt_i_t_sel_tab | |
| I_T_FIELDS | = lt_i_t_fields | |
| EXCEPTIONS | ||
| NO_MORE_DATA = 1 | ||
| UPDMODE_UNKNOWN = 2 | ||
| . " PSBW_SELECT_ACT_ELEMENT_CUST | ||
ABAP code using 7.40 inline data declarations to call FM PSBW_SELECT_ACT_ELEMENT_CUST
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 MAXSIZE FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_max_size). | ||||
| "SELECT single DATAPAKID FROM SBIWA_S_INTERFACE INTO @DATA(ld_c_count_datapak_id). | ||||
| DATA(ld_i_read_add_data) | = ' '. | |||
| "SELECT single UPDMODE FROM SBIWA_S_INTERFACE INTO @DATA(ld_i_updmode). | ||||
| DATA(ld_i_updmode) | = SBIWA_C_UPDMODE_FULL. | |||
Search for further information about these or an SAP related objects